easy-soft-develop 2.0.164 → 2.0.166

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.164",
3
+ "version": "2.0.166",
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.2",
67
- "@commitlint/config-conventional": "^17.4.2",
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.2",
69
+ "@commitlint/cz-commitlint": "^17.4.4",
70
70
  "commitizen": "^4.3.0",
71
71
  "conventional-changelog-conventionalcommits": "^5.0.0",
72
- "eslint": "^8.33.0",
73
- "eslint-config-prettier": "^8.6.0",
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.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, {
@@ -37,7 +37,7 @@ const simpleTestFile = {
37
37
  folderPath: `${folderPath}/template`,
38
38
  fileName: 'simple.test.content.js',
39
39
  coverFile: true,
40
- fileContent: configFileContent,
40
+ fileContent: simpleTestFileContent,
41
41
  };
42
42
 
43
43
  module.exports = {
@@ -517,6 +517,7 @@ const packageFileContentList = [
517
517
  },
518
518
  {
519
519
  name: 'simple.test.js',
520
+ relativePath: 'test',
520
521
  content: jestSimpleTestContent,
521
522
  coverFile: true,
522
523
  },
@@ -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}`
@@ -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
  },
@@ -13,5 +13,5 @@ export namespace simpleTestFile {
13
13
  export { fileName_1 as fileName };
14
14
  const coverFile_1: boolean;
15
15
  export { coverFile_1 as coverFile };
16
- export { configFileContent as fileContent };
16
+ export { simpleTestFileContent as fileContent };
17
17
  }