diff --git a/.env.development b/.env.development index 4f4d009..563cf0a 100644 --- a/.env.development +++ b/.env.development @@ -8,7 +8,7 @@ NODE_ENV=development VITE_API_URL=https://joywork.ru VITE_LARAVEL_URL=https://api.joywork.ru VITE_LARAVEL_API_URL=https://joywork.ru -VITE_DEV_SESSION_ID=2filmq03r23tr675l2a2tjkof1 +VITE_DEV_SESSION_ID=a08vrt68apulpc9pga3k5gimv4 VITE_DEV_REQUISITION_ID=1481170 diff --git a/.mimocode/skills/build-deploy-deal-spa/SKILL.md b/.mimocode/skills/build-deploy-deal-spa/SKILL.md new file mode 100644 index 0000000..237dda3 --- /dev/null +++ b/.mimocode/skills/build-deploy-deal-spa/SKILL.md @@ -0,0 +1,56 @@ +--- +name: build-deploy-deal-spa +description: Build the deal Vue 3 SPA and deploy hashed assets to joywork/deal/assets/ +--- + +# Build and Deploy Deal SPA + +The desktop deal SPA (`deal/deal/`) is an embedded app inside joywork.ru. After building, the hashed `index-*.js` and `index-*.css` files must be copied to `joywork/deal/assets/` and the HTML references updated. + +## Paths + +- **Deal SPA source**: `/Users/mac/Developer/deal/deal/` +- **Deal SPA dist**: `/Users/mac/Developer/deal/deal/dist/assets/` +- **Joywork assets**: `/Users/mac/Developer/deal/joywork/deal/assets/` + +## Steps + +### 1. Build + +```bash +cd /Users/mac/Developer/deal/deal && npm run build:dev 2>&1 | tail -5 +``` + +Use `build:prod` for production releases. + +### 2. Copy new assets to joywork + +```bash +newjs=$(ls /Users/mac/Developer/deal/deal/dist/assets/index-*.js | head -1 | xargs basename) && \ +newcss=$(ls /Users/mac/Developer/deal/deal/dist/assets/index-*.css | head -1 | xargs basename) && \ +cp "/Users/mac/Developer/deal/deal/dist/assets/$newjs" /Users/mac/Developer/deal/joywork/deal/assets/ && \ +cp "/Users/mac/Developer/deal/deal/dist/assets/$newcss" /Users/mac/Developer/deal/joywork/deal/assets/ && \ +echo "Deployed: $newjs, $newcss" +``` + +### 3. Update HTML references + +Edit `joywork/templates/footer.php` — update the `` and `