Skip to content

Commit

Permalink
updates and cleans up package.json scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
enigmalea committed Jul 4, 2023
1 parent 0eb82b4 commit ef8c8e0
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,29 @@
"name": "bobaserver",
"version": "1.0.0",
"description": "Server for BobaBoard",
"homepage": "https://docs.bobaboard.com/",
"homepage": "https://github.com/essential-randomness/bobaserver#readme",
"bugs": {
"url": "https://github.com/BobaBoard/boba-backend/issues"
"url": "https://github.com/essential-randomness/bobaserver/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/BobaBoard/boba-backend.git"
"url": "git+https://github.com/essential-randomness/bobaserver.git"
},
"license": "MIT",
"author": "BobaBoard Team",
"author": "",
"main": "dist/server/index.js",
"scripts": {
"build": "tsc && tsc-alias && copyfiles .env .env.prod firebase-sdk.json server/**/*.sql ./dist",
"db:start": "docker compose down && docker compose up",
"deploy": "gcloud config set project bobaboard && gcloud app deploy --version live",
"dev:watch": "cross-env DEBUG=bobaserver:*,-*info DEBUG_DEPTH=10 nodemon --watch . --exec node -r tsconfig-paths/register -r ts-node/register server/index.ts -e yaml,ts,sql",
"open-api:docker": "docker compose -f docker-compose.open-api.test.yml run --rm test",
"open-api:generate": "node -r dotenv/config -r ts-node/register -r tsconfig-paths/register utils/generate-spec-file.ts dotenv_config_path=./.env.prod",
"open-api:typescript": "yarn run open-api:generate && openapi-zod-client ./open-api-spec.json -o ./types/open-api/generated/schemas.ts --export-schemas --template ./types/open-api/generated/schemas.hbs --with-alias && openapi-zod-client ./open-api-spec.json -o ./types/open-api/generated/types.ts --export-schemas --template ./types/open-api/generated/types.hbs --with-alias",
"open-api:validate": "yarn run open-api:generate && validate-api open-api-spec.json && openapi-examples-validator open-api-spec.json --ignore-formats color quill-delta && openapi lint open-api-spec.json --skip-rule=no-ambiguous-paths",
"stage": "gcloud config set project bobaboard && gcloud app deploy --quiet --version staging --no-promote",
"start": "cross-env DEBUG=bobaserver:*,-*info node -r dotenv/config dist/server/index.js dotenv_config_path=./.env.prod",
"start-db": "docker compose down && docker compose up",
"test": "yarn run test:base",
"test:base": "cross-env DEBUG=bobaserver:*,-*info jest --runInBand --no-cache",
"test:changed": "yarn run test:base --watch --onlyChanged",
"server:build": "tsc && tsc-alias && copyfiles .env .env.prod firebase-sdk.json server/**/*.sql ./dist",
"server:dev": "cross-env DEBUG=bobaserver:*,-*info DEBUG_DEPTH=10 nodemon --watch . --exec node -r tsconfig-paths/register -r ts-node/register server/index.ts -e yaml,ts,sql",
"server:start": "cross-env DEBUG=bobaserver:*,-*info node -r dotenv/config dist/server/index.js dotenv_config_path=./.env.prod",
"test": "cross-env DEBUG=bobaserver:*,-*info jest --runInBand --no-cache",
"test:changed": "yarn run test --watch",
"test:debug": "node --inspect-brk node_modules/.bin/jest --runInBand --no-cache",
"test:docker": "docker compose down && docker compose -f docker-compose.test.yml run --rm test",
"test:watch": "yarn run test --watchAll"
Expand Down Expand Up @@ -82,4 +80,4 @@
"tsconfig-paths": "^3.11.0",
"typescript": "^4.9.4"
}
}
}

0 comments on commit ef8c8e0

Please sign in to comment.