Include gulp compile task

This commit is contained in:
Juan Cruz Viotti 2014-12-30 09:44:03 -04:00
parent 5cc1b88e47
commit ddcec9dbd9
3 changed files with 34 additions and 16 deletions

2
.gitignore vendored
View File

@ -26,3 +26,5 @@ build/Release
# Commenting this out is preferred by some people, see
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git-
node_modules
build/

View File

@ -1,6 +1,7 @@
path = require('path')
gulp = require('gulp')
mocha = require('gulp-mocha')
coffee = require('gulp-coffee')
markedMan = require('gulp-marked-man')
coffeelint = require('gulp-coffeelint')
mochaNotifierReporter = require('mocha-notifier-reporter')
@ -16,6 +17,7 @@ OPTIONS =
man: 'man/**/*.md'
directories:
man: 'man/'
build: 'build/'
gulp.task 'man', ->
gulp.src(OPTIONS.files.man)
@ -28,6 +30,15 @@ gulp.task 'test', ->
reporter: mochaNotifierReporter.decorate('landing')
}))
gulp.task 'coffee', ->
gulp.src(OPTIONS.files.app)
.pipe(coffee())
.pipe(gulp.dest(OPTIONS.directories.build))
gulp.task 'json', ->
gulp.src(OPTIONS.files.json)
.pipe(gulp.dest(OPTIONS.directories.build))
gulp.task 'lint', ->
gulp.src(OPTIONS.files.coffee)
.pipe(coffeelint({
@ -35,6 +46,11 @@ gulp.task 'lint', ->
}))
.pipe(coffeelint.reporter())
gulp.task 'compile', [
'coffee'
'json'
]
gulp.task 'build', [
'lint'
'test'

View File

@ -28,26 +28,26 @@
"license": "MIT",
"devDependencies": {
"chai": "~1.9.2",
"mocha": "~2.0.1",
"gulp-mocha": "~1.1.1",
"gulp": "~3.8.9",
"coffee-script": "~1.8.0",
"mocha-notifier-reporter": "~0.1.0",
"gulp-coffeelint": "~0.4.0",
"nock": "~0.48.2",
"mock-fs": "~2.3.2",
"chai-as-promised": "~4.1.1",
"chai-string": "~1.1.0",
"chai-things": "~0.2.0",
"codo": "~2.0.9",
"coffee-script": "~1.8.0",
"gulp": "~3.8.9",
"gulp-coffee": "^2.2.0",
"gulp-coffeelint": "~0.4.0",
"gulp-marked-man": "~0.3.1",
"gulp-mocha": "~1.1.1",
"gulp-util": "~3.0.1",
"mocha": "~2.0.1",
"mocha-notifier-reporter": "~0.1.0",
"mock-fs": "~2.3.2",
"nock": "~0.48.2",
"ronn": "~0.4.0",
"run-sequence": "~1.0.2",
"sinon": "~1.12.1",
"sinon-chai": "~2.6.0",
"gulp-coffee": "~2.2.0",
"gulp-util": "~3.0.1",
"run-sequence": "~1.0.2",
"chai-string": "~1.1.0",
"codo": "~2.0.9",
"ronn": "~0.4.0",
"through2": "~0.6.3",
"gulp-marked-man": "~0.3.1"
"through2": "~0.6.3"
},
"dependencies": {
"request": "~2.47.0",