@ray-js/cli 1.4.0-alpha.0 → 1.4.0-alpha.1

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
@@ -15,6 +15,11 @@ program
15
15
  .option('-a --analyze', '开启 analyze 分析')
16
16
  .option('--type <type>', '构建类型 eg: app | component', 'app')
17
17
  .option('--transform-mode <mode>', '组件转换类型 eg: auto | pure', 'pure')
18
+ .option(
19
+ '--bundler <type>',
20
+ '默认使用 esbuild 极速构建(公测阶段), 如需降级设置为 webpack',
21
+ 'esbuild'
22
+ )
18
23
  .option('--debug [debug]', '开启运行时日志', (v) => {
19
24
  return JSON.parse(v === '1' || v === 'true')
20
25
  })
package/bin/ray-start.js CHANGED
@@ -15,6 +15,11 @@ program
15
15
  .option('-a --analyze', '开启 analyze 分析')
16
16
  .option('--type <type>', '构建类型 eg: app | component', 'app')
17
17
  .option('--transform-mode <mode>', '组件转换类型 eg: auto | pure', 'pure')
18
+ .option(
19
+ '--bundler <type>',
20
+ '默认使用 esbuild 极速构建(公测阶段), 如需降级设置为 webpack',
21
+ 'esbuild'
22
+ )
18
23
  .option('--debug [debug]', '开启运行时日志', (v) => {
19
24
  return JSON.parse(v === '1' || v === 'true')
20
25
  })
package/lib/build.js CHANGED
@@ -14,7 +14,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
14
14
  const run_builder_1 = require("./run-builder");
15
15
  function build(options) {
16
16
  const { type = 'app' } = options, restOptions = __rest(options, ["type"]);
17
- if (restOptions.target === 'thing') {
17
+ if (restOptions.target === 'thing' && restOptions.bundler === 'esbuild') {
18
18
  // 使用 raypack 进行构建
19
19
  const { build } = require('@ray-js/raypack');
20
20
  const opts = {
package/lib/start.js CHANGED
@@ -14,7 +14,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
14
14
  const run_builder_1 = require("./run-builder");
15
15
  function start(options) {
16
16
  const { type = 'app' } = options, restOptions = __rest(options, ["type"]);
17
- if (restOptions.target === 'thing') {
17
+ if (restOptions.target === 'thing' && restOptions.bundler === 'esbuild') {
18
18
  // 使用 raypack 进行构建
19
19
  const { build } = require('@ray-js/raypack');
20
20
  const opts = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/cli",
3
- "version": "1.4.0-alpha.0",
3
+ "version": "1.4.0-alpha.1",
4
4
  "description": "Ray cli",
5
5
  "bin": {
6
6
  "ray": "./bin/ray"
@@ -24,14 +24,14 @@
24
24
  "watch": "tsc -p ./tsconfig.build.json --watch"
25
25
  },
26
26
  "dependencies": {
27
- "@ray-js/build-plugin-ray": "^1.4.0-alpha.0",
28
- "@ray-js/build-plugin-router": "^1.4.0-alpha.0",
29
- "@ray-js/builder-component": "^1.4.0-alpha.0",
30
- "@ray-js/builder-mp": "^1.4.0-alpha.0",
31
- "@ray-js/builder-web": "^1.4.0-alpha.0",
32
- "@ray-js/raypack": "^1.4.0-alpha.0",
33
- "@ray-js/shared": "^1.4.0-alpha.0",
34
- "@ray-js/types": "^1.4.0-alpha.0",
27
+ "@ray-js/build-plugin-ray": "^1.4.0-alpha.1",
28
+ "@ray-js/build-plugin-router": "^1.4.0-alpha.1",
29
+ "@ray-js/builder-component": "^1.4.0-alpha.1",
30
+ "@ray-js/builder-mp": "^1.4.0-alpha.1",
31
+ "@ray-js/builder-web": "^1.4.0-alpha.1",
32
+ "@ray-js/raypack": "^1.4.0-alpha.1",
33
+ "@ray-js/shared": "^1.4.0-alpha.1",
34
+ "@ray-js/types": "^1.4.0-alpha.1",
35
35
  "colors": "1.4.0",
36
36
  "commander": "^8.2.0",
37
37
  "webpack-chain": "^6.5.1"
@@ -42,6 +42,6 @@
42
42
  "email": "tuyafe@tuya.com"
43
43
  }
44
44
  ],
45
- "gitHead": "92a9834964bb74c3a3b0553438b0f0c7a77ad8d0",
45
+ "gitHead": "4340240aafe16c03853241e2356134610e65443e",
46
46
  "repository": {}
47
47
  }