uview-ultra-plus 1.10.4 → 1.11.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/dist/package.json
CHANGED
package/dist/scripts/build.js
CHANGED
|
@@ -60,11 +60,34 @@ function patchImports() {
|
|
|
60
60
|
require('./patch-imports.js');
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
+
/**
|
|
64
|
+
* Synchronize source to examples for local testing
|
|
65
|
+
*/
|
|
66
|
+
function syncExamples() {
|
|
67
|
+
console.log('[Build] Syncing source to examples...');
|
|
68
|
+
const uviewSrc = path.join(projectRoot, 'src/uview-ultra');
|
|
69
|
+
const exampleTargets = [
|
|
70
|
+
path.join(projectRoot, 'examples/uniapp/src/uni_modules/uview-ultra'),
|
|
71
|
+
path.join(projectRoot, 'examples/uniapp-x/uni_modules/uview-ultra')
|
|
72
|
+
];
|
|
73
|
+
|
|
74
|
+
exampleTargets.forEach(target => {
|
|
75
|
+
if (fs.existsSync(path.dirname(target))) {
|
|
76
|
+
console.log(`[Build] Syncing to ${path.relative(projectRoot, target)}...`);
|
|
77
|
+
if (fs.existsSync(target)) {
|
|
78
|
+
fs.rmSync(target, { recursive: true, force: true });
|
|
79
|
+
}
|
|
80
|
+
execSync(`rsync -aq --exclude='node_modules' "${uviewSrc}/" "${target}/"`);
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
|
|
63
85
|
try {
|
|
64
86
|
clean();
|
|
65
87
|
copySource();
|
|
66
88
|
runRollup();
|
|
67
89
|
patchImports();
|
|
90
|
+
syncExamples();
|
|
68
91
|
console.log('[Build] Successfully completed!');
|
|
69
92
|
} catch (err) {
|
|
70
93
|
console.error('[Build] Failed:', err.message);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "uview-ultra",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.11.1",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "uview-ultra",
|
|
9
|
-
"version": "1.
|
|
9
|
+
"version": "1.11.1",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"clipboard": "^2.0.11",
|
|
12
12
|
"dayjs": "^1.11.3"
|