@ray-js/cli 1.4.0-alpha.0 → 1.4.0-alpha.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/bin/ray-build.js +5 -0
- package/bin/ray-start.js +5 -0
- package/lib/build.js +1 -1
- package/lib/start.js +1 -1
- package/package.json +10 -10
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.
|
|
3
|
+
"version": "1.4.0-alpha.2",
|
|
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.
|
|
28
|
-
"@ray-js/build-plugin-router": "^1.4.0-alpha.
|
|
29
|
-
"@ray-js/builder-component": "^1.4.0-alpha.
|
|
30
|
-
"@ray-js/builder-mp": "^1.4.0-alpha.
|
|
31
|
-
"@ray-js/builder-web": "^1.4.0-alpha.
|
|
32
|
-
"@ray-js/raypack": "^1.4.0-alpha.
|
|
33
|
-
"@ray-js/shared": "^1.4.0-alpha.
|
|
34
|
-
"@ray-js/types": "^1.4.0-alpha.
|
|
27
|
+
"@ray-js/build-plugin-ray": "^1.4.0-alpha.2",
|
|
28
|
+
"@ray-js/build-plugin-router": "^1.4.0-alpha.2",
|
|
29
|
+
"@ray-js/builder-component": "^1.4.0-alpha.2",
|
|
30
|
+
"@ray-js/builder-mp": "^1.4.0-alpha.2",
|
|
31
|
+
"@ray-js/builder-web": "^1.4.0-alpha.2",
|
|
32
|
+
"@ray-js/raypack": "^1.4.0-alpha.2",
|
|
33
|
+
"@ray-js/shared": "^1.4.0-alpha.2",
|
|
34
|
+
"@ray-js/types": "^1.4.0-alpha.2",
|
|
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": "
|
|
45
|
+
"gitHead": "15732640dc24f1ef6c461db601afc0fcbd3eb9ff",
|
|
46
46
|
"repository": {}
|
|
47
47
|
}
|