@tarojs/cli 4.1.4-beta.4 → 4.1.4-beta.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tarojs/cli",
3
- "version": "4.1.4-beta.4",
3
+ "version": "4.1.4-beta.6",
4
4
  "description": "cli tool for taro",
5
5
  "author": "O2Team",
6
6
  "license": "MIT",
@@ -42,21 +42,21 @@
42
42
  "ora": "^5.4.1",
43
43
  "semver": "^7.6.0",
44
44
  "validate-npm-package-name": "^5.0.0",
45
- "@tarojs/binding": "4.1.4-beta.4",
46
- "@tarojs/helper": "4.1.4-beta.4",
47
- "@tarojs/service": "4.1.4-beta.4",
48
- "@tarojs/shared": "4.1.4-beta.4"
45
+ "@tarojs/binding": "4.1.4-beta.6",
46
+ "@tarojs/service": "4.1.4-beta.6",
47
+ "@tarojs/helper": "4.1.4-beta.6",
48
+ "@tarojs/shared": "4.1.4-beta.6"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@babel/types": "^7.24.0",
52
52
  "@types/babel__traverse": "^7.20.6",
53
53
  "eslint-plugin-react": "^7.34.1",
54
54
  "eslint-plugin-react-hooks": "^4.4.0",
55
- "@tarojs/plugin-platform-h5": "4.1.4-beta.4",
56
- "@tarojs/plugin-platform-weapp": "4.1.4-beta.4",
57
- "@tarojs/taro": "4.1.4-beta.4",
58
- "babel-preset-taro": "4.1.4-beta.4",
59
- "@tarojs/webpack5-runner": "4.1.4-beta.4"
55
+ "@tarojs/plugin-platform-h5": "4.1.4-beta.6",
56
+ "@tarojs/plugin-platform-weapp": "4.1.4-beta.6",
57
+ "babel-preset-taro": "4.1.4-beta.6",
58
+ "@tarojs/taro": "4.1.4-beta.6",
59
+ "@tarojs/webpack5-runner": "4.1.4-beta.6"
60
60
  },
61
61
  "scripts": {
62
62
  "prod": "pnpm run build",
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env sh
2
+
3
+ # 运行 commitlint 检查 commit message
4
+ npx --no -- commitlint --edit ${1}
@@ -0,0 +1 @@
1
+ export default { extends: ["@commitlint/config-conventional"] };
@@ -10,6 +10,7 @@
10
10
  "framework": "{{ framework }}"
11
11
  },
12
12
  "scripts": {
13
+ "prepare": "husky",
13
14
  "new": "taro new",
14
15
  "build:weapp": "taro build --type weapp",
15
16
  "build:swan": "taro build --type swan",
@@ -76,6 +77,8 @@
76
77
  },{{#if (includes "Webpack5" s=compiler)}}
77
78
  "devDependencies": {
78
79
  "@babel/core": "^7.24.4",
80
+ "@commitlint/cli": "^19.8.1",
81
+ "@commitlint/config-conventional": "^19.8.1",
79
82
  "@tarojs/cli": "{{ version }}",
80
83
  "@babel/plugin-transform-class-properties": "7.25.9",
81
84
  "@types/webpack-env": "^1.13.6",{{#if (includes "React" "Preact" s=framework)}}
@@ -105,6 +108,9 @@
105
108
  "@babel/preset-react": "^7.24.1",
106
109
  "eslint-plugin-react": "^7.34.1",
107
110
  "eslint-plugin-react-hooks": "^4.4.0",{{/if}}
111
+ "husky": "^9.1.7",
112
+ "lint-staged": "^16.1.2",
113
+ "stylelint-config-standard": "^38.0.0",
108
114
  "stylelint": "^16.4.0"{{#if typescript }},
109
115
  "typescript": "^5.4.5",
110
116
  "tsconfig-paths-webpack-plugin": "^4.1.0"{{/if}},
@@ -114,12 +120,15 @@
114
120
  "devDependencies": {
115
121
  "@babel/core": "^7.24.4",
116
122
  "@babel/plugin-transform-class-properties": "7.25.9",
123
+ "@commitlint/cli": "^19.8.1",
124
+ "@commitlint/config-conventional": "^19.8.1",
117
125
  "@tarojs/cli": "{{ version }}",
118
126
  "@tarojs/vite-runner": "{{ version }}",
119
127
  "babel-preset-taro": "{{ version }}",
120
128
  "eslint-config-taro": "{{ version }}",
121
129
  "eslint": "^8.57.0",
122
130
  "stylelint": "^16.4.0",
131
+ "stylelint-config-standard": "^38.0.0"
123
132
  "terser": "^5.30.4",
124
133
  "vite": "^4.2.0",{{#if (includes "React" "Preact" s=framework)}}
125
134
  "@babel/preset-react": "^7.24.1",
@@ -133,6 +142,8 @@
133
142
  "react-refresh": "^0.14.0",{{/if}}{{#if (eq framework "Vue3") }}
134
143
  "@vitejs/plugin-vue": "^5.0.4",
135
144
  "@vitejs/plugin-vue-jsx": "^3.1.0",
145
+ "husky": "^9.1.7",
146
+ "lint-staged": "^16.1.2",
136
147
  "eslint-plugin-vue": "^9.17.0",{{/if}}{{#if (eq framework "Solid") }}
137
148
  "vite-plugin-solid": "2.10.0",{{/if}}{{#if (eq css "Sass") }}
138
149
  "sass": "^1.75.0",{{/if}}{{#if (eq css "Less") }}
@@ -0,0 +1,4 @@
1
+ /** @type {import('stylelint').Config} */
2
+ export default {
3
+ extends: "stylelint-config-standard",
4
+ };