Skip to content

Commit

Permalink
chore: improves packaging for deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
feugy committed Sep 29, 2023
1 parent fc9f25c commit 7114ffe
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 9 deletions.
8 changes: 6 additions & 2 deletions apps/game-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,14 @@
"typecheck": "tsc -p jsconfig.json --noEmit"
},
"dependencies": {
"@tabulous/types": "workspace:*",
"deepmerge": "^4.3.1"
},
"devDependencies": {
"@tabulous/types": "workspace:*",
"ajv": "^8.12.0"
}
},
"files": [
"src/",
"package.json"
]
}
3 changes: 2 additions & 1 deletion apps/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
},
"files": [
"src/",
"migrations/"
"migrations/",
"package.json"
]
}
5 changes: 3 additions & 2 deletions hosting/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,17 @@ cp .nvmrc dist/
rm -rf node_modules apps/*/node_modules
pnpm -F server --ignore-scripts --prod deploy dist/server
cd dist/server
tar --create --file ../server.tar.gz -z node_modules/ src/ migrations/ package.json
tar --create --file ../server.tar.gz -z *
cd ../..
rm -rd dist/server

# build game-utils
rm -rf node_modules apps/*/node_modules
pnpm -F game-utils --ignore-scripts --prod deploy dist/game-utils
cd dist/game-utils
tar --create --file ../../dist/game-utils.tar.gz -z node_modules/ src/ package.json
tar --create --file ../../dist/game-utils.tar.gz -z *
cd ../..
rm -rd dist/game-utils

# build games
cd apps/games
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"repository": {
"url": "https://github.com/feugy/tabulous"
},
"packageManager": "pnpm@8.5.1",
"packageManager": "pnpm@8.8.0",
"scripts": {
"dev:cli": "pnpm -F cli test:dev",
"dev:server": "pnpm -F server test:dev",
Expand Down
6 changes: 3 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 comments on commit 7114ffe

@vercel
Copy link

@vercel vercel bot commented on 7114ffe Sep 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

tabulous – ./apps/web

tabulous-git-main-feugy.vercel.app
tabulous-feugy.vercel.app
tabulous.fr
tabulous.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 7114ffe Sep 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

tabulous-atelier – ./apps/web

tabulous-atelier-git-main-feugy.vercel.app
tabulous-atelier.vercel.app
tabulous-atelier-feugy.vercel.app

Please sign in to comment.