From c70e1511306ca5bfa37deb31423ab3871d9db0aa Mon Sep 17 00:00:00 2001 From: buns Date: Mon, 11 Jan 2021 16:31:08 +0800 Subject: [PATCH] release: v1.0.0-beta.8 --- CHANGELOG.md | 34 +++++++ package.json | 122 ++++++++++++------------- packages/builtin-build/package.json | 104 ++++++++++----------- packages/builtin-deps/package.json | 6 +- packages/builtin-githooks/package.json | 4 +- packages/builtin-publish/package.json | 4 +- packages/cli-init/package.json | 4 +- packages/cli/package.json | 114 +++++++++++------------ packages/core/package.json | 76 +++++++-------- packages/utils/package.json | 90 +++++++++--------- 10 files changed, 296 insertions(+), 262 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 35be3d8..d283732 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,39 @@ # siu ChangeLog +## [v1.0.0-beta.8](https://github.com/siujs/cli/compare/v1.0.0-beta.7...v1.0.0-beta.8) (2021-01-11) + +### Bug Fixes + +- **utils**: miss `Merge pull request` analysising ([34a6445](https://github.com/siujs/cli/commit/34a6445935a506e4d87ae1f50b29effb3911d27c)) +- **core**: unconsidered `_cmd` in testPlugin ([cf5b7e2](https://github.com/siujs/cli/commit/cf5b7e209033d593dd9467ac1e8e6270fe86e5c9)) +- **utils**: unconsidered `deerDepe..` in `getSortedPkgByPriority` ([c49ba48](https://github.com/siujs/cli/commit/c49ba48862852e8e26002f47866a198e9cb450ad)) +- **core**: `testPlugin` not considered `ctx.pkg` scene ([7207786](https://github.com/siujs/cli/commit/7207786b12bd543f9fca1e2c17141270102ec64d)) + +### Code Refactoring + +- **builtin-build**: set `SiuRollupBuilderHooks` optional ([9b4ab87](https://github.com/siujs/cli/commit/9b4ab8719b56e7ad6917a50a3b19c72876bd93e1)) +- **core**: `findUpSiuConfigCwd`=>`lookupSiu` ([3ce9648](https://github.com/siujs/cli/commit/3ce9648d52646e35a10009aba4d4c9b537228a20)) +- **cli**: rm unused ex console of create ([9638e22](https://github.com/siujs/cli/commit/9638e22ad8f01ceb27bb1ea8a84fe9522d6f24a8)) +- `cli-spinner`=>`ora` ([3e60a4c](https://github.com/siujs/cli/commit/3e60a4c5665f0704425b7c5ff3ef736f610c2a9f)) +- **core**: simplify code judgment logic ([0dba8d1](https://github.com/siujs/cli/commit/0dba8d1b8badf51e038e76c5938c672e9dc6866f)) +- **core**: adjust `extra` define of `testPlugin` ([ab1b9ca](https://github.com/siujs/cli/commit/ab1b9ca1d095a748a45d680423ec51dd8247d638)) + +### Performance Improvements + +- improve `siu init` logic and console display ([56fe721](https://github.com/siujs/cli/commit/56fe721d4e7eaed32b5997c1172944d5eaf35b0b)) +- **builtin-build**: improve rollup config handle and define ([8b52f3e](https://github.com/siujs/cli/commit/8b52f3ef9bec1117cec7a0e8ca642e394ffbc24c)) +- **builtin-build**: custom stop esbuild service ([74a7b13](https://github.com/siujs/cli/commit/74a7b1365e5a716d71d8d4e8356e8d8024acf69f)) + +### Features + +- **core**: enhance processing of `siu.config.ts` ([e5a44d3](https://github.com/siujs/cli/commit/e5a44d3b9ae40807099388128db98005bb2ed51c)) +- **builtin-build**: add `genCommonConfig`、`rollupBuild` ([025f77f](https://github.com/siujs/cli/commit/025f77fdb457f67abd6d388098a8b91cb0f01704)) +- **cli**: add `defineConfig` for intellisense ([9ab5686](https://github.com/siujs/cli/commit/9ab5686413b67e70db1b56e002fa1c57a88f9464)) +- add `debug` ([9070c9f](https://github.com/siujs/cli/commit/9070c9fdf05f2508c051ae56cc70f20cd715e255)) +- support multi monorepo workspaces handle ([722340e](https://github.com/siujs/cli/commit/722340e44ea9e086b481cc30bce5b3996f89c2be)) +- **builtin-deps**: support multi monorepo workspace ([cb1ecf2](https://github.com/siujs/cli/commit/cb1ecf2dbcac6c3449083d8838ffd149f130bab2)) +- **core**: support `opts` customization by `testPlugin` ([5fa116a](https://github.com/siujs/cli/commit/5fa116aa5e6df1647427996fba83058c0758d3b8)) + ## [v1.0.0-beta.7](https://github.com/siujs/cli/compare/v1.0.0-beta.6...v1.0.0-beta.7) (2021-01-06) ### Bug Fixes diff --git a/package.json b/package.json index a7efb31..08abfb1 100644 --- a/package.json +++ b/package.json @@ -1,63 +1,63 @@ { - "private": true, - "workspaces": [ - "packages/**" - ], - "name": "siu", - "version": "1.0.0-beta.7", - "main": "dist/index.js", - "module": "dist/index.js", - "author": "buns ", - "license": "MIT", - "bin": { - "siu": "./bin/siu.js" - }, - "files": [ - "bin", - "dist" - ], - "engines": { - "node": ">=14.x" - }, - "scripts": { - "preinstall": "node ./scripts/checkYarn.js", - "test": "node ./scripts/test.mjs", - "clean:dist": "rimraf -g packages/*/dist", - "clean:dts": "rimraf -g packages/*/dist/{tsconfig.tsbuildinfo,dts} && rimraf -g packages/*/temp", - "dts": "node ./scripts/dts.js && npm run clean:dts", - "compile": "rollup -wc", - "build": "npm run clean:dist && rollup -c && npm run dts", - "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s", - "release": "node scripts/release.js" - }, - "devDependencies": { - "@microsoft/api-extractor": "7.12.1", - "@rollup/plugin-commonjs": "17.0.0", - "@rollup/plugin-json": "4.1.0", - "@rollup/plugin-node-resolve": "11.0.1", - "@rollup/pluginutils": "4.1.0", - "@types/jest": "26.0.19", - "@types/node": "14.14.20", - "@typescript-eslint/eslint-plugin": "4.12.0", - "@typescript-eslint/parser": "4.12.0", - "conventional-changelog-cli": "2.1.1", - "cross-env": "7.0.3", - "esbuild": "0.8.31", - "eslint": "7.17.0", - "eslint-config-prettier": "7.1.0", - "eslint-plugin-prettier": "3.3.1", - "execa": "5.0.0", - "minimist": "1.2.5", - "prettier": "2.2.1", - "rimraf": "3.0.2", - "rollup": "2.36.1", - "rollup-plugin-node-externals": "2.2.0", - "semver": "7.3.4", - "typescript": "4.1.3" - }, - "dependencies": { - "jest": "26.6.3", - "ts-jest": "26.4.4", - "validate-npm-package-name": "3.0.0" - } + "private": true, + "workspaces": [ + "packages/**" + ], + "name": "siu", + "version": "1.0.0-beta.8", + "main": "dist/index.js", + "module": "dist/index.js", + "author": "buns ", + "license": "MIT", + "bin": { + "siu": "./bin/siu.js" + }, + "files": [ + "bin", + "dist" + ], + "engines": { + "node": ">=14.x" + }, + "scripts": { + "preinstall": "node ./scripts/checkYarn.js", + "test": "node ./scripts/test.mjs", + "clean:dist": "rimraf -g packages/*/dist", + "clean:dts": "rimraf -g packages/*/dist/{tsconfig.tsbuildinfo,dts} && rimraf -g packages/*/temp", + "dts": "node ./scripts/dts.js && npm run clean:dts", + "compile": "rollup -wc", + "build": "npm run clean:dist && rollup -c && npm run dts", + "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s", + "release": "node scripts/release.js" + }, + "devDependencies": { + "@microsoft/api-extractor": "7.12.1", + "@rollup/plugin-commonjs": "17.0.0", + "@rollup/plugin-json": "4.1.0", + "@rollup/plugin-node-resolve": "11.0.1", + "@rollup/pluginutils": "4.1.0", + "@types/jest": "26.0.19", + "@types/node": "14.14.20", + "@typescript-eslint/eslint-plugin": "4.12.0", + "@typescript-eslint/parser": "4.12.0", + "conventional-changelog-cli": "2.1.1", + "cross-env": "7.0.3", + "esbuild": "0.8.31", + "eslint": "7.17.0", + "eslint-config-prettier": "7.1.0", + "eslint-plugin-prettier": "3.3.1", + "execa": "5.0.0", + "minimist": "1.2.5", + "prettier": "2.2.1", + "rimraf": "3.0.2", + "rollup": "2.36.1", + "rollup-plugin-node-externals": "2.2.0", + "semver": "7.3.4", + "typescript": "4.1.3" + }, + "dependencies": { + "jest": "26.6.3", + "ts-jest": "26.4.4", + "validate-npm-package-name": "3.0.0" + } } diff --git a/packages/builtin-build/package.json b/packages/builtin-build/package.json index 04df02e..ca4471e 100644 --- a/packages/builtin-build/package.json +++ b/packages/builtin-build/package.json @@ -1,54 +1,54 @@ { - "name": "@siujs/builtin-build", - "version": "1.0.0-beta.7", - "description": "build of siujs", - "keywords": [ - "build", - "siujs" - ], - "author": "buns ", - "license": "MIT", - "main": "dist/index.js", - "module": "dist/index.mjs", - "types": "dist/builtin-build.d.ts", - "typings": "dist/builtin-build.d.ts", - "directories": { - "lib": "lib", - "test": "__tests__" - }, - "files": [ - "dist" - ], - "repository": { - "type": "git", - "url": "git+https://github.com/siujs/siu.git" - }, - "bugs": { - "url": "https://github.com/siujs/siu/issues" - }, - "homepage": "https://github.com/siujs/siu#readme", - "peerDependencies": { - "@siujs/core": "1.0.0-beta.7", - "@siujs/utils": "1.0.0-beta.7", - "esbuild": "^0.8.31", - "rollup": "^2.36.1" - }, - "dependencies": { - "@microsoft/api-extractor": "^7.12.1", - "@rollup/plugin-commonjs": "^17.0.0", - "@rollup/plugin-node-resolve": "^11.0.1", - "@rollup/plugin-replace": "^2.3.4", - "@rollup/pluginutils": "^4.1.0", - "chalk": "^4.1.0", - "fs-extra": "^9.0.1", - "pretty-ms": "^7.0.1", - "rollup-plugin-gzip": "^2.5.0", - "rollup-plugin-node-externals": "^2.2.0", - "rollup-plugin-terser": "^7.0.2", - "shelljs": "^0.8.4", - "zlib": "^1.0.5" - }, - "devDependencies": { - "@types/fs-extra": "^9.0.6" - } + "name": "@siujs/builtin-build", + "version": "1.0.0-beta.8", + "description": "build of siujs", + "keywords": [ + "build", + "siujs" + ], + "author": "buns ", + "license": "MIT", + "main": "dist/index.js", + "module": "dist/index.mjs", + "types": "dist/builtin-build.d.ts", + "typings": "dist/builtin-build.d.ts", + "directories": { + "lib": "lib", + "test": "__tests__" + }, + "files": [ + "dist" + ], + "repository": { + "type": "git", + "url": "git+https://github.com/siujs/siu.git" + }, + "bugs": { + "url": "https://github.com/siujs/siu/issues" + }, + "homepage": "https://github.com/siujs/siu#readme", + "peerDependencies": { + "@siujs/core": "1.0.0-beta.8", + "@siujs/utils": "1.0.0-beta.8", + "esbuild": "^0.8.31", + "rollup": "^2.36.1" + }, + "dependencies": { + "@microsoft/api-extractor": "^7.12.1", + "@rollup/plugin-commonjs": "^17.0.0", + "@rollup/plugin-node-resolve": "^11.0.1", + "@rollup/plugin-replace": "^2.3.4", + "@rollup/pluginutils": "^4.1.0", + "chalk": "^4.1.0", + "fs-extra": "^9.0.1", + "pretty-ms": "^7.0.1", + "rollup-plugin-gzip": "^2.5.0", + "rollup-plugin-node-externals": "^2.2.0", + "rollup-plugin-terser": "^7.0.2", + "shelljs": "^0.8.4", + "zlib": "^1.0.5" + }, + "devDependencies": { + "@types/fs-extra": "^9.0.6" + } } diff --git a/packages/builtin-deps/package.json b/packages/builtin-deps/package.json index 1a3abc0..f09f15e 100644 --- a/packages/builtin-deps/package.json +++ b/packages/builtin-deps/package.json @@ -1,6 +1,6 @@ { "name": "@siujs/builtin-deps", - "version": "1.0.0-beta.7", + "version": "1.0.0-beta.8", "description": "deps handle of siujs", "keywords": [ "deps", @@ -28,8 +28,8 @@ }, "homepage": "https://github.com/siujs/siu#readme", "dependencies": { - "@siujs/core": "1.0.0-beta.7", - "@siujs/utils": "1.0.0-beta.7", + "@siujs/core": "1.0.0-beta.8", + "@siujs/utils": "1.0.0-beta.8", "fs-extra": "^9.0.1", "shelljs": "^0.8.4" }, diff --git a/packages/builtin-githooks/package.json b/packages/builtin-githooks/package.json index 0b52d8b..5521890 100644 --- a/packages/builtin-githooks/package.json +++ b/packages/builtin-githooks/package.json @@ -1,6 +1,6 @@ { "name": "@siujs/builtin-githooks", - "version": "1.0.0-beta.7", + "version": "1.0.0-beta.8", "description": "git hooks for siujs", "keywords": [ "git", @@ -29,7 +29,7 @@ }, "homepage": "https://github.com/siujs/siu#readme", "dependencies": { - "@siujs/utils": "1.0.0-beta.7", + "@siujs/utils": "1.0.0-beta.8", "chalk": "^4.1.0", "shelljs": "^0.8.4" } diff --git a/packages/builtin-publish/package.json b/packages/builtin-publish/package.json index 058fd55..bc47ecc 100644 --- a/packages/builtin-publish/package.json +++ b/packages/builtin-publish/package.json @@ -1,6 +1,6 @@ { "name": "@siujs/builtin-publish", - "version": "1.0.0-beta.7", + "version": "1.0.0-beta.8", "description": "release handler for siujs as fallback", "keywords": [ "publish", @@ -29,7 +29,7 @@ }, "homepage": "https://github.com/siujs/siu#readme", "dependencies": { - "@siujs/utils": "1.0.0-beta.7", + "@siujs/utils": "1.0.0-beta.8", "chalk": "^4.1.0", "execa": "^5.0.0", "fs-extra": "^9.0.1", diff --git a/packages/cli-init/package.json b/packages/cli-init/package.json index c168aa4..8e37c24 100644 --- a/packages/cli-init/package.json +++ b/packages/cli-init/package.json @@ -1,6 +1,6 @@ { "name": "@siujs/cli-init", - "version": "1.0.0-beta.7", + "version": "1.0.0-beta.8", "description": "init application of siujs", "keywords": [ "init", @@ -28,7 +28,7 @@ }, "homepage": "https://github.com/siujs/siu#readme", "dependencies": { - "@siujs/utils": "1.0.0-beta.7", + "@siujs/utils": "1.0.0-beta.8", "chalk": "^4.1.0", "fs-extra": "^9.0.1", "pretty-ms": "^7.0.1", diff --git a/packages/cli/package.json b/packages/cli/package.json index be52002..4991153 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,59 +1,59 @@ { - "name": "@siujs/cli", - "version": "1.0.0-beta.7", - "description": "cli of siujs", - "keywords": [ - "cli", - "siu", - "siujs" - ], - "author": "buns ", - "license": "MIT", - "main": "dist/index.js", - "module": "dist/index.mjs", - "types": "dist/cli.d.ts", - "typings": "dist/cli.d.ts", - "directories": { - "lib": "lib", - "test": "__tests__" - }, - "bin": { - "siu": "./bin/siu.js" - }, - "files": [ - "bin", - "dist" - ], - "repository": { - "type": "git", - "url": "git+https://github.com/siujs/siu.git" - }, - "scripts": { - "build": "tsc -b tsconfig.json" - }, - "bugs": { - "url": "https://github.com/siujs/siu/issues" - }, - "homepage": "https://github.com/siujs/siu#readme", - "peerDependencies": { - "@siujs/builtin-build": "1.0.0-beta.7", - "@siujs/builtin-deps": "1.0.0-beta.7", - "@siujs/builtin-githooks": "1.0.0-beta.7", - "@siujs/builtin-publish": "1.0.0-beta.7", - "@siujs/cli-init": "1.0.0-beta.7", - "@siujs/core": "1.0.0-beta.7", - "@siujs/utils": "1.0.0-beta.7" - }, - "dependencies": { - "chalk": "^4.1.0", - "commander": "^6.2.1", - "fs-extra": "^9.0.1", - "inquirer": "^7.3.3", - "shelljs": "^0.8.4", - "validate-npm-package-name": "^3.0.0" - }, - "devDependencies": { - "@types/fs-extra": "^9.0.6", - "@types/validate-npm-package-name": "^3.0.2" - } + "name": "@siujs/cli", + "version": "1.0.0-beta.8", + "description": "cli of siujs", + "keywords": [ + "cli", + "siu", + "siujs" + ], + "author": "buns ", + "license": "MIT", + "main": "dist/index.js", + "module": "dist/index.mjs", + "types": "dist/cli.d.ts", + "typings": "dist/cli.d.ts", + "directories": { + "lib": "lib", + "test": "__tests__" + }, + "bin": { + "siu": "./bin/siu.js" + }, + "files": [ + "bin", + "dist" + ], + "repository": { + "type": "git", + "url": "git+https://github.com/siujs/siu.git" + }, + "scripts": { + "build": "tsc -b tsconfig.json" + }, + "bugs": { + "url": "https://github.com/siujs/siu/issues" + }, + "homepage": "https://github.com/siujs/siu#readme", + "peerDependencies": { + "@siujs/builtin-build": "1.0.0-beta.8", + "@siujs/builtin-deps": "1.0.0-beta.8", + "@siujs/builtin-githooks": "1.0.0-beta.8", + "@siujs/builtin-publish": "1.0.0-beta.8", + "@siujs/cli-init": "1.0.0-beta.8", + "@siujs/core": "1.0.0-beta.8", + "@siujs/utils": "1.0.0-beta.8" + }, + "dependencies": { + "chalk": "^4.1.0", + "commander": "^6.2.1", + "fs-extra": "^9.0.1", + "inquirer": "^7.3.3", + "shelljs": "^0.8.4", + "validate-npm-package-name": "^3.0.0" + }, + "devDependencies": { + "@types/fs-extra": "^9.0.6", + "@types/validate-npm-package-name": "^3.0.2" + } } diff --git a/packages/core/package.json b/packages/core/package.json index 7506e26..58bffea 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,40 +1,40 @@ { - "name": "@siujs/core", - "version": "1.0.0-beta.7", - "description": "core of @siujs", - "keywords": [], - "author": "buns ", - "license": "MIT", - "main": "dist/index.js", - "module": "dist/index.mjs", - "types": "dist/core.d.ts", - "typings": "dist/core.d.ts", - "directories": { - "lib": "lib", - "test": "__tests__" - }, - "files": [ - "dist" - ], - "repository": { - "type": "git", - "url": "git+https://github.com/siujs/siu.git" - }, - "bugs": { - "url": "https://github.com/siujs/siu/issues" - }, - "homepage": "https://github.com/siujs/siu#readme", - "peerDependencies": { - "@siujs/builtin-build": "1.0.0-beta.7", - "@siujs/utils": "1.0.0-beta.7" - }, - "dependencies": { - "chalk": "^4.1.0", - "fs-extra": "^9.0.1", - "inquirer": "^7.3.3" - }, - "devDependencies": { - "@types/fs-extra": "^9.0.6", - "@types/inquirer": "^7.3.1" - } + "name": "@siujs/core", + "version": "1.0.0-beta.8", + "description": "core of @siujs", + "keywords": [], + "author": "buns ", + "license": "MIT", + "main": "dist/index.js", + "module": "dist/index.mjs", + "types": "dist/core.d.ts", + "typings": "dist/core.d.ts", + "directories": { + "lib": "lib", + "test": "__tests__" + }, + "files": [ + "dist" + ], + "repository": { + "type": "git", + "url": "git+https://github.com/siujs/siu.git" + }, + "bugs": { + "url": "https://github.com/siujs/siu/issues" + }, + "homepage": "https://github.com/siujs/siu#readme", + "peerDependencies": { + "@siujs/builtin-build": "1.0.0-beta.8", + "@siujs/utils": "1.0.0-beta.8" + }, + "dependencies": { + "chalk": "^4.1.0", + "fs-extra": "^9.0.1", + "inquirer": "^7.3.3" + }, + "devDependencies": { + "@types/fs-extra": "^9.0.6", + "@types/inquirer": "^7.3.1" + } } diff --git a/packages/utils/package.json b/packages/utils/package.json index b36ad08..a527822 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -1,47 +1,47 @@ { - "name": "@siujs/utils", - "version": "1.0.0-beta.7", - "description": "utils of siu", - "keywords": [ - "siu", - "cli", - "siujs", - "utils" - ], - "author": "buns ", - "license": "MIT", - "main": "dist/index.js", - "module": "dist/index.mjs", - "types": "dist/utils.d.ts", - "typings": "dist/utils.d.ts", - "directories": { - "lib": "lib", - "test": "__tests__" - }, - "files": [ - "dist" - ], - "repository": { - "type": "git", - "url": "git+https://github.com/siujs/siu.git" - }, - "bugs": { - "url": "https://github.com/siujs/siu/issues" - }, - "homepage": "https://github.com/siujs/siu#readme", - "scripts": { - "build": "tsc -b tsconfig.json" - }, - "dependencies": { - "conventional-commits-parser": "^3.2.0", - "debug": "^4.3.1", - "fs-extra": "^9.0.1", - "ora": "^5.2.0", - "shelljs": "^0.8.4" - }, - "devDependencies": { - "@types/conventional-commits-parser": "^3.0.1", - "@types/debug": "^4.1.5", - "@types/shelljs": "0.8.8" - } + "name": "@siujs/utils", + "version": "1.0.0-beta.8", + "description": "utils of siu", + "keywords": [ + "siu", + "cli", + "siujs", + "utils" + ], + "author": "buns ", + "license": "MIT", + "main": "dist/index.js", + "module": "dist/index.mjs", + "types": "dist/utils.d.ts", + "typings": "dist/utils.d.ts", + "directories": { + "lib": "lib", + "test": "__tests__" + }, + "files": [ + "dist" + ], + "repository": { + "type": "git", + "url": "git+https://github.com/siujs/siu.git" + }, + "bugs": { + "url": "https://github.com/siujs/siu/issues" + }, + "homepage": "https://github.com/siujs/siu#readme", + "scripts": { + "build": "tsc -b tsconfig.json" + }, + "dependencies": { + "conventional-commits-parser": "^3.2.0", + "debug": "^4.3.1", + "fs-extra": "^9.0.1", + "ora": "^5.2.0", + "shelljs": "^0.8.4" + }, + "devDependencies": { + "@types/conventional-commits-parser": "^3.0.1", + "@types/debug": "^4.1.5", + "@types/shelljs": "0.8.8" + } }