scripting-cli 1.0.0 → 1.0.2

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/dist/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ #!/usr/bin/env node
1
2
  "use strict";
2
3
  var __importDefault = (this && this.__importDefault) || function (mod) {
3
4
  return (mod && mod.__esModule) ? mod : { "default": mod };
@@ -9,7 +10,7 @@ const build_1 = require("./build");
9
10
  const createApp_1 = require("./createApp");
10
11
  function run() {
11
12
  const args = (0, minimist_1.default)(process.argv.slice(2));
12
- console.log(args);
13
+ // console.log(args)
13
14
  if (args['create'] != null) {
14
15
  (0, createApp_1.createApp)(args['create']);
15
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scripting-cli",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "This plugin include all the commands for developing scripting-js apps.",
5
5
  "main": "./dist/index.js",
6
6
  "bin": {
@@ -25,9 +25,7 @@
25
25
  "url": "https://github.com/thomfang/scripting-cli/issues"
26
26
  },
27
27
  "homepage": "https://github.com/thomfang/scripting-cli#readme",
28
- "devDependencies": {
29
- "@types/express": "^4.17.21",
30
- "@types/minimist": "^1.2.5",
28
+ "dependencies": {
31
29
  "chalk": "^4.1.2",
32
30
  "express": "^4.18.2",
33
31
  "file-loader": "^6.2.0",
@@ -37,5 +35,9 @@
37
35
  "typescript": "^5.1.6",
38
36
  "webpack": "^5.88.2",
39
37
  "webpack-cli": "^5.1.4"
38
+ },
39
+ "devDependencies": {
40
+ "@types/express": "^4.17.21",
41
+ "@types/minimist": "^1.2.5"
40
42
  }
41
43
  }
package/src/index.ts CHANGED
@@ -1,3 +1,5 @@
1
+ #!/usr/bin/env node
2
+
1
3
  import minimist from "minimist"
2
4
  import { startDevServer } from './startDevServer'
3
5
  import { buildApp } from './build'
@@ -6,7 +8,7 @@ import { createApp } from './createApp'
6
8
  function run() {
7
9
  const args = minimist(process.argv.slice(2))
8
10
 
9
- console.log(args)
11
+ // console.log(args)
10
12
  if (args['create'] != null) {
11
13
  createApp(args['create'])
12
14
  } else if (args._.includes('dev')) {