@baic/yolk-cli 2.1.0-alpha.234 → 2.1.0-alpha.236
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 +1 -1
- package/es/_util.js +1 -105
- package/es/index.js +1 -11
- package/es/lintstagedrc.js +1 -0
- package/es/yolk.js +1 -479
- package/lib/_util.js +1 -132
- package/lib/index.js +1 -4
- package/lib/lintstagedrc.js +1 -0
- package/lib/yolk.js +1 -458
- package/package.json +8 -9
- package/templates/miniprogram/README.md.tpl +5 -5
- package/templates/miniprogram/global.d.ts +1 -1
- package/templates/miniprogram/package.json.tpl +6 -0
- package/templates/miniprogram/tsconfig.json +1 -1
- package/templates/umi-mobile/README.md.tpl +5 -5
- package/templates/umi-mobile/package.json.tpl +6 -0
- package/templates/umi-mobile-h5+app/README.md.tpl +5 -5
- package/templates/umi-mobile-h5+app/package.json.tpl +6 -0
- package/templates/umi-mobile-native/README.md.tpl +5 -5
- package/templates/umi-mobile-native/package.json.tpl +6 -0
- package/templates/umi-mobile-uni-app/README.md.tpl +5 -5
- package/templates/umi-mobile-uni-app/package.json.tpl +6 -0
- package/templates/umi-web/README.md.tpl +5 -5
- package/templates/umi-web/package.json.tpl +6 -0
- package/templates/umi-web-screen/README.md.tpl +5 -5
- package/templates/umi-web-screen/package.json.tpl +6 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@baic/yolk-cli",
|
|
3
|
-
"version": "2.1.0-alpha.
|
|
3
|
+
"version": "2.1.0-alpha.236",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/303394539/yolk.git"
|
|
@@ -25,13 +25,11 @@
|
|
|
25
25
|
"prebundle": "father prebundle"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@baic/biome-config-yolk": "^2.1.0-alpha.
|
|
29
|
-
"@baic/eslint-config-yolk": "^2.1.0-alpha.
|
|
30
|
-
"@baic/prettier-config-yolk": "^2.1.0-alpha.
|
|
31
|
-
"@baic/stylelint-config-yolk": "^2.1.0-alpha.
|
|
32
|
-
"@
|
|
33
|
-
"@biomejs/biome": "1.8.x",
|
|
34
|
-
"@democrance/imagemin-lint-staged": "2.x",
|
|
28
|
+
"@baic/biome-config-yolk": "^2.1.0-alpha.236",
|
|
29
|
+
"@baic/eslint-config-yolk": "^2.1.0-alpha.236",
|
|
30
|
+
"@baic/prettier-config-yolk": "^2.1.0-alpha.236",
|
|
31
|
+
"@baic/stylelint-config-yolk": "^2.1.0-alpha.236",
|
|
32
|
+
"@democrance/imagemin-lint-staged": "3.0.x",
|
|
35
33
|
"@types/inquirer": "8.x",
|
|
36
34
|
"@types/lint-staged": "13.3.x",
|
|
37
35
|
"@types/lodash": "4.x",
|
|
@@ -48,6 +46,7 @@
|
|
|
48
46
|
"postcss-less": "6.0.x",
|
|
49
47
|
"postcss-scss": "4.0.x",
|
|
50
48
|
"prettier": "2.x",
|
|
49
|
+
"rimraf": "5.0.x",
|
|
51
50
|
"stylelint": "14.x",
|
|
52
51
|
"tsx": "3.x"
|
|
53
52
|
},
|
|
@@ -63,5 +62,5 @@
|
|
|
63
62
|
"publishConfig": {
|
|
64
63
|
"access": "public"
|
|
65
64
|
},
|
|
66
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "15b391f63f392f7e0ecdb6c96d8d14d51cee0058"
|
|
67
66
|
}
|
|
@@ -4,20 +4,20 @@
|
|
|
4
4
|
|
|
5
5
|
Install dependencies,
|
|
6
6
|
|
|
7
|
-
{{ #
|
|
7
|
+
{{ #packageManager }}
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
$ {{
|
|
10
|
+
$ {{ packageManager }} install
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
{{ /
|
|
14
|
-
{{ ^
|
|
13
|
+
{{ /packageManager }}
|
|
14
|
+
{{ ^packageManager }}
|
|
15
15
|
|
|
16
16
|
```bash
|
|
17
17
|
$ pnpm install
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
{{ /
|
|
20
|
+
{{ /packageManager }}
|
|
21
21
|
|
|
22
22
|
Start the dev server,
|
|
23
23
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import "@baic/yolk-taro/typings";
|
|
1
|
+
import "@baic/yolk-taro/project.typings";
|
|
@@ -18,6 +18,12 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@baic/preset-yolk-taro-miniprogram": "~{{ yolkVersion }}"
|
|
20
20
|
},
|
|
21
|
+
"resolutions": {
|
|
22
|
+
"@types/react": "18.x",
|
|
23
|
+
"@types/react-dom": "18.x",
|
|
24
|
+
"react": "18.x",
|
|
25
|
+
"react-dom": "18.x"
|
|
26
|
+
},
|
|
21
27
|
"pnpm": {
|
|
22
28
|
"peerDependencyRules": {
|
|
23
29
|
"ignoreMissing": "*"
|
|
@@ -4,20 +4,20 @@
|
|
|
4
4
|
|
|
5
5
|
Install dependencies,
|
|
6
6
|
|
|
7
|
-
{{ #
|
|
7
|
+
{{ #packageManager }}
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
$ {{
|
|
10
|
+
$ {{ packageManager }} install
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
{{ /
|
|
14
|
-
{{ ^
|
|
13
|
+
{{ /packageManager }}
|
|
14
|
+
{{ ^packageManager }}
|
|
15
15
|
|
|
16
16
|
```bash
|
|
17
17
|
$ pnpm install
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
{{ /
|
|
20
|
+
{{ /packageManager }}
|
|
21
21
|
|
|
22
22
|
Start the dev server,
|
|
23
23
|
|
|
@@ -8,6 +8,12 @@
|
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"@baic/preset-yolk-umi-mobile": "~{{ yolkVersion }}"
|
|
10
10
|
},
|
|
11
|
+
"resolutions": {
|
|
12
|
+
"@types/react": "18.x",
|
|
13
|
+
"@types/react-dom": "18.x",
|
|
14
|
+
"react": "18.x",
|
|
15
|
+
"react-dom": "18.x"
|
|
16
|
+
},
|
|
11
17
|
"pnpm": {
|
|
12
18
|
"peerDependencyRules": {
|
|
13
19
|
"ignoreMissing": "*"
|
|
@@ -4,20 +4,20 @@
|
|
|
4
4
|
|
|
5
5
|
Install dependencies,
|
|
6
6
|
|
|
7
|
-
{{ #
|
|
7
|
+
{{ #packageManager }}
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
$ {{
|
|
10
|
+
$ {{ packageManager }} install
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
{{ /
|
|
14
|
-
{{ ^
|
|
13
|
+
{{ /packageManager }}
|
|
14
|
+
{{ ^packageManager }}
|
|
15
15
|
|
|
16
16
|
```bash
|
|
17
17
|
$ pnpm install
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
{{ /
|
|
20
|
+
{{ /packageManager }}
|
|
21
21
|
|
|
22
22
|
Start the dev server,
|
|
23
23
|
|
|
@@ -8,6 +8,12 @@
|
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"@baic/preset-yolk-umi-mobile": "~{{ yolkVersion }}"
|
|
10
10
|
},
|
|
11
|
+
"resolutions": {
|
|
12
|
+
"@types/react": "18.x",
|
|
13
|
+
"@types/react-dom": "18.x",
|
|
14
|
+
"react": "18.x",
|
|
15
|
+
"react-dom": "18.x"
|
|
16
|
+
},
|
|
11
17
|
"pnpm": {
|
|
12
18
|
"peerDependencyRules": {
|
|
13
19
|
"ignoreMissing": "*"
|
|
@@ -4,20 +4,20 @@
|
|
|
4
4
|
|
|
5
5
|
Install dependencies,
|
|
6
6
|
|
|
7
|
-
{{ #
|
|
7
|
+
{{ #packageManager }}
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
$ {{
|
|
10
|
+
$ {{ packageManager }} install
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
{{ /
|
|
14
|
-
{{ ^
|
|
13
|
+
{{ /packageManager }}
|
|
14
|
+
{{ ^packageManager }}
|
|
15
15
|
|
|
16
16
|
```bash
|
|
17
17
|
$ pnpm install
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
{{ /
|
|
20
|
+
{{ /packageManager }}
|
|
21
21
|
|
|
22
22
|
Start the dev server,
|
|
23
23
|
|
|
@@ -8,6 +8,12 @@
|
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"@baic/preset-yolk-umi-mobile": "~{{ yolkVersion }}"
|
|
10
10
|
},
|
|
11
|
+
"resolutions": {
|
|
12
|
+
"@types/react": "18.x",
|
|
13
|
+
"@types/react-dom": "18.x",
|
|
14
|
+
"react": "18.x",
|
|
15
|
+
"react-dom": "18.x"
|
|
16
|
+
},
|
|
11
17
|
"pnpm": {
|
|
12
18
|
"peerDependencyRules": {
|
|
13
19
|
"ignoreMissing": "*"
|
|
@@ -4,20 +4,20 @@
|
|
|
4
4
|
|
|
5
5
|
Install dependencies,
|
|
6
6
|
|
|
7
|
-
{{ #
|
|
7
|
+
{{ #packageManager }}
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
$ {{
|
|
10
|
+
$ {{ packageManager }} install
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
{{ /
|
|
14
|
-
{{ ^
|
|
13
|
+
{{ /packageManager }}
|
|
14
|
+
{{ ^packageManager }}
|
|
15
15
|
|
|
16
16
|
```bash
|
|
17
17
|
$ pnpm install
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
{{ /
|
|
20
|
+
{{ /packageManager }}
|
|
21
21
|
|
|
22
22
|
Start the dev server,
|
|
23
23
|
|
|
@@ -8,6 +8,12 @@
|
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"@baic/preset-yolk-umi-mobile": "~{{ yolkVersion }}"
|
|
10
10
|
},
|
|
11
|
+
"resolutions": {
|
|
12
|
+
"@types/react": "18.x",
|
|
13
|
+
"@types/react-dom": "18.x",
|
|
14
|
+
"react": "18.x",
|
|
15
|
+
"react-dom": "18.x"
|
|
16
|
+
},
|
|
11
17
|
"pnpm": {
|
|
12
18
|
"peerDependencyRules": {
|
|
13
19
|
"ignoreMissing": "*"
|
|
@@ -4,20 +4,20 @@
|
|
|
4
4
|
|
|
5
5
|
Install dependencies,
|
|
6
6
|
|
|
7
|
-
{{ #
|
|
7
|
+
{{ #packageManager }}
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
$ {{
|
|
10
|
+
$ {{ packageManager }} install
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
{{ /
|
|
14
|
-
{{ ^
|
|
13
|
+
{{ /packageManager }}
|
|
14
|
+
{{ ^packageManager }}
|
|
15
15
|
|
|
16
16
|
```bash
|
|
17
17
|
$ pnpm install
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
{{ /
|
|
20
|
+
{{ /packageManager }}
|
|
21
21
|
|
|
22
22
|
Start the dev server,
|
|
23
23
|
|
|
@@ -8,6 +8,12 @@
|
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"@baic/preset-yolk-umi-web": "~{{ yolkVersion }}"
|
|
10
10
|
},
|
|
11
|
+
"resolutions": {
|
|
12
|
+
"@types/react": "18.x",
|
|
13
|
+
"@types/react-dom": "18.x",
|
|
14
|
+
"react": "18.x",
|
|
15
|
+
"react-dom": "18.x"
|
|
16
|
+
},
|
|
11
17
|
"pnpm": {
|
|
12
18
|
"peerDependencyRules": {
|
|
13
19
|
"ignoreMissing": "*"
|
|
@@ -4,20 +4,20 @@
|
|
|
4
4
|
|
|
5
5
|
Install dependencies,
|
|
6
6
|
|
|
7
|
-
{{ #
|
|
7
|
+
{{ #packageManager }}
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
$ {{
|
|
10
|
+
$ {{ packageManager }} install
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
{{ /
|
|
14
|
-
{{ ^
|
|
13
|
+
{{ /packageManager }}
|
|
14
|
+
{{ ^packageManager }}
|
|
15
15
|
|
|
16
16
|
```bash
|
|
17
17
|
$ pnpm install
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
{{ /
|
|
20
|
+
{{ /packageManager }}
|
|
21
21
|
|
|
22
22
|
Start the dev server,
|
|
23
23
|
|
|
@@ -9,6 +9,12 @@
|
|
|
9
9
|
"@ant-design/charts": "1.x",
|
|
10
10
|
"@baic/preset-yolk-umi-web": "~{{ yolkVersion }}"
|
|
11
11
|
},
|
|
12
|
+
"resolutions": {
|
|
13
|
+
"@types/react": "18.x",
|
|
14
|
+
"@types/react-dom": "18.x",
|
|
15
|
+
"react": "18.x",
|
|
16
|
+
"react-dom": "18.x"
|
|
17
|
+
},
|
|
12
18
|
"pnpm": {
|
|
13
19
|
"peerDependencyRules": {
|
|
14
20
|
"ignoreMissing": "*"
|