@shijiu/jsview 1.9.724 → 1.9.725
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/dom/jsview-dom/package.json +1 -1
- package/package.json +1 -1
- package/patches/node_modules/@vitejs/plugin-react/package.json +55 -0
- package/patches/node_modules/@vue/compiler-sfc/package.json +59 -0
- package/patches/node_modules/@vue/runtime-core/package.json +38 -0
- package/patches/node_modules/@vue/runtime-dom/package.json +42 -0
- package/patches/node_modules/postcss-js/package.json +42 -0
- package/patches/node_modules/vite/package.json +144 -0
- package/patches/node_modules/vue-router/package.json +114 -0
- package/tools/jsview-post-install-react.js +3 -3
- package/tools/jsview-post-install-vue.js +6 -6
- package/tools/jsview-post-install.js +21 -17
package/package.json
CHANGED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@vitejs/plugin-react",
|
|
3
|
+
"version": "2.2.0",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"author": "Evan You",
|
|
6
|
+
"contributors": [
|
|
7
|
+
"Alec Larson"
|
|
8
|
+
],
|
|
9
|
+
"files": [
|
|
10
|
+
"dist"
|
|
11
|
+
],
|
|
12
|
+
"main": "./dist/index.cjs",
|
|
13
|
+
"module": "./dist/index.mjs",
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"types": "./dist/index.d.ts",
|
|
18
|
+
"import": "./dist/index.mjs",
|
|
19
|
+
"require": "./dist/index.cjs"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"scripts": {
|
|
23
|
+
"dev": "unbuild --stub",
|
|
24
|
+
"build": "unbuild && pnpm run patch-cjs",
|
|
25
|
+
"patch-cjs": "tsx ../../scripts/patchCJS.ts",
|
|
26
|
+
"prepublishOnly": "npm run build"
|
|
27
|
+
},
|
|
28
|
+
"engines": {
|
|
29
|
+
"node": "^14.18.0 || >=16.0.0"
|
|
30
|
+
},
|
|
31
|
+
"repository": {
|
|
32
|
+
"type": "git",
|
|
33
|
+
"url": "git+https://github.com/vitejs/vite.git",
|
|
34
|
+
"directory": "packages/plugin-react"
|
|
35
|
+
},
|
|
36
|
+
"bugs": {
|
|
37
|
+
"url": "https://github.com/vitejs/vite/issues"
|
|
38
|
+
},
|
|
39
|
+
"homepage": "https://github.com/vitejs/vite/tree/main/packages/plugin-react#readme",
|
|
40
|
+
"dependencies": {
|
|
41
|
+
"@babel/core": "^7.19.6",
|
|
42
|
+
"@babel/plugin-transform-react-jsx": "^7.19.0",
|
|
43
|
+
"@babel/plugin-transform-react-jsx-development": "^7.18.6",
|
|
44
|
+
"@babel/plugin-transform-react-jsx-self": "^7.18.6",
|
|
45
|
+
"@babel/plugin-transform-react-jsx-source": "^7.19.6",
|
|
46
|
+
"magic-string": "^0.26.7",
|
|
47
|
+
"react-refresh": "^0.14.0"
|
|
48
|
+
},
|
|
49
|
+
"peerDependencies": {
|
|
50
|
+
"vite": "^3.0.0"
|
|
51
|
+
},
|
|
52
|
+
"devDependencies": {
|
|
53
|
+
"vite": "workspace:*"
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@vue/compiler-sfc",
|
|
3
|
+
"version": "3.2.37",
|
|
4
|
+
"description": "@vue/compiler-sfc",
|
|
5
|
+
"main": "dist/compiler-sfc.cjs.js",
|
|
6
|
+
"module": "dist/compiler-sfc.esm-browser.js",
|
|
7
|
+
"types": "dist/compiler-sfc.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
11
|
+
"buildOptions": {
|
|
12
|
+
"name": "VueCompilerSFC",
|
|
13
|
+
"formats": [
|
|
14
|
+
"cjs",
|
|
15
|
+
"esm-browser"
|
|
16
|
+
],
|
|
17
|
+
"prod": false,
|
|
18
|
+
"enableNonBrowserBranches": true
|
|
19
|
+
},
|
|
20
|
+
"repository": {
|
|
21
|
+
"type": "git",
|
|
22
|
+
"url": "git+https://github.com/vuejs/core.git",
|
|
23
|
+
"directory": "packages/compiler-sfc"
|
|
24
|
+
},
|
|
25
|
+
"keywords": [
|
|
26
|
+
"vue"
|
|
27
|
+
],
|
|
28
|
+
"author": "Evan You",
|
|
29
|
+
"license": "MIT",
|
|
30
|
+
"bugs": {
|
|
31
|
+
"url": "https://github.com/vuejs/core/issues"
|
|
32
|
+
},
|
|
33
|
+
"homepage": "https://github.com/vuejs/core/tree/main/packages/compiler-sfc#readme",
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"@babel/parser": "^7.16.4",
|
|
36
|
+
"@vue/compiler-core": "3.2.37",
|
|
37
|
+
"@vue/compiler-dom": "3.2.37",
|
|
38
|
+
"@vue/compiler-ssr": "3.2.37",
|
|
39
|
+
"@vue/reactivity-transform": "3.2.37",
|
|
40
|
+
"@vue/shared": "3.2.37",
|
|
41
|
+
"estree-walker": "^2.0.2",
|
|
42
|
+
"magic-string": "^0.25.7",
|
|
43
|
+
"source-map": "^0.6.1",
|
|
44
|
+
"postcss": "^8.1.10"
|
|
45
|
+
},
|
|
46
|
+
"devDependencies": {
|
|
47
|
+
"@types/estree": "^0.0.48",
|
|
48
|
+
"@babel/types": "^7.16.0",
|
|
49
|
+
"@types/lru-cache": "^5.1.0",
|
|
50
|
+
"pug": "^3.0.1",
|
|
51
|
+
"sass": "^1.26.9",
|
|
52
|
+
"@vue/consolidate": "^0.17.3",
|
|
53
|
+
"hash-sum": "^2.0.0",
|
|
54
|
+
"lru-cache": "^5.1.1",
|
|
55
|
+
"merge-source-map": "^1.1.0",
|
|
56
|
+
"postcss-modules": "^4.0.0",
|
|
57
|
+
"postcss-selector-parser": "^6.0.4"
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@vue/runtime-core",
|
|
3
|
+
"version": "3.2.37",
|
|
4
|
+
"description": "@vue/runtime-core",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"module": "dist/runtime-core.esm-bundler.js",
|
|
7
|
+
"types": "dist/runtime-core.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"index.js",
|
|
10
|
+
"dist"
|
|
11
|
+
],
|
|
12
|
+
"buildOptions": {
|
|
13
|
+
"name": "VueRuntimeCore",
|
|
14
|
+
"formats": [
|
|
15
|
+
"esm-bundler",
|
|
16
|
+
"cjs"
|
|
17
|
+
]
|
|
18
|
+
},
|
|
19
|
+
"sideEffects": false,
|
|
20
|
+
"repository": {
|
|
21
|
+
"type": "git",
|
|
22
|
+
"url": "git+https://github.com/vuejs/core.git",
|
|
23
|
+
"directory": "packages/runtime-core"
|
|
24
|
+
},
|
|
25
|
+
"keywords": [
|
|
26
|
+
"vue"
|
|
27
|
+
],
|
|
28
|
+
"author": "Evan You",
|
|
29
|
+
"license": "MIT",
|
|
30
|
+
"bugs": {
|
|
31
|
+
"url": "https://github.com/vuejs/core/issues"
|
|
32
|
+
},
|
|
33
|
+
"homepage": "https://github.com/vuejs/core/tree/main/packages/runtime-core#readme",
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"@vue/shared": "3.2.37",
|
|
36
|
+
"@vue/reactivity": "3.2.37"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@vue/runtime-dom",
|
|
3
|
+
"version": "3.2.37",
|
|
4
|
+
"description": "@vue/runtime-dom",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"module": "dist/runtime-dom.esm-bundler.js",
|
|
7
|
+
"types": "dist/runtime-dom.d.ts",
|
|
8
|
+
"unpkg": "dist/runtime-dom.global.js",
|
|
9
|
+
"files": [
|
|
10
|
+
"index.js",
|
|
11
|
+
"dist"
|
|
12
|
+
],
|
|
13
|
+
"sideEffects": false,
|
|
14
|
+
"buildOptions": {
|
|
15
|
+
"name": "VueRuntimeDOM",
|
|
16
|
+
"formats": [
|
|
17
|
+
"esm-bundler",
|
|
18
|
+
"esm-browser",
|
|
19
|
+
"cjs",
|
|
20
|
+
"global"
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
"repository": {
|
|
24
|
+
"type": "git",
|
|
25
|
+
"url": "git+https://github.com/vuejs/core.git",
|
|
26
|
+
"directory": "packages/runtime-dom"
|
|
27
|
+
},
|
|
28
|
+
"keywords": [
|
|
29
|
+
"vue"
|
|
30
|
+
],
|
|
31
|
+
"author": "Evan You",
|
|
32
|
+
"license": "MIT",
|
|
33
|
+
"bugs": {
|
|
34
|
+
"url": "https://github.com/vuejs/core/issues"
|
|
35
|
+
},
|
|
36
|
+
"homepage": "https://github.com/vuejs/core/tree/main/packages/runtime-dom#readme",
|
|
37
|
+
"dependencies": {
|
|
38
|
+
"@vue/shared": "3.2.37",
|
|
39
|
+
"@vue/runtime-core": "3.2.37",
|
|
40
|
+
"csstype": "^2.6.8"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "postcss-js",
|
|
3
|
+
"version": "4.0.0",
|
|
4
|
+
"description": "PostCSS for CSS-in-JS and styles in JS objects",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"postcss",
|
|
7
|
+
"postcss-runner",
|
|
8
|
+
"js",
|
|
9
|
+
"inline",
|
|
10
|
+
"react",
|
|
11
|
+
"css",
|
|
12
|
+
"cssinjs"
|
|
13
|
+
],
|
|
14
|
+
"author": "Andrey Sitnik <andrey@sitnik.ru>",
|
|
15
|
+
"license": "MIT",
|
|
16
|
+
"repository": "postcss/postcss-js",
|
|
17
|
+
"engines": {
|
|
18
|
+
"node": "^12 || ^14 || >= 16"
|
|
19
|
+
},
|
|
20
|
+
"exports": {
|
|
21
|
+
".": {
|
|
22
|
+
"require": "./index.js",
|
|
23
|
+
"import": "./index.mjs"
|
|
24
|
+
},
|
|
25
|
+
"./package.json": "./package.json",
|
|
26
|
+
"./async": "./async.js",
|
|
27
|
+
"./objectifier": "./objectifier.js",
|
|
28
|
+
"./parser": "./parser.js",
|
|
29
|
+
"./process-result": "./process-result.js",
|
|
30
|
+
"./sync": "./sync.js"
|
|
31
|
+
},
|
|
32
|
+
"funding": {
|
|
33
|
+
"type": "opencollective",
|
|
34
|
+
"url": "https://opencollective.com/postcss/"
|
|
35
|
+
},
|
|
36
|
+
"peerDependencies": {
|
|
37
|
+
"postcss": "^8.3.3"
|
|
38
|
+
},
|
|
39
|
+
"dependencies": {
|
|
40
|
+
"camelcase-css": "^2.0.1"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "vite",
|
|
3
|
+
"version": "3.0.9",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "Evan You",
|
|
7
|
+
"description": "Native-ESM powered web dev build tool",
|
|
8
|
+
"bin": {
|
|
9
|
+
"vite": "bin/vite.js"
|
|
10
|
+
},
|
|
11
|
+
"main": "./dist/node/index.js",
|
|
12
|
+
"module": "./dist/node/index.js",
|
|
13
|
+
"types": "./dist/node/index.d.ts",
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"types": "./dist/node/index.d.ts",
|
|
17
|
+
"import": "./dist/node/index.js",
|
|
18
|
+
"require": "./index.cjs"
|
|
19
|
+
},
|
|
20
|
+
"./client": {
|
|
21
|
+
"types": "./client.d.ts"
|
|
22
|
+
},
|
|
23
|
+
"./dist/client/*": "./dist/client/*",
|
|
24
|
+
"./package.json": "./package.json"
|
|
25
|
+
},
|
|
26
|
+
"files": [
|
|
27
|
+
"bin",
|
|
28
|
+
"dist",
|
|
29
|
+
"client.d.ts",
|
|
30
|
+
"index.cjs",
|
|
31
|
+
"src/client",
|
|
32
|
+
"types"
|
|
33
|
+
],
|
|
34
|
+
"engines": {
|
|
35
|
+
"node": "^14.18.0 || >=16.0.0"
|
|
36
|
+
},
|
|
37
|
+
"repository": {
|
|
38
|
+
"type": "git",
|
|
39
|
+
"url": "git+https://github.com/vitejs/vite.git",
|
|
40
|
+
"directory": "packages/vite"
|
|
41
|
+
},
|
|
42
|
+
"bugs": {
|
|
43
|
+
"url": "https://github.com/vitejs/vite/issues"
|
|
44
|
+
},
|
|
45
|
+
"homepage": "https://github.com/vitejs/vite/tree/main/#readme",
|
|
46
|
+
"scripts": {
|
|
47
|
+
"dev": "rimraf dist && pnpm run build-bundle -w",
|
|
48
|
+
"build": "rimraf dist && run-s build-bundle build-types",
|
|
49
|
+
"build-bundle": "rollup --config rollup.config.ts --configPlugin typescript",
|
|
50
|
+
"build-types": "run-s build-temp-types patch-types roll-types check-dist-types",
|
|
51
|
+
"build-temp-types": "tsc --emitDeclarationOnly --outDir temp/node -p src/node",
|
|
52
|
+
"patch-types": "tsx scripts/patchTypes.ts",
|
|
53
|
+
"roll-types": "api-extractor run && rimraf temp",
|
|
54
|
+
"check-dist-types": "tsc --project tsconfig.check.json",
|
|
55
|
+
"lint": "eslint --cache --ext .ts src/**",
|
|
56
|
+
"format": "prettier --write --cache --parser typescript \"src/**/*.ts\"",
|
|
57
|
+
"prepublishOnly": "npm run build"
|
|
58
|
+
},
|
|
59
|
+
"//": "READ CONTRIBUTING.md to understand what to put under deps vs. devDeps!",
|
|
60
|
+
"dependencies": {
|
|
61
|
+
"esbuild": "^0.14.47",
|
|
62
|
+
"postcss": "^8.4.16",
|
|
63
|
+
"resolve": "^1.22.1",
|
|
64
|
+
"rollup": ">=2.75.6 <2.77.0 || ~2.77.0"
|
|
65
|
+
},
|
|
66
|
+
"optionalDependencies": {
|
|
67
|
+
"fsevents": "~2.3.2"
|
|
68
|
+
},
|
|
69
|
+
"devDependencies": {
|
|
70
|
+
"@ampproject/remapping": "^2.2.0",
|
|
71
|
+
"@babel/parser": "^7.18.11",
|
|
72
|
+
"@babel/types": "^7.18.10",
|
|
73
|
+
"@jridgewell/trace-mapping": "^0.3.15",
|
|
74
|
+
"@rollup/plugin-alias": "^3.1.9",
|
|
75
|
+
"@rollup/plugin-commonjs": "^22.0.2",
|
|
76
|
+
"@rollup/plugin-dynamic-import-vars": "^1.4.4",
|
|
77
|
+
"@rollup/plugin-json": "^4.1.0",
|
|
78
|
+
"@rollup/plugin-node-resolve": "13.3.0",
|
|
79
|
+
"@rollup/plugin-typescript": "^8.3.4",
|
|
80
|
+
"@rollup/pluginutils": "^4.2.1",
|
|
81
|
+
"@vue/compiler-dom": "^3.2.37",
|
|
82
|
+
"acorn": "^8.8.0",
|
|
83
|
+
"cac": "^6.7.12",
|
|
84
|
+
"chokidar": "^3.5.3",
|
|
85
|
+
"connect": "^3.7.0",
|
|
86
|
+
"connect-history-api-fallback": "^2.0.0",
|
|
87
|
+
"convert-source-map": "^1.8.0",
|
|
88
|
+
"cors": "^2.8.5",
|
|
89
|
+
"cross-spawn": "^7.0.3",
|
|
90
|
+
"debug": "^4.3.4",
|
|
91
|
+
"dotenv": "^14.3.2",
|
|
92
|
+
"dotenv-expand": "^5.1.0",
|
|
93
|
+
"es-module-lexer": "^1.0.3",
|
|
94
|
+
"estree-walker": "^3.0.1",
|
|
95
|
+
"etag": "^1.8.1",
|
|
96
|
+
"fast-glob": "^3.2.11",
|
|
97
|
+
"http-proxy": "^1.18.1",
|
|
98
|
+
"json5": "^2.2.1",
|
|
99
|
+
"launch-editor-middleware": "^2.5.0",
|
|
100
|
+
"magic-string": "^0.26.2",
|
|
101
|
+
"micromatch": "^4.0.5",
|
|
102
|
+
"mlly": "^0.5.12",
|
|
103
|
+
"mrmime": "^1.0.1",
|
|
104
|
+
"okie": "^1.0.1",
|
|
105
|
+
"open": "^8.4.0",
|
|
106
|
+
"periscopic": "^3.0.4",
|
|
107
|
+
"picocolors": "^1.0.0",
|
|
108
|
+
"postcss-import": "^14.1.0",
|
|
109
|
+
"postcss-load-config": "^4.0.1",
|
|
110
|
+
"postcss-modules": "^4.3.1",
|
|
111
|
+
"resolve.exports": "^1.1.0",
|
|
112
|
+
"rollup-plugin-license": "^2.8.1",
|
|
113
|
+
"sirv": "^2.0.2",
|
|
114
|
+
"source-map-js": "^1.0.2",
|
|
115
|
+
"source-map-support": "^0.5.21",
|
|
116
|
+
"strip-ansi": "^7.0.1",
|
|
117
|
+
"strip-literal": "^0.4.0",
|
|
118
|
+
"tsconfck": "^2.0.1",
|
|
119
|
+
"tslib": "^2.4.0",
|
|
120
|
+
"types": "link:./types",
|
|
121
|
+
"ufo": "^0.8.5",
|
|
122
|
+
"ws": "^8.8.1"
|
|
123
|
+
},
|
|
124
|
+
"peerDependencies": {
|
|
125
|
+
"less": "*",
|
|
126
|
+
"sass": "*",
|
|
127
|
+
"stylus": "*",
|
|
128
|
+
"terser": "^5.4.0"
|
|
129
|
+
},
|
|
130
|
+
"peerDependenciesMeta": {
|
|
131
|
+
"sass": {
|
|
132
|
+
"optional": true
|
|
133
|
+
},
|
|
134
|
+
"stylus": {
|
|
135
|
+
"optional": true
|
|
136
|
+
},
|
|
137
|
+
"less": {
|
|
138
|
+
"optional": true
|
|
139
|
+
},
|
|
140
|
+
"terser": {
|
|
141
|
+
"optional": true
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "vue-router",
|
|
3
|
+
"version": "4.1.4",
|
|
4
|
+
"main": "index.js",
|
|
5
|
+
"unpkg": "dist/vue-router.global.js",
|
|
6
|
+
"jsdelivr": "dist/vue-router.global.js",
|
|
7
|
+
"module": "dist/vue-router.mjs",
|
|
8
|
+
"types": "dist/vue-router.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/vue-router.d.ts",
|
|
12
|
+
"node": {
|
|
13
|
+
"import": {
|
|
14
|
+
"production": "./dist/vue-router.node.mjs",
|
|
15
|
+
"development": "./dist/vue-router.node.mjs",
|
|
16
|
+
"default": "./dist/vue-router.node.mjs"
|
|
17
|
+
},
|
|
18
|
+
"require": {
|
|
19
|
+
"production": "./dist/vue-router.prod.cjs",
|
|
20
|
+
"development": "./dist/vue-router.cjs",
|
|
21
|
+
"default": "./index.js"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"import": "./dist/vue-router.mjs",
|
|
25
|
+
"require": "./index.js"
|
|
26
|
+
},
|
|
27
|
+
"./dist/*": "./dist/*",
|
|
28
|
+
"./vetur/*": "./vetur/*",
|
|
29
|
+
"./package.json": "./package.json"
|
|
30
|
+
},
|
|
31
|
+
"sideEffects": false,
|
|
32
|
+
"funding": "https://github.com/sponsors/posva",
|
|
33
|
+
"license": "MIT",
|
|
34
|
+
"repository": {
|
|
35
|
+
"type": "git",
|
|
36
|
+
"url": "git+https://github.com/vuejs/router.git"
|
|
37
|
+
},
|
|
38
|
+
"bugs": {
|
|
39
|
+
"url": "https://github.com/vuejs/router/issues"
|
|
40
|
+
},
|
|
41
|
+
"homepage": "https://github.com/vuejs/router#readme",
|
|
42
|
+
"files": [
|
|
43
|
+
"index.js",
|
|
44
|
+
"dist/*.{js,cjs,mjs}",
|
|
45
|
+
"dist/vue-router.d.ts",
|
|
46
|
+
"vetur/tags.json",
|
|
47
|
+
"vetur/attributes.json",
|
|
48
|
+
"README.md"
|
|
49
|
+
],
|
|
50
|
+
"peerDependencies": {
|
|
51
|
+
"vue": "^3.2.0"
|
|
52
|
+
},
|
|
53
|
+
"vetur": {
|
|
54
|
+
"tags": "vetur/tags.json",
|
|
55
|
+
"attributes": "vetur/attributes.json"
|
|
56
|
+
},
|
|
57
|
+
"dependencies": {
|
|
58
|
+
"@vue/devtools-api": "^6.1.4"
|
|
59
|
+
},
|
|
60
|
+
"devDependencies": {
|
|
61
|
+
"@microsoft/api-extractor": "^7.29.2",
|
|
62
|
+
"@rollup/plugin-alias": "^3.1.4",
|
|
63
|
+
"@rollup/plugin-commonjs": "^22.0.2",
|
|
64
|
+
"@rollup/plugin-node-resolve": "^13.0.5",
|
|
65
|
+
"@rollup/plugin-replace": "^4.0.0",
|
|
66
|
+
"@sucrase/jest-plugin": "^2.1.1",
|
|
67
|
+
"@types/jest": "^27.4.1",
|
|
68
|
+
"@types/jsdom": "^16.2.13",
|
|
69
|
+
"@types/nightwatch": "^2.3.3",
|
|
70
|
+
"@vitejs/plugin-vue": "^2.3.3",
|
|
71
|
+
"@vue/compiler-sfc": "^3.2.31",
|
|
72
|
+
"@vue/server-renderer": "^3.2.37",
|
|
73
|
+
"@vue/test-utils": "^2.0.2",
|
|
74
|
+
"browserstack-local": "^1.4.5",
|
|
75
|
+
"chromedriver": "^102.0.0",
|
|
76
|
+
"connect-history-api-fallback": "^1.6.0",
|
|
77
|
+
"conventional-changelog-cli": "^2.1.1",
|
|
78
|
+
"dotenv": "^16.0.0",
|
|
79
|
+
"faked-promise": "^2.2.2",
|
|
80
|
+
"geckodriver": "^3.0.2",
|
|
81
|
+
"jest": "^27.5.1",
|
|
82
|
+
"jest-mock-warn": "^1.1.0",
|
|
83
|
+
"nightwatch": "^2.3.0",
|
|
84
|
+
"nightwatch-helpers": "^1.2.0",
|
|
85
|
+
"rimraf": "^3.0.2",
|
|
86
|
+
"rollup": "^2.78.0",
|
|
87
|
+
"rollup-plugin-analyzer": "^4.0.0",
|
|
88
|
+
"rollup-plugin-terser": "^7.0.2",
|
|
89
|
+
"rollup-plugin-typescript2": "^0.32.1",
|
|
90
|
+
"typescript": "~4.7.4",
|
|
91
|
+
"vite": "^2.9.9",
|
|
92
|
+
"vue": "^3.2.37"
|
|
93
|
+
},
|
|
94
|
+
"scripts": {
|
|
95
|
+
"dev": "jest --watch",
|
|
96
|
+
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 1",
|
|
97
|
+
"build": "rimraf dist && rollup -c rollup.config.js",
|
|
98
|
+
"build:dts": "api-extractor run --local --verbose && tail -n +10 src/globalExtensions.ts >> dist/vue-router.d.ts",
|
|
99
|
+
"build:playground": "vue-tsc --noEmit && vite build --config playground/vite.config.js",
|
|
100
|
+
"build:e2e": "vue-tsc --noEmit && vite build --config e2e/vite.config.js",
|
|
101
|
+
"build:size": "pnpm run build && rollup -c size-checks/rollup.config.js",
|
|
102
|
+
"dev:e2e": "vite --config e2e/vite.config.js",
|
|
103
|
+
"test:types": "tsc --build tsconfig.json",
|
|
104
|
+
"test:dts": "tsc -p ./test-dts/tsconfig.json",
|
|
105
|
+
"test:unit": "jest --coverage",
|
|
106
|
+
"test": "pnpm run test:types && pnpm run test:unit && pnpm run build && pnpm run build:dts && pnpm run test:e2e",
|
|
107
|
+
"test:e2e": "pnpm run test:e2e:headless",
|
|
108
|
+
"test:e2e:headless": "node e2e/runner.js --env chrome-headless",
|
|
109
|
+
"test:e2e:native": "node e2e/runner.js --env chrome",
|
|
110
|
+
"test:e2e:ci": "node e2e/runner.js --env chrome-headless --retries 2",
|
|
111
|
+
"test:e2e:bs": "node e2e/runner.js --local -e android5 --tag browserstack",
|
|
112
|
+
"test:e2e:bs-test": "node e2e/runner.js --local --env browserstack.local_chrome --tag browserstack"
|
|
113
|
+
}
|
|
114
|
+
}
|
|
@@ -4,9 +4,9 @@ const { doPostInstall } = require('./jsview-post-install');
|
|
|
4
4
|
|
|
5
5
|
function main() {
|
|
6
6
|
const pkgNeedPatch = [
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
'@vitejs/plugin-react',
|
|
8
|
+
'postcss-js',
|
|
9
|
+
'vite',
|
|
10
10
|
];
|
|
11
11
|
doPostInstall('react', pkgNeedPatch, argv.skipCheckVersion);
|
|
12
12
|
}
|
|
@@ -4,12 +4,12 @@ const { doPostInstall } = require('./jsview-post-install');
|
|
|
4
4
|
|
|
5
5
|
function main(argv) {
|
|
6
6
|
const pkgNeedPatch = [
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
'@vue/compiler-sfc',
|
|
8
|
+
'@vue/runtime-core',
|
|
9
|
+
'@vue/runtime-dom',
|
|
10
|
+
'postcss-js',
|
|
11
|
+
'vite',
|
|
12
|
+
'vue-router',
|
|
13
13
|
];
|
|
14
14
|
doPostInstall('vue', pkgNeedPatch, argv.skipCheckVersion);
|
|
15
15
|
}
|
|
@@ -20,43 +20,47 @@ function checkNpmCommand() {
|
|
|
20
20
|
console.warn();
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
function
|
|
23
|
+
function getPackageObject(options, dir, name)
|
|
24
24
|
{
|
|
25
|
-
|
|
26
|
-
if (!fs.existsSync(
|
|
27
|
-
console.error('Error: Failed to install jsview patches, "' + path.relative(options.projectDir,
|
|
28
|
-
process.exit(1);
|
|
29
|
-
}
|
|
30
|
-
pkgPkgObj = require(pkgPkgFile);
|
|
31
|
-
if (pkgPkgObj.version != version) {
|
|
32
|
-
console.error('Error: ' + name + '@' + pkgPkgObj.version + ' is not supported, required version is ' + version);
|
|
25
|
+
const pkgFullFile = path.resolve(dir, name, 'package.json');
|
|
26
|
+
if (!fs.existsSync(pkgFullFile)) {
|
|
27
|
+
console.error('Error: Failed to install jsview patches, "' + path.relative(options.projectDir, pkgFullFile) + '" is not exists.');
|
|
33
28
|
process.exit(1);
|
|
34
29
|
}
|
|
30
|
+
const pkgObj = require(pkgFullFile);
|
|
31
|
+
|
|
32
|
+
return pkgObj;
|
|
35
33
|
}
|
|
36
34
|
|
|
37
35
|
function checkPatches(options, pkgNeedPatch, skipCheckVersion) {
|
|
38
36
|
console.info("Checking package:");
|
|
39
|
-
for (
|
|
37
|
+
for (pkgName of pkgNeedPatch) {
|
|
40
38
|
if (skipCheckVersion == false) {
|
|
41
|
-
|
|
42
|
-
|
|
39
|
+
const patchPkgObj = getPackageObject(options, path.resolve(options.patchesDir, 'node_modules'), pkgName);
|
|
40
|
+
console.info(" " + pkgName + ": " + patchPkgObj.version);
|
|
41
|
+
|
|
42
|
+
const modulePkgObj = getPackageObject(options, options.modulesDir, pkgName);
|
|
43
|
+
if (modulePkgObj.version != patchPkgObj.version) {
|
|
44
|
+
console.error('Error: ' + pkgName + '@' + modulePkgObj.version + ' is not supported, required version is ' + patchPkgObj.version);
|
|
45
|
+
process.exit(1);
|
|
46
|
+
}
|
|
43
47
|
} else {
|
|
44
|
-
console.info(" Skip ",
|
|
48
|
+
console.info(" Skip ", pkgName);
|
|
45
49
|
}
|
|
46
50
|
}
|
|
47
51
|
}
|
|
48
52
|
|
|
49
53
|
function installPatches(options, pkgNeedPatch) {
|
|
50
54
|
console.info('\nPatching JsView:');
|
|
51
|
-
for (
|
|
52
|
-
const patchSrc = path.resolve(options.patchesDir, 'node_modules',
|
|
53
|
-
const patchDest = path.resolve(options.modulesDir,
|
|
55
|
+
for (pkgName of pkgNeedPatch) {
|
|
56
|
+
const patchSrc = path.resolve(options.patchesDir, 'node_modules', pkgName);
|
|
57
|
+
const patchDest = path.resolve(options.modulesDir, pkgName);
|
|
54
58
|
|
|
55
59
|
cpSync(options.projectDir, patchSrc, patchDest);
|
|
56
60
|
}
|
|
57
61
|
|
|
58
62
|
console.info('\nCleanup node_modules cache... ');
|
|
59
|
-
const nodeModuleCacheDir = path.resolve(options.modulesDir, '
|
|
63
|
+
const nodeModuleCacheDir = path.resolve(options.modulesDir, '.cache');
|
|
60
64
|
rmSync(nodeModuleCacheDir);
|
|
61
65
|
}
|
|
62
66
|
|