easy-soft-develop 2.0.165 → 2.0.167
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": "easy-soft-develop",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.167",
|
|
4
4
|
"description": "",
|
|
5
5
|
"homepage": "https://github.com/kityandhero/easy-soft-develop#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -63,14 +63,14 @@
|
|
|
63
63
|
"terminal-kit": "^3.0.0"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
|
-
"@commitlint/cli": "^17.4.
|
|
67
|
-
"@commitlint/config-conventional": "^17.4.
|
|
66
|
+
"@commitlint/cli": "^17.4.4",
|
|
67
|
+
"@commitlint/config-conventional": "^17.4.4",
|
|
68
68
|
"@commitlint/config-lerna-scopes": "^17.4.2",
|
|
69
|
-
"@commitlint/cz-commitlint": "^17.4.
|
|
69
|
+
"@commitlint/cz-commitlint": "^17.4.4",
|
|
70
70
|
"commitizen": "^4.3.0",
|
|
71
71
|
"conventional-changelog-conventionalcommits": "^5.0.0",
|
|
72
|
-
"eslint": "^8.
|
|
73
|
-
"eslint-config-prettier": "^8.
|
|
72
|
+
"eslint": "^8.35.0",
|
|
73
|
+
"eslint-config-prettier": "^8.7.0",
|
|
74
74
|
"eslint-formatter-pretty": "^4.1.0",
|
|
75
75
|
"eslint-import-resolver-typescript": "^3.5.3",
|
|
76
76
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"eslint-plugin-prettier": "^4.2.1",
|
|
79
79
|
"eslint-plugin-promise": "^6.1.1",
|
|
80
80
|
"husky": "^8.0.3",
|
|
81
|
-
"lint-staged": "^13.1.
|
|
81
|
+
"lint-staged": "^13.1.2",
|
|
82
82
|
"prettier": "^2.8.4",
|
|
83
83
|
"prettier-plugin-packagejson": "^2"
|
|
84
84
|
}
|
|
@@ -113,6 +113,7 @@ function createProjectFolder(name) {
|
|
|
113
113
|
mkdirSync(`./packages/`);
|
|
114
114
|
mkdirSync(`./packages/${name}`);
|
|
115
115
|
mkdirSync(`./packages/${name}/src`);
|
|
116
|
+
mkdirSync(`./packages/${name}/test`);
|
|
116
117
|
|
|
117
118
|
promptSuccess(`step *: create packages folder success`);
|
|
118
119
|
}
|
|
@@ -187,12 +188,21 @@ function createVscode() {
|
|
|
187
188
|
'precommit',
|
|
188
189
|
'precz',
|
|
189
190
|
'prez',
|
|
191
|
+
'lintstagedrc',
|
|
190
192
|
],
|
|
193
|
+
'eslint.packageManager': 'pnpm',
|
|
191
194
|
'git.ignoreLimitWarning': true,
|
|
192
195
|
'editor.codeActionsOnSave': {
|
|
193
196
|
'source.fixAll.eslint': true,
|
|
194
197
|
'source.fixAll.stylelint': true,
|
|
195
198
|
},
|
|
199
|
+
'search.exclude': {
|
|
200
|
+
'**/node_modules': true,
|
|
201
|
+
'**/bower_components': true,
|
|
202
|
+
'**/*.code-search': true,
|
|
203
|
+
'**/dist': true,
|
|
204
|
+
'**/es': true,
|
|
205
|
+
},
|
|
196
206
|
};
|
|
197
207
|
|
|
198
208
|
writeJsonFileSync(`./.vscode/settings.json`, settingJson, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const { checkInCollection, checkStringIsEmpty } = require('./meta');
|
|
1
|
+
const { checkInCollection, checkStringIsEmpty, mkdirSync } = require('./meta');
|
|
2
2
|
const {
|
|
3
3
|
promptSuccess,
|
|
4
4
|
writeFileSync,
|
|
@@ -46,6 +46,10 @@ function createPackageFile(fileWithContentCollection) {
|
|
|
46
46
|
fileWithContentCollection.forEach((o) => {
|
|
47
47
|
const { name, relativePath = '', content, coverFile } = o;
|
|
48
48
|
|
|
49
|
+
if (!checkStringIsEmpty(relativePath)) {
|
|
50
|
+
mkdirSync(`${itemPath}/${relativePath}`);
|
|
51
|
+
}
|
|
52
|
+
|
|
49
53
|
writeFileSync(
|
|
50
54
|
`${itemPath}${
|
|
51
55
|
checkStringIsEmpty(relativePath) ? '' : `/${relativePath}`
|
|
@@ -99,7 +103,7 @@ function adjustMainPackageJsonScript({ scripts }) {
|
|
|
99
103
|
|
|
100
104
|
testScript[`test:${name}`] = `cd packages/${name} && npm run test`;
|
|
101
105
|
|
|
102
|
-
testAllProjects.push(`test:${name}`);
|
|
106
|
+
testAllProjects.push(`npm run test:${name}`);
|
|
103
107
|
});
|
|
104
108
|
|
|
105
109
|
packageJson.scripts = assignObject(
|
|
@@ -112,6 +116,7 @@ function adjustMainPackageJsonScript({ scripts }) {
|
|
|
112
116
|
globalScript,
|
|
113
117
|
originalScript || {},
|
|
114
118
|
scripts,
|
|
119
|
+
testScript,
|
|
115
120
|
{
|
|
116
121
|
'z:test': testAllProjects.join(' && '),
|
|
117
122
|
},
|