forked from FoundKeyGang/FoundKey
switch to yarn for scripts and move start to backend
This commit is contained in:
parent
13b2cba980
commit
6bccbc0d6d
2 changed files with 12 additions and 9 deletions
18
package.json
18
package.json
|
@ -9,24 +9,24 @@
|
||||||
"workspaces": ["packages/*"],
|
"workspaces": ["packages/*"],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "node ./scripts/build.js",
|
"build": "node ./scripts/build.js",
|
||||||
"start": "cd packages/backend && node --experimental-json-modules ./built/index.js",
|
"start": "yarn workspace backend run start",
|
||||||
"start:test": "cd packages/backend && cross-env NODE_ENV=test node --experimental-json-modules ./built/index.js",
|
"start:test": "yarn workspace backend run start:test",
|
||||||
"init": "npm run migrate",
|
"init": "yarn migrate",
|
||||||
"migrate": "cd packages/backend && npx typeorm migration:run -d ormconfig.js",
|
"migrate": "yarn workspace backend run migrate",
|
||||||
"migrateandstart": "npm run migrate && npm run start",
|
"migrateandstart": "yarn migrate && yarn start",
|
||||||
"gulp": "gulp build",
|
"gulp": "gulp build",
|
||||||
"watch": "npm run dev",
|
"watch": "yarn dev",
|
||||||
"dev": "node ./scripts/dev.js",
|
"dev": "node ./scripts/dev.js",
|
||||||
"lint": "node ./scripts/lint.js",
|
"lint": "node ./scripts/lint.js",
|
||||||
"cy:open": "cypress open --browser --e2e --config-file=cypress.config.ts",
|
"cy:open": "cypress open --browser --e2e --config-file=cypress.config.ts",
|
||||||
"cy:run": "cypress run",
|
"cy:run": "cypress run",
|
||||||
"e2e": "start-server-and-test start:test http://localhost:61812 cy:run",
|
"e2e": "start-server-and-test start:test http://localhost:61812 cy:run",
|
||||||
"mocha": "cd packages/backend && cross-env NODE_ENV=test TS_NODE_FILES=true TS_NODE_TRANSPILE_ONLY=true TS_NODE_PROJECT=\"./test/tsconfig.json\" npx mocha",
|
"mocha": "yarn workspace backend run mocha",
|
||||||
"test": "npm run mocha",
|
"test": "yarn mocha",
|
||||||
"format": "gulp format",
|
"format": "gulp format",
|
||||||
"clean": "node ./scripts/clean.js",
|
"clean": "node ./scripts/clean.js",
|
||||||
"clean-all": "node ./scripts/clean-all.js",
|
"clean-all": "node ./scripts/clean-all.js",
|
||||||
"cleanall": "npm run clean-all"
|
"cleanall": "yarn clean-all"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"execa": "5.1.1",
|
"execa": "5.1.1",
|
||||||
|
|
|
@ -9,6 +9,9 @@
|
||||||
"watch": "node watch.mjs",
|
"watch": "node watch.mjs",
|
||||||
"lint": "eslint src --ext .ts",
|
"lint": "eslint src --ext .ts",
|
||||||
"mocha": "cross-env NODE_ENV=test TS_NODE_FILES=true TS_NODE_TRANSPILE_ONLY=true TS_NODE_PROJECT=\"./test/tsconfig.json\" mocha",
|
"mocha": "cross-env NODE_ENV=test TS_NODE_FILES=true TS_NODE_TRANSPILE_ONLY=true TS_NODE_PROJECT=\"./test/tsconfig.json\" mocha",
|
||||||
|
"migrate": "npx typeorm migration:run -d ormconfig.js",
|
||||||
|
"start": "node --experimental-json-modules ./built/index.js",
|
||||||
|
"start:test": "cross-env NODE_ENV=test node --experimental-json-modules ./built/index.js",
|
||||||
"test": "npm run mocha"
|
"test": "npm run mocha"
|
||||||
},
|
},
|
||||||
"resolutions": {
|
"resolutions": {
|
||||||
|
|
Loading…
Reference in a new issue