Skip to content
Permalink
Browse files

perf(lib): boost performance by precompiling the lib folder's coffee …

…files into js files, package now ships with no coffee files
  • Loading branch information
jyounce committed Mar 30, 2016
1 parent 6235482 commit 6b356d9472c66da7c25af393f89f452316ab5220
Showing with 8,841 additions and 29 deletions.
  1. +4 −1 .gitignore
  2. +2 −0 .npmignore
  3. +12 −0 lib/bootstrap.js
  4. +36 −0 lib/config/config.js
  5. +70 −0 lib/config/configs/config-angular.js
  6. +17 −0 lib/config/configs/config-app.js
  7. +23 −0 lib/config/configs/config-bower.js
  8. +11 −0 lib/config/configs/config-browser.js
  9. +18 −0 lib/config/configs/config-build.js
  10. +231 −0 lib/config/configs/config-dist-and-src.js
  11. +96 −0 lib/config/configs/config-env.js
  12. +220 −0 lib/config/configs/config-exclude.js
  13. +71 −0 lib/config/configs/config-extra-compile.js
  14. +43 −0 lib/config/configs/config-extra-copy.js
  15. +10 −0 lib/config/configs/config-extra.js
  16. +33 −0 lib/config/configs/config-file-names.js
  17. +30 −0 lib/config/configs/config-generated.js
  18. +397 −0 lib/config/configs/config-globs.js
  19. +9 −0 lib/config/configs/config-http-proxy.js
  20. +70 −0 lib/config/configs/config-internal.js
  21. +57 −0 lib/config/configs/config-minify.js
  22. +108 −0 lib/config/configs/config-node_modules.js
  23. +374 −0 lib/config/configs/config-options.js
  24. +114 −0 lib/config/configs/config-order.js
  25. +13 −0 lib/config/configs/config-ports.js
  26. +45 −0 lib/config/configs/config-rb.js
  27. +14 −0 lib/config/configs/config-req.js
  28. +46 −0 lib/config/configs/config-spa.js
  29. +71 −0 lib/config/configs/config-temp.js
  30. +24 −0 lib/config/configs/config-templates.js
  31. +63 −0 lib/config/configs/config-test.js
  32. +21 −26 lib/gulpfile.js
  33. +137 −0 lib/helpers/Less.js
  34. +167 −0 lib/helpers/Sass.js
  35. +21 −0 lib/helpers/array.js
  36. +447 −0 lib/helpers/bower.js
  37. +33 −0 lib/helpers/config.js
  38. +137 −0 lib/helpers/dir.js
  39. +81 −0 lib/helpers/extra.js
  40. +32 −0 lib/helpers/file.js
  41. +56 −0 lib/helpers/format.js
  42. +44 −0 lib/helpers/isType.js
  43. +122 −0 lib/helpers/jasmine.js
  44. +16 −0 lib/helpers/log.js
  45. +39 −0 lib/helpers/module.js
  46. +68 −0 lib/helpers/path.js
  47. +9 −0 lib/helpers/promise.js
  48. +100 −0 lib/helpers/tasks.js
  49. +34 −0 lib/helpers/test.js
  50. +31 −0 lib/index.js
  51. +83 −0 lib/init/api.js
  52. +149 −0 lib/init/tasks.js
  53. +220 −0 lib/plugins/gulp-absolute-css-urls.js
  54. +40 −0 lib/plugins/gulp-ng-formify.js
  55. +4 −0 lib/src/server/defaults/app-middleware.js
  56. +20 −0 lib/src/server/defaults/app-routes.js
  57. +3 −0 lib/src/server/defaults/app-settings.js
  58. +57 −0 lib/src/server/init-server.js
  59. +18 −0 lib/src/server/options/http-proxy.js
  60. +1 −0 lib/src/server/server.js
  61. +7 −0 lib/src/server/start-server.js
  62. +12 −0 lib/src/server/stop-server.js
  63. +73 −0 lib/tasks/browser/browser-sync.js
  64. +26 −0 lib/tasks/browser/open-browser.js
  65. +25 −0 lib/tasks/build/build-angular-modules.js
  66. +33 −0 lib/tasks/build/build-bower-json.js
  67. +10 −0 lib/tasks/build/build-config.js
  68. +148 −0 lib/tasks/build/build-files.js
  69. +164 −0 lib/tasks/build/build-prod-files-blueprint.js
  70. +81 −0 lib/tasks/build/build-prod-files.js
  71. +91 −0 lib/tasks/build/build-spa.js
  72. +18 −0 lib/tasks/clean/clean-config.js
  73. +36 −0 lib/tasks/clean/clean-dist.js
  74. +18 −0 lib/tasks/clean/clean-files.js
  75. +48 −0 lib/tasks/clean/clean-rb-client.js
  76. +120 −0 lib/tasks/clean/cleanup-client.js
  77. +17 −0 lib/tasks/common/common-client.js
  78. +17 −0 lib/tasks/common/common-server.js
  79. +20 −0 lib/tasks/common/common-test-client.js
  80. +17 −0 lib/tasks/common/common-test-server.js
  81. +21 −0 lib/tasks/common/common.js
  82. +33 −0 lib/tasks/compile/coffee.js
  83. +35 −0 lib/tasks/compile/es6.js
  84. +111 −0 lib/tasks/compile/less.js
  85. +118 −0 lib/tasks/compile/sass.js
  86. +26 −0 lib/tasks/config/set-env-config.js
  87. +31 −0 lib/tasks/config/update-angular-mocks-config.js
  88. +70 −0 lib/tasks/copy/copy-bower_components.js
  89. +46 −0 lib/tasks/copy/copy-css.js
  90. +32 −0 lib/tasks/copy/copy-html.js
  91. +29 −0 lib/tasks/copy/copy-images.js
  92. +29 −0 lib/tasks/copy/copy-js.js
  93. +23 −0 lib/tasks/copy/copy-libs.js
  94. +21 −0 lib/tasks/copy/copy-server-config.js
  95. +74 −0 lib/tasks/copy/copy-server-node_modules.js
  96. +25 −0 lib/tasks/copy/copy-views.js
  97. +29 −0 lib/tasks/extra/compile-extra-coffee.js
  98. +27 −0 lib/tasks/extra/compile-extra-es6.js
  99. +27 −0 lib/tasks/extra/compile-extra-less.js
  100. +35 −0 lib/tasks/extra/compile-extra-sass.js
  101. +26 −0 lib/tasks/extra/copy-extra-files.js
  102. +99 −0 lib/tasks/format/absolute-css-urls.js
  103. +124 −0 lib/tasks/generate/generate-pkg.js
  104. +41 −0 lib/tasks/manage/bower.js
  105. +85 −0 lib/tasks/minify/cache-bust.js
  106. +85 −0 lib/tasks/minify/concat-scripts-and-styles.js
  107. +166 −0 lib/tasks/minify/css-file-split.js
  108. +37 −0 lib/tasks/minify/inline-css-imports.js
  109. +17 −0 lib/tasks/minify/minify-client.js
  110. +36 −0 lib/tasks/minify/minify-css.js
  111. +55 −0 lib/tasks/minify/minify-html.js
  112. +23 −0 lib/tasks/minify/minify-images.js
  113. +33 −0 lib/tasks/minify/minify-js.js
  114. +41 −0 lib/tasks/minify/minify-server.js
  115. +28 −0 lib/tasks/minify/minify-spa.js
  116. +103 −0 lib/tasks/minify/template-cache.js
  117. +118 −0 lib/tasks/server/find-open-port.js
  118. +27 −0 lib/tasks/server/nodemon.js
  119. +15 −0 lib/tasks/server/spawn-server.js
  120. +22 −0 lib/tasks/server/start-server.js
  121. +25 −0 lib/tasks/server/stop-server.js
  122. +116 −0 lib/tasks/test/client/build-client-test-files.js
  123. +39 −0 lib/tasks/test/client/build-inject-angular-mocks.js
  124. +30 −0 lib/tasks/test/client/clean-client-test-dist.js
  125. +25 −0 lib/tasks/test/client/clean-rb-client-test-src.js
  126. +54 −0 lib/tasks/test/client/copy-angular-mocks.js
  127. +83 −0 lib/tasks/test/client/copy-client-tests.js
  128. +187 −0 lib/tasks/test/client/run-client-tests.js
  129. +27 −0 lib/tasks/test/server/clean-server-test-dist.js
  130. +90 −0 lib/tasks/test/server/copy-server-tests.js
  131. +102 −0 lib/tasks/test/server/run-server-tests.js
  132. +13 −0 lib/tasks/watch/watch-build-spa.js
  133. +385 −0 lib/tasks/watch/watch.js
  134. +4 −2 package.json
  135. +52 −0 scripts/create-lib/create-lib.coffee
  136. +17 −0 scripts/create-lib/index.js
  137. 0 {lib → src}/bootstrap.coffee
  138. 0 {lib → src}/config/config.coffee
  139. 0 {lib → src}/config/configs/config-angular.coffee
  140. 0 {lib → src}/config/configs/config-app.coffee
  141. 0 {lib → src}/config/configs/config-bower.coffee
  142. 0 {lib → src}/config/configs/config-browser.coffee
  143. 0 {lib → src}/config/configs/config-build.coffee
  144. 0 {lib → src}/config/configs/config-dist-and-src.coffee
  145. 0 {lib → src}/config/configs/config-env.coffee
  146. 0 {lib → src}/config/configs/config-exclude.coffee
  147. 0 {lib → src}/config/configs/config-extra-compile.coffee
  148. 0 {lib → src}/config/configs/config-extra-copy.coffee
  149. 0 {lib → src}/config/configs/config-extra.coffee
  150. 0 {lib → src}/config/configs/config-file-names.coffee
  151. 0 {lib → src}/config/configs/config-generated.coffee
  152. 0 {lib → src}/config/configs/config-globs.coffee
  153. 0 {lib → src}/config/configs/config-http-proxy.coffee
  154. 0 {lib → src}/config/configs/config-internal.coffee
  155. 0 {lib → src}/config/configs/config-minify.coffee
  156. 0 {lib → src}/config/configs/config-node_modules.coffee
  157. 0 {lib → src}/config/configs/config-options.coffee
  158. 0 {lib → src}/config/configs/config-order.coffee
  159. 0 {lib → src}/config/configs/config-ports.coffee
  160. 0 {lib → src}/config/configs/config-rb.coffee
  161. 0 {lib → src}/config/configs/config-req.coffee
  162. 0 {lib → src}/config/configs/config-spa.coffee
  163. 0 {lib → src}/config/configs/config-temp.coffee
  164. 0 {lib → src}/config/configs/config-templates.coffee
  165. 0 {lib → src}/config/configs/config-test.coffee
  166. 0 {lib → src}/gulpfile.coffee
  167. 0 {lib → src}/helpers/Less.coffee
  168. 0 {lib → src}/helpers/Sass.coffee
  169. 0 {lib → src}/helpers/array.coffee
  170. 0 {lib → src}/helpers/bower.coffee
  171. 0 {lib → src}/helpers/config.coffee
  172. 0 {lib → src}/helpers/dir.coffee
  173. 0 {lib → src}/helpers/extra.coffee
  174. 0 {lib → src}/helpers/file.coffee
  175. 0 {lib → src}/helpers/format.coffee
  176. 0 {lib → src}/helpers/isType.coffee
  177. 0 {lib → src}/helpers/jasmine.coffee
  178. 0 {lib → src}/helpers/log.coffee
  179. 0 {lib → src}/helpers/module.coffee
  180. 0 {lib → src}/helpers/path.coffee
  181. 0 {lib → src}/helpers/promise.coffee
  182. 0 {lib → src}/helpers/tasks.coffee
  183. 0 {lib → src}/helpers/test.coffee
  184. +31 −0 src/index.js
  185. 0 {lib → src}/init/api.coffee
  186. 0 {lib → src}/init/tasks.coffee
  187. 0 {lib → src}/plugins/gulp-absolute-css-urls.coffee
  188. 0 {lib → src}/plugins/gulp-ng-formify.coffee
  189. 0 src/src/client/images/.gitkeep
  190. 0 src/src/client/scripts/.gitkeep
  191. +24 −0 src/src/client/spa.html
  192. 0 src/src/client/styles/.gitkeep
  193. 0 src/src/client/test/.gitkeep
  194. 0 src/src/client/views/.gitkeep
  195. 0 {lib → src}/src/server/defaults/app-middleware.coffee
  196. 0 {lib → src}/src/server/defaults/app-routes.coffee
  197. 0 {lib → src}/src/server/defaults/app-settings.coffee
  198. 0 {lib → src}/src/server/init-server.coffee
  199. 0 {lib → src}/src/server/options/http-proxy.coffee
  200. 0 {lib → src}/src/server/server.coffee
  201. 0 {lib → src}/src/server/start-server.coffee
  202. 0 {lib → src}/src/server/stop-server.coffee
  203. 0 src/src/server/test/.gitkeep
  204. 0 {lib → src}/tasks/browser/browser-sync.coffee
  205. 0 {lib → src}/tasks/browser/open-browser.coffee
  206. 0 {lib → src}/tasks/build/build-angular-modules.coffee
  207. 0 {lib → src}/tasks/build/build-bower-json.coffee
  208. 0 {lib → src}/tasks/build/build-config.coffee
  209. 0 {lib → src}/tasks/build/build-files.coffee
  210. 0 {lib → src}/tasks/build/build-prod-files-blueprint.coffee
  211. 0 {lib → src}/tasks/build/build-prod-files.coffee
  212. 0 {lib → src}/tasks/build/build-spa.coffee
  213. 0 {lib → src}/tasks/clean/clean-config.coffee
  214. 0 {lib → src}/tasks/clean/clean-dist.coffee
  215. 0 {lib → src}/tasks/clean/clean-files.coffee
  216. 0 {lib → src}/tasks/clean/clean-rb-client.coffee
  217. 0 {lib → src}/tasks/clean/cleanup-client.coffee
  218. 0 {lib → src}/tasks/common/common-client.coffee
  219. 0 {lib → src}/tasks/common/common-server.coffee
  220. 0 {lib → src}/tasks/common/common-test-client.coffee
  221. 0 {lib → src}/tasks/common/common-test-server.coffee
  222. 0 {lib → src}/tasks/common/common.coffee
  223. 0 {lib → src}/tasks/compile/coffee.coffee
  224. 0 {lib → src}/tasks/compile/es6.coffee
  225. 0 {lib → src}/tasks/compile/less.coffee
  226. 0 {lib → src}/tasks/compile/sass.coffee
  227. 0 {lib → src}/tasks/config/set-env-config.coffee
  228. 0 {lib → src}/tasks/config/update-angular-mocks-config.coffee
  229. 0 {lib → src}/tasks/copy/copy-bower_components.coffee
  230. 0 {lib → src}/tasks/copy/copy-css.coffee
  231. 0 {lib → src}/tasks/copy/copy-html.coffee
  232. 0 {lib → src}/tasks/copy/copy-images.coffee
  233. 0 {lib → src}/tasks/copy/copy-js.coffee
  234. 0 {lib → src}/tasks/copy/copy-libs.coffee
  235. 0 {lib → src}/tasks/copy/copy-server-config.coffee
  236. 0 {lib → src}/tasks/copy/copy-server-node_modules.coffee
  237. 0 {lib → src}/tasks/copy/copy-views.coffee
  238. 0 {lib → src}/tasks/extra/compile-extra-coffee.coffee
  239. 0 {lib → src}/tasks/extra/compile-extra-es6.coffee
  240. 0 {lib → src}/tasks/extra/compile-extra-less.coffee
  241. 0 {lib → src}/tasks/extra/compile-extra-sass.coffee
  242. 0 {lib → src}/tasks/extra/copy-extra-files.coffee
  243. 0 {lib → src}/tasks/format/absolute-css-urls.coffee
  244. 0 {lib → src}/tasks/generate/generate-pkg.coffee
  245. 0 {lib → src}/tasks/manage/bower.coffee
  246. 0 {lib → src}/tasks/minify/cache-bust.coffee
  247. 0 {lib → src}/tasks/minify/concat-scripts-and-styles.coffee
  248. 0 {lib → src}/tasks/minify/css-file-split.coffee
  249. 0 {lib → src}/tasks/minify/inline-css-imports.coffee
  250. 0 {lib → src}/tasks/minify/minify-client.coffee
  251. 0 {lib → src}/tasks/minify/minify-css.coffee
  252. 0 {lib → src}/tasks/minify/minify-html.coffee
  253. 0 {lib → src}/tasks/minify/minify-images.coffee
  254. 0 {lib → src}/tasks/minify/minify-js.coffee
  255. 0 {lib → src}/tasks/minify/minify-server.coffee
  256. 0 {lib → src}/tasks/minify/minify-spa.coffee
  257. 0 {lib → src}/tasks/minify/template-cache.coffee
  258. 0 {lib → src}/tasks/server/find-open-port.coffee
  259. 0 {lib → src}/tasks/server/nodemon.coffee
  260. 0 {lib → src}/tasks/server/spawn-server.coffee
  261. 0 {lib → src}/tasks/server/start-server.coffee
  262. 0 {lib → src}/tasks/server/stop-server.coffee
  263. 0 {lib → src}/tasks/test/client/build-client-test-files.coffee
  264. 0 {lib → src}/tasks/test/client/build-inject-angular-mocks.coffee
  265. 0 {lib → src}/tasks/test/client/clean-client-test-dist.coffee
  266. 0 {lib → src}/tasks/test/client/clean-rb-client-test-src.coffee
  267. 0 {lib → src}/tasks/test/client/copy-angular-mocks.coffee
  268. 0 {lib → src}/tasks/test/client/copy-client-tests.coffee
  269. 0 {lib → src}/tasks/test/client/run-client-tests.coffee
  270. 0 {lib → src}/tasks/test/server/clean-server-test-dist.coffee
  271. 0 {lib → src}/tasks/test/server/copy-server-tests.coffee
  272. 0 {lib → src}/tasks/test/server/run-server-tests.coffee
  273. 0 {lib → src}/tasks/watch/watch-build-spa.coffee
  274. 0 {lib → src}/tasks/watch/watch.coffee
  275. +6 −0 src/templates/angular-modules.tpl
  276. +5 −0 src/templates/inject-angular-mocks.tpl
@@ -34,13 +34,16 @@ node_modules/
extra/temp/**/*
generated/**/*
lib/src/client/**/*.*
src/src/client/**/*.*

# retain empty folder via .gitkeep
# ================================
!extra/temp/.gitkeep
!generated/.gitkeep
!lib/src/client/**/.gitkeep
!src/src/client/**/.gitkeep

# file negation
# =============
!lib/src/client/spa.html
!lib/src/client/spa.html
!src/src/client/spa.html
@@ -21,6 +21,8 @@ dist/
/changelog/
/docs/
/extra/
/scripts/
/src/
/test/

# root files
@@ -0,0 +1,12 @@
module.exports = function() {
var colors;
colors = require('colors');
colors.setTheme({
alert: 'yellow',
attn: ['cyan', 'bold'],
error: ['red', 'bold'],
info: 'cyan',
success: ['green', 'bold']
});
return colors;
};
@@ -0,0 +1,36 @@
module.exports = function(rbDir, options) {
var config, req;
config = {};
config.env = {};
config = require(rbDir + "/config/configs/config-req")(config, rbDir);
options = require(config.req.config + "/config-options")(config, options);
config = require(config.req.config + "/config-env")(config);
config = require(config.req.config + "/config-rb")(config, rbDir);
config = require(config.req.config + "/config-app")(config, options);
config = require(config.req.config + "/config-generated")(config);
config = require(config.req.config + "/config-build")(config, options);
config = require(config.req.config + "/config-ports")(config, options);
config = require(config.req.config + "/config-browser")(config, options);
config = require(config.req.config + "/config-minify")(config, options);
config = require(config.req.config + "/config-file-names")(config);
config = require(config.req.config + "/config-dist-and-src")(config, options);
config = require(config.req.config + "/config-angular")(config, options);
config = require(config.req.config + "/config-spa")(config, options);
config = require(config.req.config + "/config-exclude")(config, options);
config = require(config.req.config + "/config-extra")(config);
config = require(config.req.config + "/config-extra-copy")(config, options);
config = require(config.req.config + "/config-extra-compile")(config, options);
config = require(config.req.config + "/config-templates")(config);
config = require(config.req.config + "/config-temp")(config);
config = require(config.req.config + "/config-http-proxy")(config, options);
config = require(config.req.config + "/config-node_modules")(config, options);
config = require(config.req.config + "/config-order")(config, options);
config = require(config.req.config + "/config-globs")(config);
config = require(config.req.config + "/config-bower")(config, options);
config = require(config.req.config + "/config-test")(config, options);
config = require(config.req.config + "/config-internal")(config);
req = config.req;
delete config.req;
config.req = req;
return config;
};
@@ -0,0 +1,70 @@
module.exports = function(config, options) {
var angular, httpBackendDir, log, modules, path, removeRbMocksModule, test;
path = require('path');
log = require(config.req.helpers + "/log");
test = require(config.req.helpers + "/test")();
modules = ['ngMockE2E', 'ngResource', 'ngRoute', 'ngSanitize'];
if (options.exclude.angular.modules) {
modules.splice(1, modules.length - 1);
}
angular = {};
angular.ngFormify = options.angular.ngFormify || false;
httpBackendDir = options.angular.httpBackend.dir || 'mocks';
httpBackendDir = path.join(config.src.app.client.scripts.dir, httpBackendDir);
angular.httpBackend = {};
angular.httpBackend.dev = options.angular.httpBackend.dev || false;
angular.httpBackend.prod = options.angular.httpBackend.prod || false;
angular.httpBackend.enabled = false;
angular.httpBackend.dir = httpBackendDir;
angular.modules = options.angular.modules || [];
angular.modules = modules.concat(angular.modules);
angular.version = options.angular.version || '1.x';
angular.moduleName = options.angular.moduleName || 'app';
angular.templateCache = {};
angular.templateCache.dev = options.angular.templateCache.dev || false;
angular.templateCache.urlPrefix = options.angular.templateCache.urlPrefix || '';
angular.templateCache.useAbsolutePaths = options.angular.templateCache.useAbsolutePaths || false;
angular.bowerDeps = {
'angular': angular.version,
'angular-mocks': angular.version,
'angular-resource': angular.version,
'angular-route': angular.version,
'angular-sanitize': angular.version
};
removeRbMocksModule = function() {
return angular.modules.splice(0, 1);
};
angular.removeRbMocksModule = function() {
if (config.env.is.prod) {
if (!angular.httpBackend.prod) {
return removeRbMocksModule();
}
} else if (!angular.httpBackend.dev) {
return removeRbMocksModule();
}
};
angular.updateHttpBackendStatus = function() {
var enabled, httpBackendDev, httpBackendProd, isDefaultOrDev, isProd, isTest;
isDefaultOrDev = config.env.is["default"] || config.env.is.dev;
isProd = config.env.is.prod;
isTest = config.env.is.testClient;
httpBackendDev = angular.httpBackend.dev;
httpBackendProd = angular.httpBackend.prod;
if (isDefaultOrDev && httpBackendDev) {
enabled = true;
}
if (isProd && httpBackendProd) {
enabled = true;
}
if (isTest && httpBackendDev && !isProd) {
enabled = true;
}
if (isTest && httpBackendProd && isProd) {
enabled = true;
}
return config.angular.httpBackend.enabled = !!enabled;
};
config.angular = angular;
test.log('true', config.angular, 'add angular to config');
return config;
};
@@ -0,0 +1,17 @@
module.exports = function(config, options) {
var app, log, path, pkg, test;
path = require('path');
log = require(config.req.helpers + "/log");
test = require(config.req.helpers + "/test")();
pkg = require(config.req.app + "/package.json");
app = {};
app.name = pkg.name;
app.version = pkg.version;
app.dir = config.req.app;
if (!app.name) {
app.name = path.basename(app.dir);
}
config.app = app;
test.log('true', config.app, 'add app to config');
return config;
};
@@ -0,0 +1,23 @@
module.exports = function(config, options) {
var addInfo, bower, defaults, log, path, test;
path = require('path');
log = require(config.req.helpers + "/log");
test = require(config.req.helpers + "/test")();
defaults = {
file: 'bower.json'
};
bower = {};
bower.rb = {};
bower.app = {};
addInfo = function() {
return ['app', 'rb'].forEach(function(v) {
bower[v].file = defaults.file;
bower[v].dir = v === 'rb' ? config.generated.pkg.path : config[v].dir;
return bower[v].path = path.join(bower[v].dir, bower[v].file);
});
};
addInfo();
config.bower = bower;
test.log('true', config.bower, 'add bower to config');
return config;
};
@@ -0,0 +1,11 @@
module.exports = function(config, options) {
var browser, log, test;
log = require(config.req.helpers + "/log");
test = require(config.req.helpers + "/test")();
browser = {};
browser.open = options.browser.open === false ? false : true;
browser.reload = options.browser.reload === false ? false : true;
config.browser = browser;
test.log('true', config.browser, 'add browser to config');
return config;
};
@@ -0,0 +1,18 @@
module.exports = function(config, options) {
var build, log, test;
log = require(config.req.helpers + "/log");
test = require(config.req.helpers + "/test")();
build = {};
build.client = options.build.client === false ? false : true;
build.server = options.build.server === false ? false : true;
if (!(build.client || build.server)) {
process.on('exit', function() {
var msg;
msg = 'Atleast one build, client or server must be enabled.';
return console.error(msg.error);
}).exit(1);
}
config.build = build;
test.log('true', config.build, 'add build to config');
return config;
};

0 comments on commit 6b356d9

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