Skip to content
Permalink
Browse files

feat(build): create and expose prod build that starts the server via …

…rapid-build:prod:server
  • Loading branch information
jyounce committed Jul 17, 2015
1 parent 4acd8d3 commit b3d593c87ee94d05a669807c4b2217c33fa2e282
Showing with 10 additions and 8 deletions.
  1. +3 −2 README.md
  2. +1 −1 config/config-rb.coffee
  3. +6 −5 init/rapid.coffee
@@ -75,7 +75,7 @@ rapid().then(function() {
* Steps if you are using gulp.
* In your gulpfile.js init rapid-build and
* pass in gulp (pass in options too if you need customization).
* 3 build tasks become available after initializing rapid (see build modes).
* 4 build tasks become available after initializing rapid (see build modes).
* Build tasks are: 'rapid-build', 'rapid-build:dev', 'rapid-build:test' and 'rapid-build:prod'
* *********************************************************************************************/
var gulp = require('gulp')
@@ -85,11 +85,12 @@ require('rapid-build')(gulp, options)
// execute rapid via a gulp task dependency
gulp.task('default', ['rapid-build'])
// or from the terminal type one of the 3:
// or from the terminal type one of the 5:
gulp rapid-build
gulp rapid-build:dev
gulp rapid-build:test
gulp rapid-build:prod
gulp rapid-build:prod:server
```

## Options API
@@ -17,7 +17,7 @@ module.exports = (config, rbDir) ->
rb.tasks.dev = "#{rb.tasks.default}:dev"
rb.tasks.test = "#{rb.tasks.default}:test"
rb.tasks.prod = "#{rb.tasks.default}:prod"
# rb.tasks.prodServer = "#{rb.tasks.default}:prod:server"
rb.tasks.prodServer = "#{rb.tasks.default}:prod:server"

# prefixes
# ========
@@ -49,11 +49,12 @@ module.exports = (gulp, config) ->

# PROD SERVER: rapid-build:prod:server
# ====================================
# gulp.task config.rb.tasks.prodServer, [config.rb.tasks.prod], (cb) ->
# gulpSequence(
# "#{config.rb.prefix.task}start-server"
# cb
# ) -> defer.resolve()
gulp.task config.rb.tasks.prodServer, [config.rb.tasks.prod], (cb) ->
gulpSequence(
"#{config.rb.prefix.task}start-server"
"#{config.rb.prefix.task}open-browser"
cb
) -> defer.resolve()

# return
# ======

0 comments on commit b3d593c

Please sign in to comment.
You can’t perform that action at this time.