|
35 | 35 | "scripts": {
|
36 | 36 | "ci": "yarn run eslint && yarn run test:coverage",
|
37 | 37 | "clear": "rm -Rf tmp",
|
38 |
| - "test": "npm run mocha && npm run cucumber", |
39 |
| - "test:coverage": "nyc --reporter=lcovonly --reporter=text-summary npm run test", |
40 |
| - "test:mongo": "npm run eslint && cross-env NODE_ENV=test && nyc --reporter=lcovonly --reporter=text-summary npm run mocha:mongo", |
| 38 | + "test": "yarn run mocha && yarn run cucumber", |
| 39 | + "test:coverage": "nyc --reporter=lcovonly --reporter=text-summary yarn run test", |
| 40 | + "test:mongo": "yarn run eslint && cross-env NODE_ENV=test && nyc --reporter=lcovonly --reporter=text-summary yarn run mocha:mongo", |
41 | 41 | "eslint": "eslint server/. test/. features/. --config .eslintrc.json",
|
42 | 42 | "start": "concurrently 'mongod' 'wait-on tcp:27017 && cross-env NODE_ENV=production node server/'",
|
43 |
| - "dev:debug": "npm run clear && concurrently '$npm_package_config_mongoDev &>/dev/null' 'wait-on tcp:27017 && cross-env DEBUG=feathers && cross-env NODE_ENV=development nodemon --inspect server/'", |
44 |
| - "dev": "npm run clear && concurrently '$npm_package_config_mongoDev &>/dev/null' 'wait-on tcp:27017 && cross-env DEBUG=feathers && cross-env NODE_ENV=development nodemon server/'", |
| 43 | + "dev:debug": "yarn run clear && concurrently '$npm_package_config_mongoDev &>/dev/null' 'wait-on tcp:27017 && cross-env DEBUG=feathers && cross-env NODE_ENV=development nodemon --inspect server/'", |
| 44 | + "dev": "yarn run clear && concurrently '$npm_package_config_mongoDev &>/dev/null' 'wait-on tcp:27017 && cross-env DEBUG=feathers && cross-env NODE_ENV=development nodemon server/'", |
45 | 45 | "dev:local": "sh scripts/run-local.sh",
|
46 | 46 | "dev:noseed": "concurrently 'mongod --dbpath data' 'wait-on tcp:27017 && NODE_ENV=development DEBUG=feathers nodemon server/'",
|
47 |
| - "dev:win": "npm run clear && concurrently \"mongod --dbpath /data/db\" \"wait-on tcp:27017&&cross-env NODE_ENV=development&&cross-env DEBUG=feathers&& nodemon --inspect server/\"", |
48 |
| - "mocha": "npm run clear && $npm_package_config_mocha", |
49 |
| - "mocha:mongo": "$npm_package_config_concurrently '$npm_package_config_mongoDev &>/dev/null' 'wait-on tcp:27017 && npm run mocha'", |
50 |
| - "cucumber": "npm run clear && concurrently --kill-others --success first 'cross-env NODE_ENV=test node server/' 'wait-on tcp:3031 && cross-env NODE_ENV=test cucumber-js'", |
51 |
| - "cucumber:mongo": "npm run clear && concurrently --kill-others --success first '$npm_package_config_mongoDev &>/dev/null || sleep infinity' 'wait-on tcp:27017 && cross-env NODE_ENV=test node server/' 'wait-on tcp:3031 && cross-env NODE_ENV=test cucumber-js'" |
| 47 | + "dev:win": "yarn run clear && concurrently \"mongod --dbpath /data/db\" \"wait-on tcp:27017&&cross-env NODE_ENV=development&&cross-env DEBUG=feathers&& nodemon --inspect server/\"", |
| 48 | + "mocha": "yarn run clear && $npm_package_config_mocha", |
| 49 | + "mocha:mongo": "$npm_package_config_concurrently '$npm_package_config_mongoDev &>/dev/null' 'wait-on tcp:27017 && yarn run mocha'", |
| 50 | + "cucumber": "yarn run clear && concurrently --kill-others --success first 'cross-env NODE_ENV=test node server/' 'wait-on tcp:3031 && cross-env NODE_ENV=test cucumber-js'", |
| 51 | + "cucumber:mongo": "yarn run clear && concurrently --kill-others --success first '$npm_package_config_mongoDev &>/dev/null || sleep infinity' 'wait-on tcp:27017 && cross-env NODE_ENV=test node server/' 'wait-on tcp:3031 && cross-env NODE_ENV=test cucumber-js'" |
52 | 52 | },
|
53 | 53 | "config": {
|
54 | 54 | "mongoDev": "mongod --dbpath data --quiet",
|
|
0 commit comments