easy-soft-develop 2.1.254 → 2.1.258
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.
|
|
3
|
+
"version": "2.1.258",
|
|
4
4
|
"description": "",
|
|
5
5
|
"homepage": "https://github.com/kityandhero/easy-soft-develop#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -32,6 +32,7 @@
|
|
|
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",
|
|
35
36
|
"test:bin:create-assist-scripts": "node ./bin/cli.js create-assist-scripts",
|
|
36
37
|
"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",
|
|
37
38
|
"test:bin:create-repository-project": "node ./bin/cli.js create-repository-project",
|
|
@@ -50,30 +51,29 @@
|
|
|
50
51
|
"test:inner:assignObject": "node ./test/assignObject.test.js",
|
|
51
52
|
"test:inner:existPath": "node ./test/existPath.test.js",
|
|
52
53
|
"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",
|
|
57
54
|
"z:change:npm:registry:local": "nrm use local",
|
|
58
55
|
"z:change:npm:registry:npm": "nrm use npm",
|
|
59
56
|
"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",
|
|
60
58
|
"z:cz": "git-cz",
|
|
59
|
+
"postz:cz": "git push",
|
|
61
60
|
"z:husky": "npx husky",
|
|
62
61
|
"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",
|
|
68
69
|
"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",
|
|
69
72
|
"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",
|
|
70
74
|
"z:reinstall": "rimraf ./node_modules && npm run z:install",
|
|
71
75
|
"z:tsc:build": "echo show tsc version and create declaration file && tsc -v && tsc -p ./tsconfig.types.json && echo declaration file generate complete",
|
|
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"
|
|
76
|
+
"z:update:all-package-version": "npx npm-check-updates --configFilePath ./.ncurc.js --registry https://registry.npmjs.org -u"
|
|
77
77
|
},
|
|
78
78
|
"dependencies": {
|
|
79
79
|
"commander": "^13.1.0",
|
|
@@ -84,29 +84,29 @@
|
|
|
84
84
|
"fs-extra": "^11.3.0",
|
|
85
85
|
"hpagent": "^1.2.0",
|
|
86
86
|
"ping": "^0.4.4",
|
|
87
|
-
"shelljs": "^0.
|
|
87
|
+
"shelljs": "^0.9.1",
|
|
88
88
|
"terminal-kit": "^3.1.2"
|
|
89
89
|
},
|
|
90
90
|
"devDependencies": {
|
|
91
|
-
"@changesets/cli": "^2.
|
|
92
|
-
"@commitlint/cli": "^19.
|
|
93
|
-
"@commitlint/config-conventional": "^19.
|
|
94
|
-
"@commitlint/config-pnpm-scopes": "^19.
|
|
91
|
+
"@changesets/cli": "^2.28.1",
|
|
92
|
+
"@commitlint/cli": "^19.8.0",
|
|
93
|
+
"@commitlint/config-conventional": "^19.8.0",
|
|
94
|
+
"@commitlint/config-pnpm-scopes": "^19.8.0",
|
|
95
95
|
"commitizen": "^4.3.1",
|
|
96
96
|
"conventional-changelog-conventionalcommits": "^8.0.0",
|
|
97
|
-
"cz-git": "^1.11.
|
|
97
|
+
"cz-git": "^1.11.1",
|
|
98
98
|
"eslint": "^8.57.0",
|
|
99
|
-
"eslint-config-prettier": "^10.
|
|
99
|
+
"eslint-config-prettier": "^10.1.1",
|
|
100
100
|
"eslint-formatter-pretty": "^6.0.1",
|
|
101
|
-
"eslint-import-resolver-typescript": "^3.
|
|
101
|
+
"eslint-import-resolver-typescript": "^3.8.3",
|
|
102
102
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
103
103
|
"eslint-plugin-import": "^2.31.0",
|
|
104
104
|
"eslint-plugin-prettier": "^5.2.3",
|
|
105
105
|
"eslint-plugin-promise": "^7.2.1",
|
|
106
106
|
"husky": "^9.1.7",
|
|
107
107
|
"lint-staged": "^15.4.3",
|
|
108
|
-
"npm-check-updates": "^17.1.
|
|
109
|
-
"prettier": "^3.
|
|
110
|
-
"prettier-plugin-packagejson": "^2.5.
|
|
108
|
+
"npm-check-updates": "^17.1.15",
|
|
109
|
+
"prettier": "^3.5.3",
|
|
110
|
+
"prettier-plugin-packagejson": "^2.5.10"
|
|
111
111
|
}
|
|
112
112
|
}
|
|
@@ -14,8 +14,8 @@ const {
|
|
|
14
14
|
} = require('../tools/meta');
|
|
15
15
|
|
|
16
16
|
const {
|
|
17
|
-
|
|
18
|
-
} = require('../config/develop.subPath.
|
|
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
|
-
...
|
|
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 =
|