@@ -17,7 +17,7 @@ module.exports = {
1717 serve : {
1818 script : series (
1919 'nps banner.serve' ,
20- '\"./node_modules/.bin/nodemon\" --watch src --watch .env' ,
20+ '\"./node_modules/.bin/nodemon\" --watch src --watch \" .env\" ' ,
2121 ) ,
2222 } ,
2323 /**
@@ -50,28 +50,28 @@ module.exports = {
5050 script : series (
5151 'nps banner.migrate' ,
5252 'nps db.config' ,
53- runFast ( './node_modules/.bin/typeorm migrations:run' ) ,
53+ runFast ( '\" ./node_modules/.bin/typeorm\" migrations:run' ) ,
5454 ) ,
5555 } ,
5656 revert : {
5757 script : series (
5858 'nps banner.revert' ,
5959 'nps db.config' ,
60- runFast ( './node_modules/.bin/typeorm migrations:revert' ) ,
60+ runFast ( '\" ./node_modules/.bin/typeorm\" migrations:revert' ) ,
6161 ) ,
6262 } ,
6363 seed : {
6464 script : series (
6565 'nps banner.seed' ,
6666 'nps db.config' ,
67- runFast ( './src/lib/seeds/' ) ,
67+ runFast ( '\" ./src/lib/seeds/\" ' ) ,
6868 ) ,
6969 } ,
7070 config : {
71- script : runFast ( './src/lib/ormconfig.ts' ) ,
71+ script : runFast ( '\" ./src/lib/ormconfig.ts\" ' ) ,
7272 } ,
7373 drop : {
74- script : runFast ( './node_modules/.bin/typeorm schema:drop' ) ,
74+ script : runFast ( '\" ./node_modules/.bin/typeorm\" schema:drop' ) ,
7575 } ,
7676 } ,
7777 /**
@@ -88,10 +88,10 @@ module.exports = {
8888 ) ,
8989 } ,
9090 pretest : {
91- script : './node_modules/.bin/tslint -c ./tslint.json -t stylish "./test/unit/**/*.ts"'
91+ script : '\" ./node_modules/.bin/tslint\" -c \" ./tslint.json\" -t stylish \ "./test/unit/**/*.ts\ "'
9292 } ,
9393 run : {
94- script : './node_modules/.bin/cross-env NODE_ENV=test \"./node_modules/.bin/jest\" --testPathPattern=unit'
94+ script : '\" ./node_modules/.bin/cross-env\" NODE_ENV=test \"./node_modules/.bin/jest\" --testPathPattern=unit'
9595 } ,
9696 verbose : {
9797 script : 'nps "test --verbose"'
@@ -110,28 +110,28 @@ module.exports = {
110110 ) ,
111111 } ,
112112 pretest : {
113- script : './node_modules/.bin/tslint -c ./tslint.json -t stylish "./test/e2e/**/*.ts"'
113+ script : '\" ./node_modules/.bin/tslint\" -c \" ./tslint.json\" -t stylish \ "./test/e2e/**/*.ts\ "'
114114 } ,
115115 verbose : {
116116 script : 'nps "test.e2e --verbose"'
117117 } ,
118118 run : series (
119119 `wait-on --timeout 120000 http-get://localhost:3000/api/info` ,
120- './node_modules/.bin/cross-env NODE_ENV=test \"./node_modules/.bin/jest\" --testPathPattern=e2e -i' ,
120+ '\" ./node_modules/.bin/cross-env\" NODE_ENV=test \"./node_modules/.bin/jest\" --testPathPattern=e2e -i' ,
121121 ) ,
122122 }
123123 } ,
124124 /**
125125 * Runs TSLint over your project
126126 */
127127 lint : {
128- script : `./node_modules/.bin/tslint -c ./tslint.json -p tsconfig.json ' src/**/*.ts' --format stylish`
128+ script : `\" ./node_modules/.bin/tslint\" -c \" ./tslint.json\" -p tsconfig.json \" src/**/*.ts\" --format stylish`
129129 } ,
130130 /**
131131 * Transpile your app into javascript
132132 */
133133 transpile : {
134- script : `./node_modules/.bin/tsc`
134+ script : `\" ./node_modules/.bin/tsc\" `
135135 } ,
136136 /**
137137 * Clean files and folders
@@ -144,7 +144,7 @@ module.exports = {
144144 ) ,
145145 } ,
146146 dist : {
147- script : `./node_modules/.bin/trash ' ./dist' `
147+ script : `\" ./node_modules/.bin/trash\" \" ./dist\" `
148148 }
149149 } ,
150150 /**
@@ -159,14 +159,14 @@ module.exports = {
159159 } ,
160160 swagger : {
161161 script : copy (
162- './src/api/swagger.json' ,
163- './dist' ,
162+ '\" ./src/api/swagger.json\" ' ,
163+ '\" ./dist\" ' ,
164164 ) ,
165165 } ,
166166 public : {
167167 script : copy (
168- './src/public/*' ,
169- './dist' ,
168+ '\" ./src/public/*\" ' ,
169+ '\" ./dist\" ' ,
170170 ) ,
171171 }
172172 } ,
@@ -191,16 +191,16 @@ function banner(name) {
191191 silent : true ,
192192 logLevel : 'error' ,
193193 description : `Shows ${ name } banners to the console` ,
194- script : runFast ( `./src/lib/banner.ts ${ name } ` ) ,
194+ script : runFast ( `\" ./src/lib/banner.ts\" ${ name } ` ) ,
195195 } ;
196196}
197197
198198function copy ( source , target ) {
199- return `./node_modules/.bin/copyup ${ source } ${ target } ` ;
199+ return `\" ./node_modules/.bin/copyup\" ${ source } ${ target } ` ;
200200}
201201
202202function run ( path ) {
203- return `./node_modules/.bin/ts-node ${ path } ` ;
203+ return `\" ./node_modules/.bin/ts-node\" ${ path } ` ;
204204}
205205
206206function runFast ( path ) {
0 commit comments