@startupjs/cli 0.40.0 → 0.40.15
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.
- package/index.js +23 -4
- package/package.json +6 -6
package/index.js
CHANGED
|
@@ -212,6 +212,7 @@ SCRIPTS_ORIG.serverWebpackBuild = oneLine(`
|
|
|
212
212
|
`)
|
|
213
213
|
|
|
214
214
|
SCRIPTS_ORIG.serverWebpackRun = ({ inspect, vite }) => oneLine(`
|
|
215
|
+
rm -f ./build/server.dev.cjs &&
|
|
215
216
|
just-wait -t 1000 --pattern ./build/server.dev.cjs &&
|
|
216
217
|
${vite ? 'VITE=1' : ''}
|
|
217
218
|
nodemon
|
|
@@ -235,16 +236,17 @@ SCRIPTS_ORIG.start = (options = {}) => {
|
|
|
235
236
|
|
|
236
237
|
SCRIPTS_ORIG.startPure = (...args) => oneLine(`
|
|
237
238
|
concurrently
|
|
238
|
-
-
|
|
239
|
-
-c
|
|
239
|
+
-s first -k -n 'Server,compile Web'
|
|
240
|
+
-c cyan.bgBlue,gray
|
|
240
241
|
"${SCRIPTS_ORIG.server(...args)}"
|
|
241
242
|
"${SCRIPTS_ORIG.web(...args)}"
|
|
242
243
|
`)
|
|
243
244
|
|
|
244
245
|
SCRIPTS_ORIG.startWebpack = (options) => oneLine(`
|
|
245
246
|
concurrently
|
|
246
|
-
-
|
|
247
|
-
-
|
|
247
|
+
-p "{name}:"
|
|
248
|
+
-s first -k -n 'Server,compile Server,compile Web'
|
|
249
|
+
-c cyan.bgBlue.bold,gray,gray
|
|
248
250
|
"${SCRIPTS_ORIG.serverWebpackRun(options)}"
|
|
249
251
|
"${SCRIPTS_ORIG.serverWebpackBuild}"
|
|
250
252
|
"${SCRIPTS_ORIG.web(options)}"
|
|
@@ -476,6 +478,14 @@ commander
|
|
|
476
478
|
.option('-w, --webpack', 'Force use Webpack. This will take priority over --vite and --pure option.')
|
|
477
479
|
.option('-r, --reset', 'Reset Vite cache before starting the server. This is helpful when you are directly monkey-patching node_modules')
|
|
478
480
|
.action(async (options) => {
|
|
481
|
+
if (options.inspect) {
|
|
482
|
+
console.log(
|
|
483
|
+
'\x1b[31m' +
|
|
484
|
+
'[@startupjs/cli] option -i, --inspect is DEPRECATED, use NODE_OPTIONS instead.' +
|
|
485
|
+
'\x1b[0m'
|
|
486
|
+
)
|
|
487
|
+
}
|
|
488
|
+
|
|
479
489
|
await execa.command(
|
|
480
490
|
SCRIPTS_ORIG.start(options),
|
|
481
491
|
{ stdio: 'inherit', shell: true }
|
|
@@ -509,6 +519,13 @@ commander
|
|
|
509
519
|
.option('-w, --webpack', 'Force use Webpack for server build. This takes priority over --pure option')
|
|
510
520
|
.option('-v, --vite', 'Automatically redirect to the web bundle served by Vite. Use this when running Vite for web client')
|
|
511
521
|
.action(async (options) => {
|
|
522
|
+
if (options.inspect) {
|
|
523
|
+
console.log(
|
|
524
|
+
'\x1b[31m' +
|
|
525
|
+
'[@startupjs/cli] option -i, --inspect is DEPRECATED, use NODE_OPTIONS instead.' +
|
|
526
|
+
'\x1b[0m'
|
|
527
|
+
)
|
|
528
|
+
}
|
|
512
529
|
await execa.command(
|
|
513
530
|
SCRIPTS_ORIG.server(options),
|
|
514
531
|
{ stdio: 'inherit', shell: true }
|
|
@@ -713,6 +730,8 @@ function appendGitignore (projectPath) {
|
|
|
713
730
|
# Detox
|
|
714
731
|
/artifacts/
|
|
715
732
|
/e2e/__diff_output__
|
|
733
|
+
# Mongo data when running in a docker dev container
|
|
734
|
+
/.mongo
|
|
716
735
|
`.replace(/\n\s+/g, '\n')
|
|
717
736
|
|
|
718
737
|
fs.writeFileSync(gitignorePath, gitignore)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@startupjs/cli",
|
|
3
|
-
"version": "0.40.
|
|
3
|
+
"version": "0.40.15",
|
|
4
4
|
"description": "start, watch and build startupjs project",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {},
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"commander": "^3.0.1",
|
|
13
|
-
"concurrently": "^4.
|
|
13
|
+
"concurrently": "^6.4.0",
|
|
14
14
|
"execa": "^2.0.4",
|
|
15
15
|
"fonteditor-core": "2.1.3",
|
|
16
16
|
"glob": "^7.1.6",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"react-native-asset": "2.0.1",
|
|
21
21
|
"source-map-support": "^0.5.19",
|
|
22
22
|
"wait-on": "^5.2.1",
|
|
23
|
-
"webpack": "^
|
|
24
|
-
"webpack-cli": "^
|
|
25
|
-
"webpack-dev-server": "^
|
|
23
|
+
"webpack": "^5.60.0",
|
|
24
|
+
"webpack-cli": "^4.9.1",
|
|
25
|
+
"webpack-dev-server": "^4.4.0"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "39bf6b32f295a12394989edddc2a5972779b2fcf"
|
|
28
28
|
}
|