From 90a2d19833e4b88f1987d6ec54b71d246506d693 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Wed, 11 Dec 2013 17:23:32 +0100 Subject: [PATCH 1/1] integration wip: configurable output dir path for grunt build task --- Gruntfile.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 4d929f6..f338192 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -3,13 +3,18 @@ module.exports = function(grunt) { 'use strict'; + var build_output_dir = grunt.option('output-dir') || 'build', + less_files = {}; + + less_files[build_output_dir + '/rng.css'] = 'src/editor/styles/main.less'; + grunt.initConfig({ requirejs: { compile: { options: { baseUrl: 'src/editor', mainConfigFile: 'src/editor/entrypoint.js', - out: 'build/rng.js', + out: build_output_dir + '/rng.js', name: 'entrypoint', include: ['libs/require'] } @@ -21,9 +26,7 @@ module.exports = function(grunt) { paths: [''], yuicompress: true }, - files: { - 'build/rng.css': 'src/editor/styles/main.less' - }, + files: less_files, }, }, jshint: { -- 2.20.1