@startupjs/cli 0.50.23 → 0.51.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +30 -30
  2. package/package.json +3 -3
package/index.js CHANGED
@@ -100,14 +100,14 @@ SCRIPTS_ORIG.web = ({ reset, vite, webpack } = {}) => {
100
100
  }
101
101
 
102
102
  SCRIPTS_ORIG.webVite = ({ reset } = {}) => oneLine(`
103
- ${reset ? 'rimraf node_modules/.vite_opt_cache &&' : ''}
104
- cross-env VITE_WEB=1
105
- vite
103
+ ${reset ? 'npx rimraf node_modules/.vite_opt_cache &&' : ''}
104
+ npx cross-env VITE_WEB=1
105
+ npx vite
106
106
  `)
107
107
 
108
108
  SCRIPTS_ORIG.webWebpack = oneLine(`
109
- cross-env WEBPACK_DEV=1
110
- webpack-dev-server --config webpack.web.config.cjs
109
+ npx cross-env WEBPACK_DEV=1
110
+ npx webpack-dev-server --config webpack.web.config.cjs
111
111
  `)
112
112
 
113
113
  // Detox test
@@ -158,27 +158,27 @@ SCRIPTS_ORIG.testInit = () => {
158
158
 
159
159
  SCRIPTS_ORIG.testBuild = appName => oneLine(`
160
160
  ${SCRIPTS_ORIG.testJsBundle(appName)}
161
- && detox build -c ios
161
+ && npx detox build -c ios
162
162
  `)
163
163
 
164
164
  SCRIPTS_ORIG.testIos = (appName, artifacts, updateScreenshot) => oneLine(`
165
- ${updateScreenshot ? `rimraf \`find ${ROOT_PATH} -name "__image_snapshots__" -type d\` &&` : ''}
166
- concurrently
165
+ ${updateScreenshot ? `npx rimraf \`find ${ROOT_PATH} -name "__image_snapshots__" -type d\` &&` : ''}
166
+ npx concurrently
167
167
  -s first -k -n "S,T"
168
168
  -c white,cyan.bgBlue
169
169
  "mongo ${appName}_test --eval 'db.dropDatabase();'
170
- && cross-env ASYNC=1 startupjs build
171
- && PORT=3001 MONGO_URL=mongodb://localhost:27017/${appName}_test startupjs start-production"
170
+ && npx cross-env ASYNC=1 startupjs build
171
+ && PORT=3001 MONGO_URL=mongodb://localhost:27017/${appName}_test npx startupjs start-production"
172
172
  "${SCRIPTS_ORIG.testJsBundle(appName)}
173
- && wait-on http://localhost:3001
174
- && detox test -c ios
173
+ && npx wait-on http://localhost:3001
174
+ && npx detox test -c ios
175
175
  ${artifacts ? '--artifacts-location $PWD/artifacts --take-screenshots all' : ''}
176
176
  ${updateScreenshot ? '--testNamePattern Screenshots:' : ''}"
177
177
  `)
178
178
 
179
179
  SCRIPTS_ORIG.testJsBundle = appName => oneLine(`
180
180
  mkdir -p ios/build/Build/Products/Release-iphonesimulator/${appName}.app/
181
- && cross-env APP_ENV=detox react-native bundle
181
+ && npx cross-env APP_ENV=detox react-native bundle
182
182
  --entry-file="index.js"
183
183
  --bundle-output="./ios/build/Build/Products/Release-iphonesimulator/${appName}.app/main.jsbundle"
184
184
  --reset-cache --dev=false
@@ -195,8 +195,8 @@ SCRIPTS_ORIG.server = ({ inspect, vite, webpack, pure } = {}) => {
195
195
  }
196
196
 
197
197
  SCRIPTS_ORIG.serverPure = ({ inspect, vite } = {}) => oneLine(`
198
- ${vite ? 'cross-env VITE=1' : ''}
199
- nodemon
198
+ ${vite ? 'npx cross-env VITE=1' : ''}
199
+ npx nodemon
200
200
  --experimental-specifier-resolution=node
201
201
  ${inspect ? '--inspect' : ''}
202
202
  -e js,mjs,cjs,json,yaml server.js
@@ -213,7 +213,7 @@ SCRIPTS_ORIG.serverPure = ({ inspect, vite } = {}) => oneLine(`
213
213
  `)
214
214
 
215
215
  SCRIPTS_ORIG.serverWebpack = (options) => oneLine(`
216
- concurrently
216
+ npx concurrently
217
217
  -r -s first -k -n 'S,B'
218
218
  -c black.bgWhite,black.bgWhite
219
219
  "${SCRIPTS_ORIG.serverWebpackRun(options)}"
@@ -221,15 +221,15 @@ SCRIPTS_ORIG.serverWebpack = (options) => oneLine(`
221
221
  `)
222
222
 
223
223
  SCRIPTS_ORIG.serverWebpackBuild = oneLine(`
224
- cross-env WEBPACK_DEV=1
225
- webpack --watch --config webpack.server.config.cjs
224
+ npx cross-env WEBPACK_DEV=1
225
+ npx webpack --watch --config webpack.server.config.cjs
226
226
  `)
227
227
 
228
228
  SCRIPTS_ORIG.serverWebpackRun = ({ inspect, vite }) => oneLine(`
229
- rimraf ./build/server.dev.cjs &&
230
- just-wait -t 1000 --pattern ./build/server.dev.cjs &&
231
- ${vite ? 'cross-env VITE=1' : ''}
232
- nodemon
229
+ npx rimraf ./build/server.dev.cjs &&
230
+ npx just-wait -t 1000 --pattern ./build/server.dev.cjs &&
231
+ ${vite ? 'npx cross-env VITE=1' : ''}
232
+ npx nodemon
233
233
  --experimental-specifier-resolution=node
234
234
  ${inspect ? '--inspect' : ''}
235
235
  ./build/server.dev.cjs
@@ -249,7 +249,7 @@ SCRIPTS_ORIG.start = (options = {}) => {
249
249
  }
250
250
 
251
251
  SCRIPTS_ORIG.startPure = (...args) => oneLine(`
252
- concurrently
252
+ npx concurrently
253
253
  -s first -k -n 'Server,Web'
254
254
  -c cyan.bgBlue,gray
255
255
  "${SCRIPTS_ORIG.server(...args)}"
@@ -257,7 +257,7 @@ SCRIPTS_ORIG.startPure = (...args) => oneLine(`
257
257
  `)
258
258
 
259
259
  SCRIPTS_ORIG.startWebpack = (options) => oneLine(`
260
- concurrently
260
+ npx concurrently
261
261
  -p "{name}:"
262
262
  -s first -k -n 'Server,ServerBuild,Web'
263
263
  -c cyan.bgBlue.bold,gray,gray
@@ -269,10 +269,10 @@ SCRIPTS_ORIG.startWebpack = (options) => oneLine(`
269
269
  // Production build
270
270
 
271
271
  SCRIPTS_ORIG.build = ({ async, pure } = {}) => oneLine(`
272
- rimraf ./build &&
273
- ${pure ? '' : 'webpack --config webpack.server.config.cjs &&'}
274
- ${async ? 'cross-env ASYNC=1' : ''}
275
- webpack --config webpack.web.config.cjs
272
+ npx rimraf ./build &&
273
+ ${pure ? '' : 'npx webpack --config webpack.server.config.cjs &&'}
274
+ ${async ? 'npx cross-env ASYNC=1' : ''}
275
+ npx webpack --config webpack.web.config.cjs
276
276
  `)
277
277
 
278
278
  SCRIPTS_ORIG.startProduction = ({ pure }) => {
@@ -284,14 +284,14 @@ SCRIPTS_ORIG.startProduction = ({ pure }) => {
284
284
  }
285
285
 
286
286
  SCRIPTS_ORIG.startProductionPure = oneLine(`
287
- cross-env NODE_ENV=production
287
+ npx cross-env NODE_ENV=production
288
288
  node
289
289
  --experimental-specifier-resolution=node
290
290
  server.js
291
291
  `)
292
292
 
293
293
  SCRIPTS_ORIG.startProductionWebpack = oneLine(`
294
- cross-env NODE_ENV=production
294
+ npx cross-env NODE_ENV=production
295
295
  node
296
296
  --experimental-specifier-resolution=node
297
297
  -r source-map-support/register
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@startupjs/cli",
3
- "version": "0.50.23",
3
+ "version": "0.51.0",
4
4
  "description": "start, watch and build startupjs project",
5
5
  "main": "index.js",
6
6
  "scripts": {},
@@ -17,7 +17,7 @@
17
17
  "glob": "^7.1.6",
18
18
  "just-wait": "^1.0.11",
19
19
  "lodash": "^4.17.20",
20
- "nodemon": "2.0.0",
20
+ "nodemon": "2.0.22",
21
21
  "react-native-asset": "2.0.1",
22
22
  "rimraf": "^3.0.2",
23
23
  "source-map-support": "^0.5.19",
@@ -26,5 +26,5 @@
26
26
  "webpack-cli": "^4.9.1",
27
27
  "webpack-dev-server": "^4.4.0"
28
28
  },
29
- "gitHead": "0ceaea6e670b1e753844afdf62d5be41f1b14574"
29
+ "gitHead": "c5a82f52ce1671b272e216ebd860e93734f561f0"
30
30
  }