hubot-bingo
Version:
A hubot script that plays Buzzword bingo
48 lines (39 loc) • 949 B
text/coffeescript
gulp = require('gulp')
$ = require('gulp-load-plugins')(lazy: false)
paths =
changelog: 'CHANGELOG.md'
lint: [
'./gulpfile.coffee'
'./src/**/*.coffee'
]
watch: [
'./gulpfile.coffee'
'./src/**/*.coffee'
'./test/**/*.coffee'
'!test/{temp,temp/**}'
]
tests: [
'./test/**/*.coffee'
'!test/{temp,temp/**}'
]
gulp.task 'lint', ->
gulp.src paths.lint
.pipe $.coffeelint('./coffeelint.json')
.pipe $.coffeelint.reporter()
gulp.task 'test', ['lint'], ->
gulp.src paths.tests
.pipe $.mocha()
gulp.task 'watch', ['test'], ->
gulp.watch paths.watch, ['test']
gulp.task 'changelog', ->
options = {}
context = {}
gitRawCommitsOpts = {}
parserOpts = {}
writerOpts =
'commitsSort': 'date'
gulp.src paths.changelog
.pipe $.conventionalChangelog(options, context, gitRawCommitsOpts, parserOpts, writerOpts)
.pipe gulp.dest './'
gulp.task 'default', ['test']