@varlet/cli 2.9.6-alpha.1680971883189 → 2.10.0-alpha.1681657406626

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/README.md CHANGED
@@ -110,6 +110,10 @@ The resulting route is as follows:
110
110
  ```shell
111
111
  # playground-ignore
112
112
  varlet-cli dev
113
+ # force mode
114
+ varlet-cli dev -f
115
+ # draft mode
116
+ varlet-cli dev -d
113
117
  ```
114
118
 
115
119
  #### Build a documentation site
package/README.zh-CN.md CHANGED
@@ -110,6 +110,10 @@ varlet-cli gen
110
110
  ```shell
111
111
  # playground-ignore
112
112
  varlet-cli dev
113
+ # force mode
114
+ varlet-cli dev -f
115
+ # draft mode
116
+ varlet-cli dev -d
113
117
  ```
114
118
 
115
119
  #### 构建文档站点
@@ -16,13 +16,17 @@ function getRootConfig() {
16
16
  }
17
17
 
18
18
  module.exports = {
19
+ testEnvironment: 'jsdom',
20
+ testEnvironmentOptions: {
21
+ customExportConditions: ['node', 'node-addons'],
22
+ },
19
23
  moduleNameMapper: {
20
24
  '^@config$': '<rootDir>/.varlet/site.config.json',
21
25
  '\\.(css|less)$': JEST_STYLE_MOCK,
22
26
  '\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': JEST_MEDIA_MOCK,
23
27
  },
24
28
  transform: {
25
- '\\.(vue)$': 'vue-jest',
29
+ '\\.(vue)$': '@vue/vue3-jest',
26
30
  '\\.(js|jsx|ts|tsx)$': 'babel-jest',
27
31
  },
28
32
  collectCoverage: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@varlet/cli",
3
- "version": "2.9.6-alpha.1680971883189",
3
+ "version": "2.10.0-alpha.1681657406626",
4
4
  "type": "module",
5
5
  "description": "cli of varlet",
6
6
  "bin": {
@@ -45,7 +45,7 @@
45
45
  "@vue/babel-plugin-jsx": "1.1.1",
46
46
  "@vue/compiler-sfc": "3.2.25",
47
47
  "@vue/runtime-core": "3.2.25",
48
- "babel-jest": "26.6.3",
48
+ "@vue/vue3-jest": "^29.2.3",
49
49
  "chokidar": "^3.5.2",
50
50
  "commander": "^8.3.0",
51
51
  "conventional-changelog": "^3.1.25",
@@ -55,23 +55,24 @@
55
55
  "glob": "^7.2.0",
56
56
  "hash-sum": "^2.0.0",
57
57
  "inquirer": "^9.1.4",
58
- "jest": "^26.6.3",
59
58
  "less": "^3.12.2",
60
59
  "lodash-es": "^4.17.21",
60
+ "markdown-it": "^12.2.3",
61
61
  "nanospinner": "^1.1.0",
62
62
  "picocolors": "^1.0.0",
63
63
  "semver": "^7.3.5",
64
64
  "sharp": "0.31.1",
65
65
  "slash": "^3.0.0",
66
- "ts-jest": "^26.5.1",
66
+ "ts-jest": "^29.1.0",
67
67
  "typescript": "^4.4.4",
68
68
  "vite": "4.0.4",
69
69
  "vue": "3.2.25",
70
- "vue-jest": "^5.0.0-alpha.8",
71
70
  "webfont": "^9.0.0",
72
- "markdown-it": "^12.2.3",
73
- "@varlet/shared": "2.9.6-alpha.1680971883189",
74
- "@varlet/vite-plugins": "2.9.6-alpha.1680971883189"
71
+ "babel-jest": "^29.5.0",
72
+ "jest": "^29.5.0",
73
+ "jest-environment-jsdom": "^29.5.0",
74
+ "@varlet/shared": "2.10.0-alpha.1681657406626",
75
+ "@varlet/vite-plugins": "2.10.0-alpha.1681657406626"
75
76
  },
76
77
  "devDependencies": {
77
78
  "@types/babel__core": "^7.1.12",
@@ -81,12 +82,12 @@
81
82
  "@types/hash-sum": "^1.0.0",
82
83
  "@types/inquirer": "^9.0.2",
83
84
  "@types/lodash-es": "^4.17.5",
85
+ "@types/markdown-it": "^12.2.3",
84
86
  "@types/node": "^18.7.20",
85
87
  "@types/semver": "^7.3.9",
86
88
  "@types/sharp": "0.31.1",
87
- "@types/markdown-it": "^12.2.3",
88
- "@varlet/touch-emulator": "2.9.6-alpha.1680971883189",
89
- "@varlet/icons": "2.9.6-alpha.1680971883189"
89
+ "@varlet/icons": "2.10.0-alpha.1681657406626",
90
+ "@varlet/touch-emulator": "2.10.0-alpha.1681657406626"
90
91
  },
91
92
  "peerDependencies": {
92
93
  "@vue/runtime-core": "3.2.47",
@@ -96,8 +97,8 @@
96
97
  "lodash-es": "^4.17.21",
97
98
  "vue": "3.2.47",
98
99
  "vue-router": "4.1.6",
99
- "@varlet/icons": "2.9.6-alpha.1680971883189",
100
- "@varlet/touch-emulator": "2.9.6-alpha.1680971883189"
100
+ "@varlet/icons": "2.10.0-alpha.1681657406626",
101
+ "@varlet/touch-emulator": "2.10.0-alpha.1681657406626"
101
102
  },
102
103
  "scripts": {
103
104
  "dev": "tsc --watch",