From cebb2ffbe58f2d49acdf9147c4457fb5ca5c2015 Mon Sep 17 00:00:00 2001 From: Evan You Date: Mon, 18 Jun 2018 10:56:36 -0400 Subject: [PATCH] chore: 3.0.0-rc.3 changelog [ci skip] --- CHANGELOG.md | 58 +++++++++++++++++++++++++++++++++++++++++ package.json | 1 + scripts/genChangelog.js | 26 ++++++++++++++++++ scripts/release.js | 16 +----------- 4 files changed, 86 insertions(+), 15 deletions(-) create mode 100644 scripts/genChangelog.js diff --git a/CHANGELOG.md b/CHANGELOG.md index 327796ecb..87f579e3e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,61 @@ + +# [3.0.0-rc.3](https://github.com/vuejs/vue-cli/compare/v3.0.0-rc.2...v3.0.0-rc.3) (2018-06-18) + + +### Bug Fixes + +* **invoke:** deep merge only plain objects ([a7f3c2c](https://github.com/vuejs/vue-cli/commit/a7f3c2c)) +* **invoke:** merge data in config transforms ([35cb714](https://github.com/vuejs/vue-cli/commit/35cb714)) +* **invoke:** not reading dot files ([49d56db](https://github.com/vuejs/vue-cli/commit/49d56db)) +* **ui:** bail on error reading package.json, closes [#1599](https://github.com/vuejs/vue-cli/issues/1599) ([3ebb104](https://github.com/vuejs/vue-cli/commit/3ebb104)) +* **ui:** Config prompts error ([bbc974d](https://github.com/vuejs/vue-cli/commit/bbc974d)) +* **ui:** configurations: broken package.json mode, closes [#1598](https://github.com/vuejs/vue-cli/issues/1598) ([5885dd5](https://github.com/vuejs/vue-cli/commit/5885dd5)) +* **ui:** create: package manager select ([61662c4](https://github.com/vuejs/vue-cli/commit/61662c4)) +* **ui:** folder explorer: better performance + auto scroll to top ([d63cc0d](https://github.com/vuejs/vue-cli/commit/d63cc0d)) +* **ui:** folder loading indicator + e2e tests ([6c4ebb0](https://github.com/vuejs/vue-cli/commit/6c4ebb0)) +* **ui:** folder path parts style ([123fffa](https://github.com/vuejs/vue-cli/commit/123fffa)) +* **ui:** images urls while serving the ui (dev) ([4144efc](https://github.com/vuejs/vue-cli/commit/4144efc)) +* **ui:** improved performance ([c378658](https://github.com/vuejs/vue-cli/commit/c378658)) +* **ui:** improved remote preset checking ([0ba5e09](https://github.com/vuejs/vue-cli/commit/0ba5e09)) +* **ui:** list item hover background more subtle ([a5bb260](https://github.com/vuejs/vue-cli/commit/a5bb260)) +* **ui:** more spacing in status bar ([80a847f](https://github.com/vuejs/vue-cli/commit/80a847f)) +* **ui:** process exit guard ([29fcee7](https://github.com/vuejs/vue-cli/commit/29fcee7)) +* **ui:** project create detials: bigger grid gap ([cfed833](https://github.com/vuejs/vue-cli/commit/cfed833)) +* **ui:** project creation not reset ([9efdfaf](https://github.com/vuejs/vue-cli/commit/9efdfaf)) +* **ui:** put temp stats files in node_modules ([2a21434](https://github.com/vuejs/vue-cli/commit/2a21434)) +* **ui:** remove console.log ([04d76a2](https://github.com/vuejs/vue-cli/commit/04d76a2)) +* **ui:** reset webpack.config.js service on correct CWD, closes [#1555](https://github.com/vuejs/vue-cli/issues/1555) ([dc2f8e8](https://github.com/vuejs/vue-cli/commit/dc2f8e8)) +* **ui:** task logs performance regression ([0ea3a22](https://github.com/vuejs/vue-cli/commit/0ea3a22)) +* **ui:** task logs queue not flushed if not enough logs ([8753971](https://github.com/vuejs/vue-cli/commit/8753971)) +* **ui:** terminal dark theme background ([959ea07](https://github.com/vuejs/vue-cli/commit/959ea07)) +* **ui:** translate link ([f365767](https://github.com/vuejs/vue-cli/commit/f365767)) +* **ui:** tweak prompt style for more spacing ([d5d57fe](https://github.com/vuejs/vue-cli/commit/d5d57fe)) +* **ui:** typo ([#1600](https://github.com/vuejs/vue-cli/issues/1600)) ([e261ddb](https://github.com/vuejs/vue-cli/commit/e261ddb)) +* better version check, closes [#1564](https://github.com/vuejs/vue-cli/issues/1564) ([8b9477f](https://github.com/vuejs/vue-cli/commit/8b9477f)) + + +### Features + +* **ui:** about button in project manager ([a242d73](https://github.com/vuejs/vue-cli/commit/a242d73)) +* **ui:** allow partial GraphQL results ([e6d68ca](https://github.com/vuejs/vue-cli/commit/e6d68ca)) +* **ui:** basic global error handler ([5566208](https://github.com/vuejs/vue-cli/commit/5566208)) +* **ui:** better item logo animation ([22b92ba](https://github.com/vuejs/vue-cli/commit/22b92ba)) +* **ui:** folder explorer: better UX + hide hidden folders by default ([545cc3f](https://github.com/vuejs/vue-cli/commit/545cc3f)) +* **ui:** folder explorer: change position of error icon ([d62ad77](https://github.com/vuejs/vue-cli/commit/d62ad77)) +* **ui:** folder explorer: create new folders ([ccde77c](https://github.com/vuejs/vue-cli/commit/ccde77c)) +* **ui:** import project: missing modules modal ([99dc316](https://github.com/vuejs/vue-cli/commit/99dc316)) +* **ui:** mocha task ([b0ed1e2](https://github.com/vuejs/vue-cli/commit/b0ed1e2)) +* **ui:** project create: folder already exists warning ([4d9a092](https://github.com/vuejs/vue-cli/commit/4d9a092)) +* **ui:** project manager: back button ([4413dee](https://github.com/vuejs/vue-cli/commit/4413dee)) +* **ui:** refresh plugin API button ([c658223](https://github.com/vuejs/vue-cli/commit/c658223)) +* **ui:** remote preset support ([7402148](https://github.com/vuejs/vue-cli/commit/7402148)) +* **ui:** suggestions animation ([82836f5](https://github.com/vuejs/vue-cli/commit/82836f5)) +* **ui:** v-focus directive ([e1a0c4c](https://github.com/vuejs/vue-cli/commit/e1a0c4c)) +* **ui:** validate new project folder name ([8957c3a](https://github.com/vuejs/vue-cli/commit/8957c3a)) +* **ui:** vue-cli config ([2f0961d](https://github.com/vuejs/vue-cli/commit/2f0961d)) + + + # [3.0.0-rc.2](https://github.com/vuejs/vue-cli/compare/v3.0.0-rc.1...v3.0.0-rc.2) (2018-06-14) diff --git a/package.json b/package.json index f8be794a9..1e37a9b2a 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "sync": "node scripts/syncDeps.js", "boot": "node scripts/bootstrap.js", "release": "yarn clean && node scripts/release.js", + "changelog": "node scripts/genChangelog.js run", "docs": "vuepress dev docs", "docs:build": "vuepress build docs", "patch-chromedriver": "node scripts/patchChromedriver.js" diff --git a/scripts/genChangelog.js b/scripts/genChangelog.js new file mode 100644 index 000000000..a784a2239 --- /dev/null +++ b/scripts/genChangelog.js @@ -0,0 +1,26 @@ +const execa = require('execa') +const cc = require('conventional-changelog') + +const gen = module.exports = version => { + const fileStream = require('fs').createWriteStream(`CHANGELOG.md`) + + cc({ + preset: 'angular', + releaseCount: 0, + pkg: { + transform (pkg) { + pkg.version = `v${version}` + return pkg + } + } + }).pipe(fileStream).on('close', async () => { + delete process.env.PREFIX + await execa('git', ['add', '-A'], { stdio: 'inherit' }) + await execa('git', ['commit', '-m', `chore: ${version} changelog [ci skip]`], { stdio: 'inherit' }) + }) +} + +if (process.argv[2] === 'run') { + const version = require('../lerna.json').version + gen(version) +} diff --git a/scripts/release.js b/scripts/release.js index 328431bfa..199ca8f57 100644 --- a/scripts/release.js +++ b/scripts/release.js @@ -4,7 +4,6 @@ const execa = require('execa') const semver = require('semver') const inquirer = require('inquirer') const { syncDeps } = require('./syncDeps') -const cc = require('conventional-changelog') const curVersion = require('../lerna.json').version @@ -59,20 +58,7 @@ const release = async () => { version ], { stdio: 'inherit' }) - const fileStream = require('fs').createWriteStream(`CHANGELOG.md`) - cc({ - preset: 'angular', - releaseCount: 0, - pkg: { - transform (pkg) { - pkg.version = `v${version}` - return pkg - } - } - }).pipe(fileStream).on('close', async () => { - await execa('git', ['add', '-A'], { stdio: 'inherit' }) - await execa('git', ['commit', '-m', `chore: ${version} changelog [ci skip]`], { stdio: 'inherit' }) - }) + require('./genChangelog')(version) } release().catch(err => {