Skip to content

Commit

Permalink
feat(changlog): add changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
CaryLandholt committed Jun 9, 2014
1 parent 08e915a commit b0c900f
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.DS_Store
node_modules/
npm-debug.log
3 changes: 3 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.travis.yml
gulpfile.coffee
gulpfile.js
17 changes: 17 additions & 0 deletions gulpfile.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
CHANGELOG_FILE = 'CHANGELOG.md'

conventionalChangelog = require 'conventional-changelog'
fs = require 'fs'
gulp = require 'gulp'
gutil = require 'gulp-util'
pkg = require './package.json'

gulp.task 'changelog', ->
options =
repository: pkg.repository.url
version: pkg.version
file: CHANGELOG_FILE
log: gutil.log

conventionalChangelog options, (err, log) ->
fs.writeFile CHANGELOG_FILE, log
5 changes: 5 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// This file is a bridge between JavaScript and CoffeeScript

require('coffee-script').register();

module.exports = require('./gulpfile.coffee');
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
},
"dependencies": {
"chalk": "~0.4.0",
"coffee-script": "~1.7.1",
"coffee-script": "~1.7.1"
},
"devDependencies": {
"conventional-changelog": "~0.0.9",
Expand Down

0 comments on commit b0c900f

Please sign in to comment.