@shijiu/jsview 1.9.914 → 1.9.915
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
|
@@ -172,8 +172,20 @@ function upgradeStagePixel(options) {
|
|
|
172
172
|
const msgPrefix = 'Stage ' + options.stagePixels;
|
|
173
173
|
console.info(msgPrefix + ': Upgrading pixels...');
|
|
174
174
|
|
|
175
|
-
|
|
176
|
-
|
|
175
|
+
let ret = replaceStageContent(options, options.sourcePathList, msgPrefix,
|
|
176
|
+
/([0-9}])px/g, '$1');
|
|
177
|
+
if (ret < 0) {
|
|
178
|
+
console.error(msgPrefix + ': Failed to upgrading pixels.');
|
|
179
|
+
process.exit(1);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
ret = replaceStageContent(options, options.sourcePathList, msgPrefix,
|
|
183
|
+
'+ `px`', '');
|
|
184
|
+
ret = replaceStageContent(options, options.sourcePathList, msgPrefix,
|
|
185
|
+
'+ \'px\'', '');
|
|
186
|
+
ret = replaceStageContent(options, options.sourcePathList, msgPrefix,
|
|
187
|
+
'+ \"px\"', '');
|
|
188
|
+
|
|
177
189
|
return ret;
|
|
178
190
|
}
|
|
179
191
|
|
|
@@ -367,7 +379,7 @@ function main(argv)
|
|
|
367
379
|
|
|
368
380
|
const requiredUsages = {
|
|
369
381
|
'--stages': `Upgrade stages, separate by comma(,). The value means the following:
|
|
370
|
-
1. Fix pixels. "[0-9}]px => [0-9}]"
|
|
382
|
+
1. Fix pixels. "[0-9}]px => [0-9}]", "delete (+ \`px\`),(+ 'px'),(+ "px")"
|
|
371
383
|
2. Fix animation. ":onAnimationEnd => @animationend"
|
|
372
384
|
3. Fix hash history. "createJsvHashHistory => jsvCreateHashHistory"
|
|
373
385
|
4. Fix audiotrack. "<audiotrack => <jsv-audiotrack"
|