Skip to content
Permalink
Browse files

fix(prod build): do not start the server

  • Loading branch information
jyounce committed Jul 16, 2015
1 parent a80bf17 commit 4acd8d336aae9227ac329d0ed4fdcdf71e87e430
Showing with 23 additions and 16 deletions.
  1. +0 −1 README.md
  2. +7 −6 config/config-rb.coffee
  3. +16 −9 init/rapid.coffee
@@ -190,7 +190,6 @@ gulp rapid-build:prod
5. minify the spa.html file
6. cache bust the files (client)
7. minify server js files
8. start the server

## Develop Rapidly!
![Shake and Bake!](docs/shake-and-bake.jpg "Shake n' Bake!")
@@ -10,13 +10,14 @@ module.exports = (config, rbDir) ->
rb.version = pkg.version
rb.dir = rbDir

# tasks
# =====
# api tasks
# =========
rb.tasks = {}
rb.tasks.default = 'rapid-build'
rb.tasks.dev = "#{rb.tasks.default}:dev"
rb.tasks.test = "#{rb.tasks.default}:test"
rb.tasks.prod = "#{rb.tasks.default}:prod"
rb.tasks.default = 'rapid-build'
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"

# prefixes
# ========
@@ -5,8 +5,8 @@ module.exports = (gulp, config) ->
gulpSequence = require('gulp-sequence').use gulp
defer = q.defer()

# rapid-build (default)
# =====================
# DEFAULT: rapid-build
# ====================
gulp.task config.rb.tasks.default, ["#{config.rb.prefix.task}common"], (cb) ->
gulpSequence(
"#{config.rb.prefix.task}build-spa"
@@ -15,8 +15,8 @@ module.exports = (gulp, config) ->
cb
) -> defer.resolve()

# rapid-build:dev
# ===============
# DEV: rapid-build:dev
# ====================
gulp.task config.rb.tasks.dev, ["#{config.rb.prefix.task}common"], (cb) ->
gulpSequence(
"#{config.rb.prefix.task}build-spa"
@@ -26,8 +26,8 @@ module.exports = (gulp, config) ->
cb
) -> defer.resolve()

# rapid-build:test
# ================
# TEST: rapid-build:test
# ======================
gulp.task config.rb.tasks.test, ["#{config.rb.prefix.task}common"], (cb) ->
gulpSequence(
"#{config.rb.prefix.task}copy-tests"
@@ -36,18 +36,25 @@ module.exports = (gulp, config) ->
cb
) -> defer.resolve()

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

# 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()

# return
# ======
defer.promise

0 comments on commit 4acd8d3

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