@startupjs/cli 0.40.1 → 0.40.17

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 +22 -4
  2. package/package.json +3 -3
package/index.js CHANGED
@@ -236,16 +236,17 @@ SCRIPTS_ORIG.start = (options = {}) => {
236
236
 
237
237
  SCRIPTS_ORIG.startPure = (...args) => oneLine(`
238
238
  concurrently
239
- -r -s first -k -n 'S,W'
240
- -c black.bgWhite,cyan.bgBlue
239
+ -s first -k -n 'Server,compile Web'
240
+ -c cyan.bgBlue,gray
241
241
  "${SCRIPTS_ORIG.server(...args)}"
242
242
  "${SCRIPTS_ORIG.web(...args)}"
243
243
  `)
244
244
 
245
245
  SCRIPTS_ORIG.startWebpack = (options) => oneLine(`
246
246
  concurrently
247
- -r -s first -k -n 'S,B,W'
248
- -c black.bgWhite,black.bgWhite,cyan.bgBlue
247
+ -p "{name}:"
248
+ -s first -k -n 'Server,compile Server,compile Web'
249
+ -c cyan.bgBlue.bold,gray,gray
249
250
  "${SCRIPTS_ORIG.serverWebpackRun(options)}"
250
251
  "${SCRIPTS_ORIG.serverWebpackBuild}"
251
252
  "${SCRIPTS_ORIG.web(options)}"
@@ -477,6 +478,14 @@ commander
477
478
  .option('-w, --webpack', 'Force use Webpack. This will take priority over --vite and --pure option.')
478
479
  .option('-r, --reset', 'Reset Vite cache before starting the server. This is helpful when you are directly monkey-patching node_modules')
479
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
+
480
489
  await execa.command(
481
490
  SCRIPTS_ORIG.start(options),
482
491
  { stdio: 'inherit', shell: true }
@@ -510,6 +519,13 @@ commander
510
519
  .option('-w, --webpack', 'Force use Webpack for server build. This takes priority over --pure option')
511
520
  .option('-v, --vite', 'Automatically redirect to the web bundle served by Vite. Use this when running Vite for web client')
512
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
+ }
513
529
  await execa.command(
514
530
  SCRIPTS_ORIG.server(options),
515
531
  { stdio: 'inherit', shell: true }
@@ -714,6 +730,8 @@ function appendGitignore (projectPath) {
714
730
  # Detox
715
731
  /artifacts/
716
732
  /e2e/__diff_output__
733
+ # Mongo data when running in a docker dev container
734
+ /.mongo
717
735
  `.replace(/\n\s+/g, '\n')
718
736
 
719
737
  fs.writeFileSync(gitignorePath, gitignore)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@startupjs/cli",
3
- "version": "0.40.1",
3
+ "version": "0.40.17",
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.1.2",
13
+ "concurrently": "^6.4.0",
14
14
  "execa": "^2.0.4",
15
15
  "fonteditor-core": "2.1.3",
16
16
  "glob": "^7.1.6",
@@ -24,5 +24,5 @@
24
24
  "webpack-cli": "^4.9.1",
25
25
  "webpack-dev-server": "^4.4.0"
26
26
  },
27
- "gitHead": "1898cc1fbd2af1b336958e161817f28d842404c5"
27
+ "gitHead": "e31ced804c2af9d650b72aed0ca174bdb93a3dcb"
28
28
  }