Skip to content
Permalink
Browse files

feat(option): add build option exclude.angular.modules

  • Loading branch information
jyounce committed Sep 3, 2015
1 parent be00da8 commit a457e8efe18c1972f7784954d30b2b280fe1c1c2
Showing with 8 additions and 5 deletions.
  1. +1 −0 README.md
  2. +1 −0 config/config-angular.coffee
  3. +6 −5 config/config-options.coffee
@@ -141,6 +141,7 @@ gulp rapid-build:test:prod
# minify.spa.file = (boolean) defaults to true = for prod build, minify the spa.html file
# minify.cacheBust = (boolean) defaults to true = for prod build, ensures the user always receives the latest files, adds an md5 checksum to the client files before their extension
# exclude.angular.files = (boolean) defaults to false = set to true to exclude the angular files that come with rapid-build from dist (lib and modules)
# exclude.angular.modules = (boolean) defaults to false = set to true to exclude injecting the angular modules that come with rapid-build ['ngResource', 'ngRoute', 'ngSanitize']
# exclude.from.cacheBust = (array of strings) = file paths: exclude files from the cache bust
# exclude.from.minFile[scripts|styles] = (array of strings) = file paths: exclude script or style files from automatically being generated in the scripts.min.js or styles.min.css file
# exclude.from.spaFile[scripts|styles] = (array of strings) = file paths: exclude script or style files from automatically being generated in the spa.html file
@@ -7,6 +7,7 @@ module.exports = (config, options) ->
# order matters because of 'ngMockE2E'
# ====================================
modules = ['ngMockE2E', 'ngResource', 'ngRoute', 'ngSanitize']
modules.splice 1, modules.length - 1 if options.exclude.angular.modules

# init angular
# ============
@@ -80,11 +80,12 @@ module.exports = (config, options) ->
options.exclude = {} if not isType.object options.exclude
options.exclude.angular = {} if not isType.object options.exclude.angular
options.exclude.from = {} if not isType.object options.exclude.from
options.exclude.angular.files = null if not isType.boolean options.exclude.angular.files
options.exclude.from.cacheBust = null if not isType.array options.exclude.from.cacheBust
options.exclude.from.minFile = {} if not isType.object options.exclude.from.minFile
options.exclude.from.spaFile = {} if not isType.object options.exclude.from.spaFile
options.exclude.from.dist = {} if not isType.object options.exclude.from.dist
options.exclude.angular.files = null if not isType.boolean options.exclude.angular.files
options.exclude.angular.modules = null if not isType.boolean options.exclude.angular.modules
options.exclude.from.cacheBust = null if not isType.array options.exclude.from.cacheBust
options.exclude.from.minFile = {} if not isType.object options.exclude.from.minFile
options.exclude.from.spaFile = {} if not isType.object options.exclude.from.spaFile
options.exclude.from.dist = {} if not isType.object options.exclude.from.dist
options.exclude.from.minFile.scripts = null if not isType.array options.exclude.from.minFile.scripts
options.exclude.from.minFile.styles = null if not isType.array options.exclude.from.minFile.styles
options.exclude.from.spaFile.scripts = null if not isType.array options.exclude.from.spaFile.scripts

0 comments on commit a457e8e

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