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

updates and cleans up package.json scripts. #142

Merged
merged 2 commits into from
Jul 25, 2023
Merged
Changes from 1 commit
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
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",
Copy link
Collaborator

Choose a reason for hiding this comment

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

revert these changes?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm so confused as to how this happened? I pulled from main before I started working?

"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",
enigmalea marked this conversation as resolved.
Show resolved Hide resolved
"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",
enigmalea marked this conversation as resolved.
Show resolved Hide resolved
"start-db": "docker compose down && docker compose up",
enigmalea marked this conversation as resolved.
Show resolved Hide resolved
"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"
}
}
}