@ray-js/cli 1.5.0-beta.11 → 1.5.0-beta.12

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/bin/ray-build.js CHANGED
@@ -12,6 +12,8 @@ program
12
12
  .option('--mini', '启用压缩构建产物', true)
13
13
  .option('--blended', '混合编译')
14
14
  .option('--no-mini', '禁用压缩构建产物')
15
+ .option('--sourcemap', '启动 sourcemap', true)
16
+ .option('--no-sourcemap', '禁用 sourcemap')
15
17
  .option('-t --target <target>', '目标平台')
16
18
  .option('-a --analyze', '开启 analyze 分析')
17
19
  .option('--type <type>', '构建类型 eg: app | component', 'app')
package/bin/ray-start.js CHANGED
@@ -12,6 +12,8 @@ program
12
12
  .option('--mini', '启用压缩构建产物', false)
13
13
  .option('--blended', '混合编译')
14
14
  .option('--no-mini', '禁用压缩构建产物')
15
+ .option('--sourcemap', '启动 sourcemap', true)
16
+ .option('--no-sourcemap', '禁用 sourcemap')
15
17
  .option('-t --target <target>', '目标平台')
16
18
  .option('-a --analyze', '开启 analyze 分析')
17
19
  .option('--type <type>', '构建类型 eg: app | component', 'app')
package/lib/build.js CHANGED
@@ -24,7 +24,7 @@ function build(options) {
24
24
  output: restOptions.output || 'dist/tuya',
25
25
  minify: restOptions.mini,
26
26
  autoCssModules: false,
27
- sourcemap: true,
27
+ sourcemap: restOptions.sourcemap,
28
28
  };
29
29
  build(opts).catch((error) => {
30
30
  console.log(error);
package/lib/start.js CHANGED
@@ -24,7 +24,7 @@ function start(options) {
24
24
  output: restOptions.output || 'dist/tuya',
25
25
  minify: restOptions.mini,
26
26
  autoCssModules: false,
27
- sourcemap: true,
27
+ sourcemap: restOptions.sourcemap,
28
28
  };
29
29
  build(opts).catch((error) => {
30
30
  console.log(error);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/cli",
3
- "version": "1.5.0-beta.11",
3
+ "version": "1.5.0-beta.12",
4
4
  "description": "Ray cli",
5
5
  "keywords": [
6
6
  "ray"
@@ -27,14 +27,14 @@
27
27
  "watch": "tsc -p ./tsconfig.build.json --watch"
28
28
  },
29
29
  "dependencies": {
30
- "@ray-js/build-plugin-ray": "^1.5.0-beta.11",
31
- "@ray-js/build-plugin-router": "^1.5.0-beta.11",
32
- "@ray-js/builder-component": "^1.5.0-beta.11",
33
- "@ray-js/builder-mp": "^1.5.0-beta.11",
34
- "@ray-js/builder-web": "^1.5.0-beta.11",
35
- "@ray-js/raypack": "^1.5.0-beta.11",
36
- "@ray-js/shared": "^1.5.0-beta.11",
37
- "@ray-js/types": "^1.5.0-beta.11",
30
+ "@ray-js/build-plugin-ray": "^1.5.0-beta.12",
31
+ "@ray-js/build-plugin-router": "^1.5.0-beta.12",
32
+ "@ray-js/builder-component": "^1.5.0-beta.12",
33
+ "@ray-js/builder-mp": "^1.5.0-beta.12",
34
+ "@ray-js/builder-web": "^1.5.0-beta.12",
35
+ "@ray-js/raypack": "^1.5.0-beta.12",
36
+ "@ray-js/shared": "^1.5.0-beta.12",
37
+ "@ray-js/types": "^1.5.0-beta.12",
38
38
  "colors": "1.4.0",
39
39
  "commander": "^8.3.0",
40
40
  "webpack-chain": "^6.5.1"
@@ -43,5 +43,5 @@
43
43
  "access": "public",
44
44
  "registry": "https://registry.npmjs.org"
45
45
  },
46
- "gitHead": "4b672baff874f366149a5a3007366a2eba7e5132"
46
+ "gitHead": "7fb9ae94b8896c81a6b6556099107cb2daab9c9b"
47
47
  }