Skip to content
This repository has been archived by the owner on Feb 8, 2019. It is now read-only.

Commit

Permalink
⭐ new: support changelog and release tasks with conventional-changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
kazupon committed Jun 10, 2016
1 parent 1969d95 commit 996a821
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
20 changes: 20 additions & 0 deletions meta.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,26 @@ module.exports = {
type: 'confirm',
message: 'Setup sauce tests?'
},
conventional: {
type: 'confirm',
message: 'Setup conventional-changelog tasks?'
},
conventionalConfig: {
when: 'conventional',
type: 'list',
message: 'Choice a conventional-changelog preset',
choices: [
{ name: 'none (configure it youreself)', value: 'none' },
{ name: 'angular', value: 'angular' },
{ name: 'atom', value: 'atom' },
{ name: 'codemirror', value: 'codemirror' },
{ name: 'ember', value: 'ember' },
{ name: 'eslint', value: 'eslint' },
{ name: 'express', value: 'express' },
{ name: 'jquery', value: 'jquery' },
{ name: 'jshint', value: 'jshint' }
]
},
gitbook: {
type: 'confirm',
message: 'Setup gitbook documentaion?'
Expand Down
8 changes: 8 additions & 0 deletions template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
"babel-preset-es2015": "^6.1.18",
"babel-preset-es2015-rollup": "^1.0.0",
"babel-preset-es2015-rollup-vue": "^1.1.0",
{{#conventional}}
"conventional-changelog-cli": "^1.1.1",
"conventional-github-releaser": "^1.1.2",
{{/conventional}}
"eslint": "^2.8.0",
"eslint-config-vue": "^1.0.0",
"eslint-loader": "^1.3.0",
Expand Down Expand Up @@ -88,6 +92,10 @@
{{/unless_eq}}
"scripts": {
"build": "NODE_ENV=production node config/build.js",
{{#conventional}}
"changelog": "conventional-changelog -i CHANGELOG.md -s {{#unless_eq conventionalConfig "none"}}-p {{ conventionalConfig }}{{/unless_eq}}{{#if_eq conventionalConfig "none"}}-n ./config/convention.js{{/if_eq}}",
"release": "conventional-github-releaser {{#unless_eq conventionalConfig "none"}}-p {{ conventionalConfig }}{{/unless_eq}}{{#if_eq conventionalConfig "none"}}-n ./config/convention.js{{/if_eq}}",
{{/conventional}}
"clean": "rm -rf coverage && rm -rf dist/*.js*",
"dev": "webpack-dev-server --quiet --config config/webpack.dev.conf.js --host 0.0.0.0",
{{#gitbook}}
Expand Down

0 comments on commit 996a821

Please sign in to comment.