easy-soft-develop 2.1.250 → 2.1.256

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.1.250",
3
+ "version": "2.1.256",
4
4
  "description": "",
5
5
  "homepage": "https://github.com/kityandhero/easy-soft-develop#readme",
6
6
  "bugs": {
@@ -32,7 +32,6 @@
32
32
  "test:bin:check-all-package-version": "node ./bin/cli.js check-all-package-version",
33
33
  "test:bin:code": "node ./bin/cli.js code --dataPath ./develop/generatorCodeSource/code.json",
34
34
  "test:bin:copy-content": "node ./bin/cli.js copy-content --source ./develop/flags/commit.flag.json --target ./temp/testCopyContent/testCopyContent.json",
35
- "posttest:bin:copy-content": "node ./bin/cli.js rimraf --path ./temp/testCopyContent",
36
35
  "test:bin:create-assist-scripts": "node ./bin/cli.js create-assist-scripts",
37
36
  "test:bin:create-project-from-repository": "node ./bin/cli.js create-project-from-repository --repository kityandhero/mono-antd-management-fast-master-template --folder ./temp/create-project-from-repository-demo",
38
37
  "test:bin:create-repository-project": "node ./bin/cli.js create-repository-project",
@@ -51,62 +50,63 @@
51
50
  "test:inner:assignObject": "node ./test/assignObject.test.js",
52
51
  "test:inner:existPath": "node ./test/existPath.test.js",
53
52
  "test:inner:rimraf": "node ./test/rimraf.test.js",
53
+ "posttest:bin:copy-content": "node ./bin/cli.js rimraf --path ./temp/testCopyContent",
54
+ "prez:cz": "node ./bin/cli.js commit-refresh && npm run z:prettier:format:change && npm run z:tsc:build && git stage -A",
55
+ "prez:publish:build": "npm run z:install && pnpm changeset && pnpm changeset version && npm run z:cz",
56
+ "prez:publish:patch:npm": "npm run z:cz && npm version patch",
54
57
  "z:change:npm:registry:local": "nrm use local",
55
58
  "z:change:npm:registry:npm": "nrm use npm",
56
59
  "z:check:all-package-version": "npx npm-check-updates --configFilePath ./.ncurc.js --registry https://registry.npmjs.org",
57
- "prez:cz": "node ./bin/cli.js commit-refresh && npm run z:prettier:format:change && npm run z:tsc:build && git stage -A",
58
60
  "z:cz": "git-cz",
59
- "postz:cz": "git push",
60
61
  "z:husky": "npx husky",
61
62
  "z:install": "pnpm install",
62
- "postz:install": "pnpm changeset init && npm run z:husky && npm run z:post:extra:install",
63
63
  "z:lint:staged": "npx lint-staged",
64
64
  "z:lint:staged:quiet": "npx lint-staged --quiet",
65
65
  "z:post:extra:install": "echo do other postinstall work with here",
66
66
  "z:prettier:format:all": "npx prettier --write .",
67
67
  "z:prettier:format:change": "npx prettier --cache --write . && node ./bin/cli.js prompt --message \"format changed files complete\" --type success --blankLine",
68
- "prez:publish:build": "npm run z:install && pnpm changeset && pnpm changeset version && npm run z:cz",
69
68
  "z:publish:build": "npm run z:publish:patch:npm",
70
- "postz:publish:build": "git push",
71
- "prez:publish:patch:npm": "npm run z:cz && npm version patch",
72
69
  "z:publish:patch:npm": "npm publish --registry https://registry.npmjs.org/",
73
- "postz:publish:patch:npm": "npm run z:change:npm:registry:local && npm publish",
74
70
  "z:reinstall": "rimraf ./node_modules && npm run z:install",
75
71
  "z:tsc:build": "echo show tsc version and create declaration file && tsc -v && tsc -p ./tsconfig.types.json && echo declaration file generate complete",
76
- "z:update:all-package-version": "npx npm-check-updates --configFilePath ./.ncurc.js --registry https://registry.npmjs.org -u"
72
+ "z:update:all-package-version": "npx npm-check-updates --configFilePath ./.ncurc.js --registry https://registry.npmjs.org -u",
73
+ "postz:cz": "git push",
74
+ "postz:install": "pnpm changeset init && npm run z:husky && npm run z:post:extra:install",
75
+ "postz:publish:build": "git push",
76
+ "postz:publish:patch:npm": "npm run z:change:npm:registry:local && npm publish"
77
77
  },
78
78
  "dependencies": {
79
- "commander": "^13.0.0",
79
+ "commander": "^13.1.0",
80
80
  "cross-zip": "^4.0.1",
81
81
  "download": "^8.0.0",
82
82
  "download-git-repo": "^3.0.2",
83
83
  "enquirer": "^2.4.1",
84
- "fs-extra": "^11.2.0",
84
+ "fs-extra": "^11.3.0",
85
85
  "hpagent": "^1.2.0",
86
86
  "ping": "^0.4.4",
87
87
  "shelljs": "^0.8.5",
88
- "terminal-kit": "^3.1.1"
88
+ "terminal-kit": "^3.1.2"
89
89
  },
90
90
  "devDependencies": {
91
- "@changesets/cli": "^2.27.11",
92
- "@commitlint/cli": "^19.6.1",
93
- "@commitlint/config-conventional": "^19.6.0",
91
+ "@changesets/cli": "^2.27.12",
92
+ "@commitlint/cli": "^19.7.1",
93
+ "@commitlint/config-conventional": "^19.7.1",
94
94
  "@commitlint/config-pnpm-scopes": "^19.5.0",
95
95
  "commitizen": "^4.3.1",
96
96
  "conventional-changelog-conventionalcommits": "^8.0.0",
97
97
  "cz-git": "^1.11.0",
98
98
  "eslint": "^8.57.0",
99
- "eslint-config-prettier": "^9.1.0",
99
+ "eslint-config-prettier": "^10.0.1",
100
100
  "eslint-formatter-pretty": "^6.0.1",
101
101
  "eslint-import-resolver-typescript": "^3.7.0",
102
102
  "eslint-plugin-eslint-comments": "^3.2.0",
103
103
  "eslint-plugin-import": "^2.31.0",
104
- "eslint-plugin-prettier": "^5.2.1",
104
+ "eslint-plugin-prettier": "^5.2.3",
105
105
  "eslint-plugin-promise": "^7.2.1",
106
106
  "husky": "^9.1.7",
107
- "lint-staged": "^15.3.0",
108
- "npm-check-updates": "^17.1.13",
107
+ "lint-staged": "^15.4.3",
108
+ "npm-check-updates": "^17.1.14",
109
109
  "prettier": "^3.4.2",
110
- "prettier-plugin-packagejson": "^2.5.6"
110
+ "prettier-plugin-packagejson": "^2.5.8"
111
111
  }
112
112
  }
@@ -14,8 +14,8 @@ const {
14
14
  } = require('../tools/meta');
15
15
 
16
16
  const {
17
- getDevelopSubPathVersionNcuConfig,
18
- } = require('../config/develop.subPath.version.ncu');
17
+ getDevelopSubPathPublishConfig,
18
+ } = require('../config/develop.subPath.publish');
19
19
 
20
20
  function publishToNpm(packages, o, useOtp, otp) {
21
21
  if (checkStringIsEmpty(packages)) {
@@ -28,7 +28,7 @@ function publishToNpm(packages, o, useOtp, otp) {
28
28
 
29
29
  const { paths = [] } = {
30
30
  paths: [],
31
- ...getDevelopSubPathVersionNcuConfig(),
31
+ ...getDevelopSubPathPublishConfig(),
32
32
  };
33
33
 
34
34
  loopPackage(paths, ({ name, absolutePath }) => {
@@ -0,0 +1,59 @@
1
+ const {
2
+ writeJsonFileSync,
3
+ readJsonFileSync,
4
+ existFileSync,
5
+ mkdirSync,
6
+ isArray,
7
+ } = require('../tools/meta');
8
+
9
+ const developSubPathPublish = {
10
+ paths: [],
11
+ };
12
+
13
+ const developSubPathPublishConfigFilePath =
14
+ './develop/config/develop.subPath.publish.json';
15
+
16
+ function createDevelopSubPathPublishConfigFile(paths = []) {
17
+ mkdirSync(`./develop`);
18
+
19
+ mkdirSync(`./develop/config`);
20
+
21
+ let pathsAdjust = [
22
+ ...developSubPathPublish.paths,
23
+ ...(isArray(paths) ? paths : []),
24
+ ];
25
+
26
+ writeJsonFileSync(
27
+ developSubPathPublishConfigFilePath,
28
+ {
29
+ paths: pathsAdjust,
30
+ },
31
+ {
32
+ coverFile: false,
33
+ },
34
+ );
35
+ }
36
+
37
+ function getDevelopSubPathPublishConfig(createFileWhenNoExist = false) {
38
+ const developSubPathPublishConfigFileExist = existFileSync(
39
+ developSubPathPublishConfigFilePath,
40
+ );
41
+
42
+ if (!developSubPathPublishConfigFileExist) {
43
+ if (createFileWhenNoExist) {
44
+ createDevelopSubPathPublishConfigFile([]);
45
+ } else {
46
+ return developSubPathPublish;
47
+ }
48
+ }
49
+
50
+ return {
51
+ ...developSubPathPublish,
52
+ ...readJsonFileSync(developSubPathPublishConfigFilePath),
53
+ };
54
+ }
55
+
56
+ module.exports = {
57
+ createDevelopSubPathPublishConfigFile,
58
+ getDevelopSubPathPublishConfig,
59
+ };
@@ -19,6 +19,9 @@ const { prettierAllPackageJson } = require('./prettier.package.json');
19
19
  const {
20
20
  getDevelopSubPathVersionNcuConfig,
21
21
  } = require('../config/develop.subPath.version.ncu');
22
+ const {
23
+ getDevelopSubPathPublishConfig,
24
+ } = require('../config/develop.subPath.publish');
22
25
  const {
23
26
  getDevelopUpdateProjectFromRepositoryConfig,
24
27
  } = require('../config/develop.update.project.from.repository');
@@ -120,11 +123,14 @@ function adjustMainPackageJsonScript({ scripts }) {
120
123
  ...getDevelopSubPathVersionNcuConfig(true),
121
124
  };
122
125
 
126
+ const { paths: publishPackagePaths = [] } = {
127
+ paths: [],
128
+ ...getDevelopSubPathPublishConfig(true),
129
+ };
130
+
123
131
  getDevelopUpdateProjectFromRepositoryConfig(true);
124
132
 
125
133
  loopPackage(paths, ({ name, path }) => {
126
- publishPackageNameList.push(name);
127
-
128
134
  autoAdjustFileScript[`z:auto:adjust:file:${name}`] =
129
135
  `cd ${path}/${name} && npm run z:auto:adjust:file`;
130
136
 
@@ -135,6 +141,10 @@ function adjustMainPackageJsonScript({ scripts }) {
135
141
  testAllProjects.push(`npm run test:${name}`);
136
142
  });
137
143
 
144
+ loopPackage(publishPackagePaths, ({ name }) => {
145
+ publishPackageNameList.push(name);
146
+ });
147
+
138
148
  const developInitialEnvironmentConfig = getDevelopInitialEnvironmentConfig();
139
149
 
140
150
  const publishWithOtp =
@@ -0,0 +1,4 @@
1
+ export function createDevelopSubPathPublishConfigFile(paths?: any[]): void;
2
+ export function getDevelopSubPathPublishConfig(
3
+ createFileWhenNoExist?: boolean,
4
+ ): any;