jh5_app_build 1.0.25 → 1.0.26

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.
@@ -122,7 +122,11 @@ program
122
122
  value: "std"
123
123
  },
124
124
  {
125
- name: 'Std device lite(*.apk file,no web)',
125
+ name: 'Weds device lite(*.jap file)',
126
+ value: "weds,nobin,noweb"
127
+ },
128
+ {
129
+ name: 'Std device lite(*.apk file)',
126
130
  value: "std,noweb"
127
131
  }
128
132
  ]
@@ -133,6 +137,19 @@ program
133
137
  // 标准应用
134
138
  buildCfg.isStdApp = buildCfg.platform.includes("std");
135
139
 
140
+ // 不加入app
141
+ if (buildCfg.platform.includes("noapp")) {
142
+ cmd.noapp = true;
143
+ }
144
+ // 不加入bin
145
+ if (buildCfg.platform.includes("nobin")) {
146
+ cmd.nobin = true;
147
+ }
148
+ // 不加入web
149
+ if (buildCfg.platform.includes("noweb")) {
150
+ cmd.noweb = true;
151
+ }
152
+
136
153
  // 缺省输出文件
137
154
  if (cmd.outpath) {
138
155
  buildCfg.outpath = cmd.outpath;
package/lib/build_std.js CHANGED
@@ -231,7 +231,7 @@ module.exports = async (cmd, buildCfg) => {
231
231
  }
232
232
 
233
233
  // 需要web
234
- if (!buildCfg.platform.includes("noweb")) {
234
+ if (!cmd.noweb) {
235
235
  // 添加框架二进制
236
236
  {
237
237
  let pathSub = "jbuild_data/jext";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jh5_app_build",
3
- "version": "1.0.25",
3
+ "version": "1.0.26",
4
4
  "description": "jaskle jh5_app_build",
5
5
  "main": "./bin/jh5_app_build.js",
6
6
  "registry": true,