Browse Source

Harmonize scripts (#21)

pull/22/head
Thomas 4 years ago
committed by GitHub
parent
commit
c45bd70711
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      package.json

10
package.json

@ -13,9 +13,9 @@
"affected:lint": "nx affected:lint", "affected:lint": "nx affected:lint",
"affected:test": "nx affected:test", "affected:test": "nx affected:test",
"angular": "node --max_old_space_size=32768 ./node_modules/@angular/cli/bin/ng", "angular": "node --max_old_space_size=32768 ./node_modules/@angular/cli/bin/ng",
"build:all": "ng build --prod api && ng build --prod client && yarn run replace-placeholders-in-build", "build:all": "ng build --prod api && ng build --prod client && yarn replace-placeholders-in-build",
"clean": "rimraf dist", "clean": "rimraf dist",
"database:push": "yarn prisma db push --preview-feature", "database:push": "prisma db push --preview-feature",
"database:seed": "prisma db seed --preview-feature", "database:seed": "prisma db seed --preview-feature",
"dep-graph": "nx dep-graph", "dep-graph": "nx dep-graph",
"e2e": "ng e2e", "e2e": "ng e2e",
@ -27,17 +27,17 @@
"lint": "nx workspace-lint && ng lint", "lint": "nx workspace-lint && ng lint",
"ng": "nx", "ng": "nx",
"nx": "nx", "nx": "nx",
"postinstall": "yarn prisma generate", "postinstall": "prisma generate",
"replace-placeholders-in-build": "node ./replace.build.js", "replace-placeholders-in-build": "node ./replace.build.js",
"setup:database": "yarn database:push && yarn database:seed", "setup:database": "yarn database:push && yarn database:seed",
"start": "node dist/apps/api/main", "start": "node dist/apps/api/main",
"start:client": "ng serve client --hmr -o", "start:client": "ng serve client --hmr -o",
"start:prod": "node apps/api/main", "start:prod": "node apps/api/main",
"start:server": "yarn run nx serve api", "start:server": "nx serve api",
"test": "ng test", "test": "ng test",
"ts-node": "ts-node --compiler-options '{\"module\":\"CommonJS\"}'", "ts-node": "ts-node --compiler-options '{\"module\":\"CommonJS\"}'",
"update": "nx migrate latest", "update": "nx migrate latest",
"watch:server": "yarn run nx build api --watch", "watch:server": "nx build api --watch",
"workspace-generator": "nx workspace-generator" "workspace-generator": "nx workspace-generator"
}, },
"dependencies": { "dependencies": {

Loading…
Cancel
Save