Skip to content

Commit b8ea249

Browse files
committed
Fix issue nps
1 parent 020b2db commit b8ea249

File tree

3 files changed

+7
-16
lines changed

3 files changed

+7
-16
lines changed

.eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
node_modules/
22
dist/
3+
package-scripts.js

package-scripts.js

+5-15
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ module.exports = {
1717
},
1818
default: {
1919
description: 'Start project with pm2 on production.',
20-
script: `${crossEnv(
21-
'NODE_ENV=production',
22-
)} pm2 start processes.json dist/index.bundle.js`,
20+
script: `${crossEnv('NODE_ENV=production')} pm2 start processes.json dist/index.bundle.js`,
2321
},
2422
doc: {
2523
description: 'Documenting the api.',
@@ -32,9 +30,7 @@ module.exports = {
3230
dev: {
3331
start: {
3432
description: 'Running on dev environment.',
35-
script: `${crossEnv(
36-
'NODE_ENV=development',
37-
)} nodemon dist/index.bundle.js`,
33+
script: `${crossEnv('NODE_ENV=development')} nodemon dist/index.bundle.js`,
3834
},
3935
default: {
4036
script: concurrent.nps('dev.watch', 'dev.start'),
@@ -44,9 +40,7 @@ module.exports = {
4440
script: 'webpack -w',
4541
},
4642
withDebug: {
47-
script: `${crossEnv(
48-
'NODE_ENV=development',
49-
)} MONGOOSE_DEBUG=true DEBUG=express:* nodemon dist/index.bundle.js`,
43+
script: `${crossEnv('NODE_ENV=development')} MONGOOSE_DEBUG=true DEBUG=express:* nodemon dist/index.bundle.js`,
5044
},
5145
debug: {
5246
description: 'Running on dev environment with debug on.',
@@ -64,13 +58,9 @@ module.exports = {
6458
seedsClear: 'bash ./scripts/seeds/clearAll.seed.sh',
6559
},
6660
test: {
67-
default: `${crossEnv(
68-
'NODE_ENV=test',
69-
)} mocha $(find __tests__ -name *.test.js) --colors --compilers js:babel-register`,
61+
default: `${crossEnv('NODE_ENV=test')} mocha $(find __tests__ -name *.test.js) --colors --compilers js:babel-register`,
7062
watch: series.nps('test -w'),
71-
cover: `${crossEnv(
72-
'NODE_ENV=test',
73-
)} istanbul cover _mocha $(find __tests__ -name *.test.js) -- --compilers js:babel-register --colors --bail --recursive '__tests__/**/*.test.js'`,
63+
cover: `${crossEnv('NODE_ENV=test')} istanbul cover _mocha $(find __tests__ -name *.test.js) -- --compilers js:babel-register --colors --bail --recursive '__tests__/**/*.test.js'`,
7464
checkCover: series('nps test.cover', 'istanbul check-coverage'),
7565
},
7666
cover: {

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
],
3939
"license": "MIT",
4040
"lint-staged": {
41-
"*.js": [
41+
"src/**/*.js": [
4242
"yarn prettier",
4343
"git add"
4444
]

0 commit comments

Comments
 (0)