From ac0862c5e671badb73fe7bb81cf686beaa5dd076 Mon Sep 17 00:00:00 2001 From: JC Brand Date: Tue, 28 Oct 2014 17:43:39 +0100 Subject: [PATCH] Add config for creating non-minified builds. refs #251 --- Gruntfile.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Gruntfile.js b/Gruntfile.js index e3470db16..956f3ba31 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -99,10 +99,15 @@ module.exports = function(grunt) { done(); }; exec('./node_modules/requirejs/bin/r.js -o src/build.js && ' + + './node_modules/requirejs/bin/r.js -o src/build.js optimize=none out=builds/converse.js && ' + './node_modules/requirejs/bin/r.js -o src/build-no-locales-no-otr.js && ' + + './node_modules/requirejs/bin/r.js -o src/build-no-locales-no-otr.js optimize=none out=builds/converse-no-locales-no-otr.js && ' + './node_modules/requirejs/bin/r.js -o src/build-no-otr.js &&' + + './node_modules/requirejs/bin/r.js -o src/build-no-otr.js optimize=none out=builds/converse-no-otr.js && ' + './node_modules/requirejs/bin/r.js -o src/build-website-no-otr.js &&' + './node_modules/requirejs/bin/r.js -o src/build-website.js', callback); + // XXX: It might be possible to not have separate build config files. For example: + // 'r.js -o src/build.js paths.converse-dependencies=src/deps-no-otr paths.locales=locale/nolocales out=builds/converse-no-locales-no-otr.min.js' }); grunt.registerTask('minify', 'Create a new release', ['cssmin', 'jsmin']);