uview-ultra-plus 1.10.3 → 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.10.3",
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
+ }
@@ -50,21 +50,6 @@ function copySource() {
50
50
  });
51
51
  }
52
52
 
53
- function copyRecursiveSync(src, dest) {
54
- if (src.includes('node_modules')) return;
55
- const exists = fs.existsSync(src);
56
- const stats = exists && fs.statSync(src);
57
- const isDirectory = exists && stats.isDirectory();
58
- if (isDirectory) {
59
- if (!fs.existsSync(dest)) fs.mkdirSync(dest);
60
- fs.readdirSync(src).forEach(childItemName => {
61
- copyRecursiveSync(path.join(src, childItemName), path.join(dest, childItemName));
62
- });
63
- } else {
64
- fs.copyFileSync(src, dest);
65
- }
66
- }
67
-
68
53
  function runRollup() {
69
54
  console.log('[Build] Running Rollup for vendors...');
70
55
  execSync('npm run rollup', { stdio: 'inherit', cwd: projectRoot });
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "uview-ultra",
3
- "version": "1.10.3",
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.10.3",
9
+ "version": "1.11.0",
10
10
  "dependencies": {
11
11
  "clipboard": "^2.0.11",
12
12
  "dayjs": "^1.11.3"
@@ -2,7 +2,7 @@
2
2
  "id": "uview-ultra",
3
3
  "name": "uview-ultra",
4
4
  "displayName": "uview-ultra全面兼容uniapp-x、uniapp鸿蒙组件库。",
5
- "version": "1.10.3",
5
+ "version": "1.11.0",
6
6
  "description": "uview-ultra全面兼容uni-app/uni-app-x/鸿蒙/nvue,全面的组件和便捷的工具会让您信手拈来,如鱼得水",
7
7
  "keywords": [
8
8
  "uview",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uview-ultra-plus",
3
- "version": "1.10.3",
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
  },