Implement gulp release task

This commit is contained in:
Juan Cruz Viotti 2014-12-30 13:12:18 -04:00
parent e029a713b4
commit 2ea25dc871
2 changed files with 12 additions and 7 deletions

View File

@ -1,10 +1,13 @@
mkdirp = require('mkdirp')
path = require('path')
gulp = require('gulp')
mocha = require('gulp-mocha')
coffee = require('gulp-coffee')
markedMan = require('gulp-marked-man')
coffeelint = require('gulp-coffeelint')
shell = require('gulp-shell')
mochaNotifierReporter = require('mocha-notifier-reporter')
packageJSON = require('./package.json')
OPTIONS =
config:
@ -30,7 +33,7 @@ gulp.task 'test', ->
reporter: mochaNotifierReporter.decorate('landing')
}))
gulp.task 'coffee', ->
gulp.task 'coffee', [ 'test', 'lint' ], ->
gulp.src(OPTIONS.files.app)
.pipe(coffee())
.pipe(gulp.dest(OPTIONS.directories.build))
@ -46,10 +49,12 @@ gulp.task 'lint', ->
}))
.pipe(coffeelint.reporter())
gulp.task 'compile', [
'coffee'
'json'
]
gulp.task 'release', [ 'coffee', 'json' ], ->
mkdirp.sync('build/Release')
gulp.src('')
.pipe(shell "jx package app.js Release/#{packageJSON.name} -native", {
cwd: path.join(process.cwd(), OPTIONS.directories.build)
})
gulp.task 'build', [
'lint'

View File

@ -38,6 +38,7 @@
"gulp-coffeelint": "~0.4.0",
"gulp-marked-man": "~0.3.1",
"gulp-mocha": "~1.1.1",
"gulp-shell": "^0.2.11",
"gulp-util": "~3.0.1",
"mocha": "~2.0.1",
"mocha-notifier-reporter": "~0.1.0",
@ -46,8 +47,7 @@
"ronn": "~0.4.0",
"run-sequence": "~1.0.2",
"sinon": "~1.12.1",
"sinon-chai": "~2.6.0",
"through2": "~0.6.3"
"sinon-chai": "~2.6.0"
},
"dependencies": {
"request": "~2.47.0",