uview-ultra-plus 1.10.4 → 1.11.0
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "uview-ultra-plus",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.11.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/"
|
|
6
6
|
},
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
"scripts": {
|
|
15
15
|
"release": "release-it",
|
|
16
16
|
"build": "node scripts/build.js",
|
|
17
|
+
"build:example": "npm run build && node scripts/build-example.js",
|
|
17
18
|
"rollup": "rollup -c rollup.config.mjs",
|
|
18
19
|
"test": "echo \"No test specified\""
|
|
19
20
|
},
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
const fs = require('fs');
|
|
2
|
+
const path = require('path');
|
|
3
|
+
const { execSync } = require('child_process');
|
|
4
|
+
|
|
5
|
+
const projectRoot = path.resolve(__dirname, '..');
|
|
6
|
+
const uviewSrc = path.join(projectRoot, 'src/uview-ultra');
|
|
7
|
+
|
|
8
|
+
const exampleTargets = [
|
|
9
|
+
path.join(projectRoot, 'examples/uniapp/src/uni_modules/uview-ultra'),
|
|
10
|
+
path.join(projectRoot, 'examples/uniapp-x/uni_modules/uview-ultra')
|
|
11
|
+
];
|
|
12
|
+
|
|
13
|
+
function syncExamples() {
|
|
14
|
+
console.log('[Build:Example] Syncing source to examples...');
|
|
15
|
+
|
|
16
|
+
exampleTargets.forEach(target => {
|
|
17
|
+
if (fs.existsSync(path.dirname(target))) {
|
|
18
|
+
console.log(`[Build:Example] Syncing to ${path.relative(projectRoot, target)}...`);
|
|
19
|
+
if (fs.existsSync(target)) {
|
|
20
|
+
fs.rmSync(target, { recursive: true, force: true });
|
|
21
|
+
}
|
|
22
|
+
// Use rsync for efficient copying and exclusion of node_modules
|
|
23
|
+
execSync(`rsync -aq --exclude='node_modules' "${uviewSrc}/" "${target}/"`);
|
|
24
|
+
} else {
|
|
25
|
+
console.warn(`[Build:Example] Target directory not found: ${path.dirname(target)}`);
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
console.log('[Build:Example] Sync complete!');
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
try {
|
|
33
|
+
syncExamples();
|
|
34
|
+
} catch (err) {
|
|
35
|
+
console.error('[Build:Example] Failed:', err.message);
|
|
36
|
+
process.exit(1);
|
|
37
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "uview-ultra",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.11.0",
|
|
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.0",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"clipboard": "^2.0.11",
|
|
12
12
|
"dayjs": "^1.11.3"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "uview-ultra-plus",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.11.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/"
|
|
6
6
|
},
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
"scripts": {
|
|
15
15
|
"release": "release-it",
|
|
16
16
|
"build": "node scripts/build.js",
|
|
17
|
+
"build:example": "npm run build && node scripts/build-example.js",
|
|
17
18
|
"rollup": "rollup -c rollup.config.mjs",
|
|
18
19
|
"test": "echo \"No test specified\""
|
|
19
20
|
},
|