aiot-toolkit 1.0.18-ets-beta.3 → 1.0.18-ide-beta.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/CHANGELOG.md +9 -0
- package/README.md +9 -0
- package/bin/index.js +13 -2
- package/gen-webpack-conf/index.js +0 -1
- package/lib/utils.js +1 -1
- package/package.json +9 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
#### [1.0.17] - 2022-04-26
|
|
4
|
+
|
|
5
|
+
- 支持 `scroll` 组件
|
|
6
|
+
- 支持 `maml` 组件(和`image`组件一致)
|
|
7
|
+
- 修复路径为变量时,未转换成绝对路径的问题
|
|
8
|
+
- `server` 命令新增 `--devtool` 配置参数
|
|
9
|
+
- 增加 `maskRepeat` 属性
|
|
10
|
+
- 增加 CSS 属性 `box-shadow`、`text-shadow` 和 `background-blend-mode`
|
|
11
|
+
|
|
3
12
|
#### [1.0.16] - 2022-12-02
|
|
4
13
|
|
|
5
14
|
- 支持打包应用服务 service 文件
|
package/README.md
CHANGED
|
@@ -41,6 +41,15 @@ npm run release
|
|
|
41
41
|
|
|
42
42
|
### 版本日志(详情请在 node_modules 中查看 CHANGELOG)
|
|
43
43
|
|
|
44
|
+
#### [1.0.17] - 2022-04-26
|
|
45
|
+
|
|
46
|
+
- 支持 `scroll` 组件
|
|
47
|
+
- 支持 `maml` 组件(和`image`组件一致)
|
|
48
|
+
- 修复路径为变量时,未转换成绝对路径的问题
|
|
49
|
+
- `server` 命令新增 `--devtool` 配置参数
|
|
50
|
+
- 增加 `maskRepeat` 属性
|
|
51
|
+
- 增加 CSS 属性 `box-shadow`、`text-shadow` 和 `background-blend-mode`
|
|
52
|
+
|
|
44
53
|
#### [1.0.16] - 2022-12-02
|
|
45
54
|
|
|
46
55
|
- 支持打包应用服务 service 文件
|
package/bin/index.js
CHANGED
|
@@ -118,6 +118,7 @@ program
|
|
|
118
118
|
.description('open server for project')
|
|
119
119
|
.option('--port <port>', 'specified port')
|
|
120
120
|
.option('--watch', 'recompile project while file changes')
|
|
121
|
+
.option('--devtool <value>', 'source map config')
|
|
121
122
|
.option('--clear-records', 'clear device records')
|
|
122
123
|
.option('--disable-adb', 'disable adb debug')
|
|
123
124
|
.option('--chrome-path <chrome-path>', 'support for a user specified chrome path')
|
|
@@ -130,6 +131,7 @@ program
|
|
|
130
131
|
.option('--enable-jsc', 'bundle to jsc if the projectType is vela')
|
|
131
132
|
.option('--enable-ops-wrap', 'inject performance log in code')
|
|
132
133
|
.option('--disable-build-rpk', 'disable build rpk')
|
|
134
|
+
.option('--disable-open-debugger', 'disable open debugger')
|
|
133
135
|
.option(
|
|
134
136
|
'--build-name-format <build-name-format>',
|
|
135
137
|
'custom output rpk file name',
|
|
@@ -138,14 +140,23 @@ program
|
|
|
138
140
|
.action(options => {
|
|
139
141
|
const { launchServer } = require('@aiot-toolkit/server')
|
|
140
142
|
const { compile } = require('../lib/commands/compile')
|
|
141
|
-
const {
|
|
143
|
+
const {
|
|
144
|
+
port,
|
|
145
|
+
watch,
|
|
146
|
+
clearRecords,
|
|
147
|
+
chromePath,
|
|
148
|
+
disableAdb,
|
|
149
|
+
openBrowser,
|
|
150
|
+
disableOpenDebugger
|
|
151
|
+
} = options
|
|
142
152
|
launchServer({
|
|
143
153
|
port,
|
|
144
154
|
watch,
|
|
145
155
|
clearRecords,
|
|
146
156
|
chromePath,
|
|
147
157
|
disableADB: disableAdb,
|
|
148
|
-
openBrowser
|
|
158
|
+
openBrowser,
|
|
159
|
+
disableOpenDebugger
|
|
149
160
|
})
|
|
150
161
|
if (options.watch) {
|
|
151
162
|
compile('native', 'dev', true, options)
|
|
@@ -42,7 +42,6 @@ const {
|
|
|
42
42
|
const pathMap = {
|
|
43
43
|
packager: require.resolve('@aiot-toolkit/packager/lib/webpack.post.js'),
|
|
44
44
|
xvm: require.resolve(`@aiot-toolkit/dsl-xvm/lib/webpack.post.js`),
|
|
45
|
-
xts: require.resolve(`@aiot-toolkit/dsl-xvm/lib/webpack.post.js`),
|
|
46
45
|
vue: require.resolve(`@aiot-toolkit/dsl-vue/lib/webpack.post.js`)
|
|
47
46
|
}
|
|
48
47
|
|
package/lib/utils.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const path=require("path"),{colorconsole:colorconsole}=require("@aiot-toolkit/shared-utils"),{ENTRY_TYPE:ENTRY_TYPE}=require("@aiot-toolkit/packager/lib/common/utils"),{resolveFile:resolveFile}=require("@aiot-toolkit/packager/lib/common/info"),{isEmptyObject:isEmptyObject}=require("@aiot-toolkit/compiler/lib/utils");exports.resolveEntries=function(e,o,t){if(!e.router)throw Error("No routing configured in manifest.json!");const r={},i=e.router.pages||{},s=[{confs:e.router.
|
|
1
|
+
"use strict";const path=require("path"),{colorconsole:colorconsole}=require("@aiot-toolkit/shared-utils"),{ENTRY_TYPE:ENTRY_TYPE}=require("@aiot-toolkit/packager/lib/common/utils"),{resolveFile:resolveFile}=require("@aiot-toolkit/packager/lib/common/info"),{isEmptyObject:isEmptyObject}=require("@aiot-toolkit/compiler/lib/utils");exports.resolveEntries=function(e,o,t){if(!e.router)throw Error("No routing configured in manifest.json!");const r={},i=e.router.pages||{},s=e.router.widgets||{},n=[{confs:e.router.floatingWindows||{},type:ENTRY_TYPE.FLOAT},{confs:s,type:ENTRY_TYPE.CARD}];n.unshift({confs:i,type:ENTRY_TYPE.PAGE});const c=resolveFile(path.join(o,"app"));c||(colorconsole.error("app file does not exist"),process.exit(1)),r.app="./"+path.relative(t,c)+`?uxType=${ENTRY_TYPE.APP}`,n.forEach((({confs:e,type:i})=>{Object.keys(e).forEach((s=>{const n=e[s],c=path.join(s,n.component),l=resolveFile(path.join(o,c));l||colorconsole.throw(`Compilation failed: please confirm that the file path ${c} configured in manifest.json exists`),/^\//.test(s)&&colorconsole.throw(`Compilation failed: please confirm that '${s}' configured by router.pages in manifest.json is the directory name`);let a=path.relative(t,l);a="./"+a+`?uxType=${i}`,a=a.replace(/\\/g,"/"),r[c]=a}))}));const l=e.workers;l&&l.entries&&l.entries instanceof Array&&l.entries.filter((e=>e.file)).forEach((e=>{r[e.file.replace(/\.js$/,"")]="./src/"+e.file}));const a=e.services;if(!isEmptyObject(a))for(const e in a)Object.hasOwnProperty.call(a,e)&&(r["services/"+e]="./src/"+a[e].path+`?uxType=${ENTRY_TYPE.APP}`);return r};
|
|
2
2
|
//# sourceMappingURL=utils.js.map
|
package/package.json
CHANGED
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aiot-toolkit",
|
|
3
|
-
"version": "1.0.18-
|
|
3
|
+
"version": "1.0.18-ide-beta.1",
|
|
4
4
|
"description": "A command line toolkit for developing Aiot Quick Apps.",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=8.0.0"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@aiot-toolkit/compiler": "1.0.18-
|
|
10
|
-
"@aiot-toolkit/debugger": "1.0.18-
|
|
11
|
-
"@aiot-toolkit/dsl-vue": "1.0.18-
|
|
12
|
-
"@aiot-toolkit/dsl-xvm": "1.0.18-
|
|
13
|
-
"@aiot-toolkit/packager": "1.0.18-
|
|
14
|
-
"@aiot-toolkit/server": "1.0.18-
|
|
15
|
-
"@aiot-toolkit/shared-utils": "1.0.18-
|
|
9
|
+
"@aiot-toolkit/compiler": "1.0.18-ide-beta.1",
|
|
10
|
+
"@aiot-toolkit/debugger": "1.0.18-ide-beta.1",
|
|
11
|
+
"@aiot-toolkit/dsl-vue": "1.0.18-ide-beta.1",
|
|
12
|
+
"@aiot-toolkit/dsl-xvm": "1.0.18-ide-beta.1",
|
|
13
|
+
"@aiot-toolkit/packager": "1.0.18-ide-beta.1",
|
|
14
|
+
"@aiot-toolkit/server": "1.0.18-ide-beta.1",
|
|
15
|
+
"@aiot-toolkit/shared-utils": "1.0.18-ide-beta.1",
|
|
16
16
|
"@babel/core": "^7.9.6",
|
|
17
17
|
"@babel/plugin-syntax-jsx": "^7.8.3",
|
|
18
18
|
"@babel/preset-env": "^7.9.6",
|
|
19
|
-
"@babel/preset-typescript": "^7.21.0",
|
|
20
19
|
"@babel/register": "^7.9.0",
|
|
21
20
|
"@babel/runtime": "^7.9.6",
|
|
22
21
|
"adb-commander": "^0.1.9",
|
|
@@ -43,7 +42,6 @@
|
|
|
43
42
|
],
|
|
44
43
|
"devDependencies": {
|
|
45
44
|
"@babel/cli": "^7.8.4",
|
|
46
|
-
"@babel/plugin-proposal-optional-chaining": "^7.9.0",
|
|
47
45
|
"chai": "^4.2.0",
|
|
48
46
|
"del": "^3.0.0",
|
|
49
47
|
"glob": "^7.1.6",
|
|
@@ -53,5 +51,5 @@
|
|
|
53
51
|
"supertest": "^3.3.0",
|
|
54
52
|
"webpack-cli": "^4.3.0"
|
|
55
53
|
},
|
|
56
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "7419d258ee3fada5e9ecd123dd37f3646d537590"
|
|
57
55
|
}
|