Skip to content
Permalink
Browse files

fix(gulp): load gulp from app's node_modules if present

  • Loading branch information
Judd Younce
Judd Younce committed May 28, 2015
1 parent 68bc16c commit 91cd0adcaf5c9d556d6a1836b5b76c4fbcf72f55
Showing with 7 additions and 1 deletion.
  1. +7 −1 gulpfile.coffee
@@ -1,8 +1,14 @@
# rapid sequence
# ==============
module.exports = (options={}) ->
# try to load gulp from app's node_modules directory
# if it isn't there, load it from rapid-build's node_modules
# ==========================================================
try
gulp = require '../gulp'
catch e
gulp = require 'gulp'
rbDir = __dirname
gulp = require 'gulp'
bootstrap = require("#{rbDir}/bootstrap")()
config = require("#{rbDir}/config") rbDir, options
tasks = require("#{config.req.init}/tasks") gulp, config

0 comments on commit 91cd0ad

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