easy-soft-develop 2.1.139 → 2.1.144

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.139",
3
+ "version": "2.1.144",
4
4
  "description": "",
5
5
  "homepage": "https://github.com/kityandhero/easy-soft-develop#readme",
6
6
  "bugs": {
@@ -139,7 +139,7 @@ function createHusky() {
139
139
  . "$(dirname "$0")/_/husky.sh"
140
140
 
141
141
  echo ---------------------
142
- echo exec husky commit-msg
142
+ echo exec husky commit-msg by use \\"npx commitlint -e \\$HUSKY_GIT_PARAMS -V\\"
143
143
 
144
144
  npx commitlint -E $HUSKY_GIT_PARAMS -V
145
145
  `;
@@ -150,7 +150,7 @@ npx commitlint -E $HUSKY_GIT_PARAMS -V
150
150
  . "$(dirname "$0")/_/husky.sh"
151
151
 
152
152
  echo ---------------------
153
- echo exec husky pre-commit
153
+ echo exec husky pre-commit by use \\"npm run z:lint:staged\\"
154
154
  `;
155
155
 
156
156
  writeFileSync(`./.husky/pre-commit`, precommit, { coverFile: true });
@@ -8,7 +8,7 @@ const commitScript = {
8
8
  };
9
9
 
10
10
  const documentationScript = {
11
- 'prez:documentation:generate': 'rimraf ./docs && npm run z:documentation:lint',
11
+ 'prez:documentation:generate': 'npx easy-soft-develop rimraf ./docs && npm run z:documentation:lint',
12
12
  'z:documentation:generate': 'npx documentation build src/** -f html --github -o docs',
13
13
  'z:documentation:lint': 'npx documentation lint src/**',
14
14
  };
@@ -135,7 +135,15 @@ function adjustMainPackageJsonScript({ scripts }) {
135
135
  const publishWithOtp =
136
136
  developInitialEnvironmentConfig.publishWithOtp || false;
137
137
 
138
+ const publishItemCollection = {};
139
+
140
+ publishPackageNameList.map((o) => {
141
+ publishItemCollection[`z:publish:npm-${o}`] =
142
+ `npx easy-soft-develop publish --packages ${o}${publishWithOtp ? ' --otp true' : ''}`;
143
+ });
144
+
138
145
  packageJson.scripts = assignObject(
146
+ ...publishItemCollection,
139
147
  {
140
148
  'z:build:all': 'echo please supplement build all packages commend',
141
149
  'z:publish:npm-all': `npx easy-soft-develop publish --packages ${publishPackageNameList.join(
@@ -31,7 +31,7 @@ export namespace customChildPackageFile {
31
31
  export { coverFile_3 as coverFile };
32
32
  export { customChildPackageFileContent as fileContent };
33
33
  }
34
- declare const globalChildPackageFileContent: "/* eslint-disable no-undef */\n/* eslint-disable import/no-commonjs */\n/* eslint-disable unicorn/prefer-module */\n/* eslint-disable no-useless-escape */\n\nconst commitScript = {\n precommit: 'npm run z:lint:staged:quiet',\n};\n\nconst documentationScript = {\n 'prez:documentation:generate': 'rimraf ./docs && npm run z:documentation:lint',\n 'z:documentation:generate': 'npx documentation build src/** -f html --github -o docs',\n 'z:documentation:lint': 'npx documentation lint src/**',\n};\n\nconst lintScript = {\n 'z:lint:file:all': 'npm run z:lint:script:all && npm run z:lint:style:all',\n 'z:lint:file:all:fix': 'npm run z:lint:script:all:fix && npm run z:lint:style:all:fix',\n 'z:lint:file:change': 'npm run z:lint:script:change && npm run z:lint:style:all',\n 'z:lint:file:change:fix': 'npm run z:lint:script:change:fix && npm run z:lint:style:all:fix',\n 'z:lint:script:all': 'npx eslint --ext .js,.jsx,.ts,.tsx ./src',\n 'z:lint:script:all:fix': 'npx eslint --fix --ext .js,.jsx,.ts,.tsx ./src',\n 'postz:lint:script:all:fix': 'npm run z:prettier:format:all',\n 'z:lint:script:change': 'npx eslint --cache --ext .js,.jsx,.ts,.tsx ./src',\n 'z:lint:script:change:fix': 'npx eslint --fix --cache --ext .js,.jsx,.ts,.tsx ./src',\n 'postz:lint:script:change:fix': 'npm run z:prettier:format:change',\n 'z:lint:staged': 'npx lint-staged',\n 'z:lint:staged:quiet': 'npx lint-staged --quiet',\n 'z:lint:style:all': 'npx stylelint --allow-empty-input \"./src/**/*.{css,scss,less}\"',\n 'z:lint:style:all:fix': 'npx stylelint --allow-empty-input --fix \"./src/**/*.{css,scss,less}\"',\n 'postz:lint:style:all:fix': 'npm run z:prettier:format:all',\n 'z:lint:style:change': 'npx stylelint --allow-empty-input --cache \"./src/**/*.{css,scss,less}\"',\n 'z:lint:style:change:fix': 'npx stylelint --allow-empty-input --cache --fix \"./src/**/*.{css,scss,less}\"',\n 'postz:lint:style:change:fix': 'npm run z:prettier:format:change',\n};\n\nconst prettierScript = {\n 'z:prettier:format:all': 'npx prettier --write .',\n 'z:prettier:format:change': 'npx prettier --cache --write .',\n 'z:prettier:package.json': 'npx prettier --write ./package.json',\n};\n\nconst tscScript = {\n 'z:tsc:build': 'echo show tsc version and create declaration file && tsc -v && tsc -p ./tsconfig.types.json && echo declaration file generate complete',\n};\n\nconst jestScript = {\n 'z:test': 'cross-env NODE_ENV=test jest',\n};\n\nmodule.exports = {\n ...commitScript,\n ...documentationScript,\n ...lintScript,\n ...prettierScript,\n ...tscScript,\n ...jestScript,\n};\n";
34
+ declare const globalChildPackageFileContent: "/* eslint-disable no-undef */\n/* eslint-disable import/no-commonjs */\n/* eslint-disable unicorn/prefer-module */\n/* eslint-disable no-useless-escape */\n\nconst commitScript = {\n precommit: 'npm run z:lint:staged:quiet',\n};\n\nconst documentationScript = {\n 'prez:documentation:generate': 'npx easy-soft-develop rimraf ./docs && npm run z:documentation:lint',\n 'z:documentation:generate': 'npx documentation build src/** -f html --github -o docs',\n 'z:documentation:lint': 'npx documentation lint src/**',\n};\n\nconst lintScript = {\n 'z:lint:file:all': 'npm run z:lint:script:all && npm run z:lint:style:all',\n 'z:lint:file:all:fix': 'npm run z:lint:script:all:fix && npm run z:lint:style:all:fix',\n 'z:lint:file:change': 'npm run z:lint:script:change && npm run z:lint:style:all',\n 'z:lint:file:change:fix': 'npm run z:lint:script:change:fix && npm run z:lint:style:all:fix',\n 'z:lint:script:all': 'npx eslint --ext .js,.jsx,.ts,.tsx ./src',\n 'z:lint:script:all:fix': 'npx eslint --fix --ext .js,.jsx,.ts,.tsx ./src',\n 'postz:lint:script:all:fix': 'npm run z:prettier:format:all',\n 'z:lint:script:change': 'npx eslint --cache --ext .js,.jsx,.ts,.tsx ./src',\n 'z:lint:script:change:fix': 'npx eslint --fix --cache --ext .js,.jsx,.ts,.tsx ./src',\n 'postz:lint:script:change:fix': 'npm run z:prettier:format:change',\n 'z:lint:staged': 'npx lint-staged',\n 'z:lint:staged:quiet': 'npx lint-staged --quiet',\n 'z:lint:style:all': 'npx stylelint --allow-empty-input \"./src/**/*.{css,scss,less}\"',\n 'z:lint:style:all:fix': 'npx stylelint --allow-empty-input --fix \"./src/**/*.{css,scss,less}\"',\n 'postz:lint:style:all:fix': 'npm run z:prettier:format:all',\n 'z:lint:style:change': 'npx stylelint --allow-empty-input --cache \"./src/**/*.{css,scss,less}\"',\n 'z:lint:style:change:fix': 'npx stylelint --allow-empty-input --cache --fix \"./src/**/*.{css,scss,less}\"',\n 'postz:lint:style:change:fix': 'npm run z:prettier:format:change',\n};\n\nconst prettierScript = {\n 'z:prettier:format:all': 'npx prettier --write .',\n 'z:prettier:format:change': 'npx prettier --cache --write .',\n 'z:prettier:package.json': 'npx prettier --write ./package.json',\n};\n\nconst tscScript = {\n 'z:tsc:build': 'echo show tsc version and create declaration file && tsc -v && tsc -p ./tsconfig.types.json && echo declaration file generate complete',\n};\n\nconst jestScript = {\n 'z:test': 'cross-env NODE_ENV=test jest',\n};\n\nmodule.exports = {\n ...commitScript,\n ...documentationScript,\n ...lintScript,\n ...prettierScript,\n ...tscScript,\n ...jestScript,\n};\n";
35
35
  declare const customMainPackageFileContent: '/* eslint-disable no-undef */\n/* eslint-disable import/no-commonjs */\n/* eslint-disable unicorn/prefer-module */\n/* eslint-disable no-useless-escape */\n\nconst scripts = {};\n\nmodule.exports = {\n ...scripts,\n};\n';
36
36
  declare const customChildPackageFileContent: '/* eslint-disable no-undef */\n/* eslint-disable import/no-commonjs */\n/* eslint-disable unicorn/prefer-module */\n/* eslint-disable no-useless-escape */\n\nconst scripts = {};\n\nmodule.exports = {\n ...scripts,\n};\n';
37
37
  export {};