Skip to content

Commit

Permalink
shorter syntax for npm cli
Browse files Browse the repository at this point in the history
  • Loading branch information
bhouston committed Jul 13, 2024
1 parent b363bbc commit 92a8c5d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ WORKDIR /usr/src/app

COPY . ./

RUN npm ci --workspace koa-server --workspace react-app --include-workspace-root
RUN npm ci -w koa-server -w react-app --include-workspace-root
RUN npx nx run-many -t build -p koa-server react-app

ENV PORT=8080
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@
"type": "module",
"main": "index.js",
"scripts": {
"build": "nx run-many --target=build --all",
"build": "nx run-many -t build --all",
"watch": "lerna run watch --stream",
"start": "npm run start -w=koa-server",
"start": "npm run start -w koa-server",
"clean": "node scripts/clean.js --node_modules --dist --.nx",
"clean:dist": "node scripts/clean.js --dist --.nx",
"lint:check": "nx run-many --target=lint:check --all",
"lint": "nx run-many --target=lint --all",
"format": "nx run-many --target=format --all",
"test": "nx run-many --target=test --all",
"publish": "nx run-many --target=build,test --all && lerna publish --no-private",
"lint:check": "nx run-many -t lint:check --all",
"lint": "nx run-many -t lint --all",
"format": "nx run-many -t format --all",
"test": "nx run-many -t test --all",
"publish": "nx run-many -t build test --all && lerna publish --no-private",
"gcloud-setup": "gcloud auth application-default login && gcloud config set project bhouston-general-hosting && gcloud config set run/region us-central1"
},
"keywords": [],
Expand Down

0 comments on commit 92a8c5d

Please sign in to comment.