updated build and release tasks

This commit is contained in:
Torkel Ödegaard
2015-01-04 17:51:48 +01:00
parent 55bc150701
commit 5a3d3f5098
4 changed files with 10 additions and 4 deletions
+3
View File
@@ -13,6 +13,7 @@ module.exports = function (grunt) {
config.mode = grunt.option('mode') || 'standalone';
config.modeOptions = {
zipSuffix: '',
requirejs: {
paths: { config: '../config.sample' },
excludeConfig: true,
@@ -20,6 +21,8 @@ module.exports = function (grunt) {
};
if (config.mode === 'backend') {
grunt.log.writeln('Setting backend build mode');
config.modeOptions.zipSuffix = '-backend';
config.modeOptions.requirejs.path = { config: 'components/config' };
config.modeOptions.requirejs.excludeConfig = true;
}