meixifrontserve 0.2.4 → 0.2.6
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/package.json
CHANGED
|
@@ -31,11 +31,12 @@ class RollupBuildController {
|
|
|
31
31
|
for (let rollupBuildTargetKey in this.rollupBuildTarget) {
|
|
32
32
|
let paramsStr = `${this.rollupBuildTarget[`${rollupBuildTargetKey}`][`source`]}-lib/${rollupBuildTargetKey}.umd.js`
|
|
33
33
|
if (!str) {
|
|
34
|
-
str +=
|
|
34
|
+
str += `${this.checkPlatform()} / --pathTarget ${paramsStr}`
|
|
35
35
|
} else {
|
|
36
36
|
str += `-${paramsStr}`
|
|
37
37
|
}
|
|
38
38
|
this.commandStr = str;
|
|
39
|
+
console.log(str);
|
|
39
40
|
}
|
|
40
41
|
}
|
|
41
42
|
|
|
@@ -150,6 +151,18 @@ class RollupBuildController {
|
|
|
150
151
|
|
|
151
152
|
}
|
|
152
153
|
|
|
154
|
+
|
|
155
|
+
checkPlatform() {
|
|
156
|
+
switch (process.platform) {
|
|
157
|
+
case 'darwin':
|
|
158
|
+
return 'sudo meixirollupbuild -b'
|
|
159
|
+
case "win32":
|
|
160
|
+
return 'meixirollupbuild -b'
|
|
161
|
+
default:
|
|
162
|
+
return 'meixirollupbuild -b'
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
153
166
|
}
|
|
154
167
|
|
|
155
168
|
|