Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: automatic build when running dev #17

Merged
merged 1 commit into from
Aug 12, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"license": "MIT",
"scripts": {
"build": "(cp -f ../../lockers.json src/ || copy ..\\..\\lockers.json src\\ /y) && tsc --module commonjs --target es5 --outDir dist/ && sam build",
"dev": "pnpm stop-db && pnpm start-db && sam build && cross-env AWS_SAM_LOCAL=true sam local start-api --docker-network local-dev",
"dev": "pnpm build && pnpm stop-db && pnpm start-db && cross-env AWS_SAM_LOCAL=true sam local start-api --docker-network local-dev",
"start-db": "(docker network create local-dev || echo Network is already created. proceed to next.) && docker-compose down && docker-compose up -d && aws dynamodb create-table --region ap-southeast-2 --endpoint http://localhost:8000 --cli-input-json file://db-table-cli.json",
"stop-db": "docker-compose down",
"test": "mocha tests/unit",
Expand Down