grunt-systemjs-builder
Advanced tools
Comparing version 0.2.3 to 0.2.4
{ | ||
"name": "grunt-systemjs-builder", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"description": "grunt task for building projects based on systemjs", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -18,19 +18,7 @@ module.exports = function (grunt) { | ||
builder.config({baseURL: options.baseURL}); | ||
if (options.configFile) { | ||
var orgConfig = builder.config.bind(builder); | ||
builder.config = function (cfg) { //need to do this to allow dynamic base url from grunt build to override the base url in the config file | ||
if (cfg.baseURL) { //this is ugly but no choice because builder.loadConfig will override the baseURL provided in the config | ||
delete cfg.baseURL; | ||
} | ||
orgConfig(cfg); | ||
}; | ||
} | ||
} | ||
if (options.configFile) { | ||
builder.loadConfig(options.configFile) //load external config file if one specified | ||
var ignoreBaseUrlInConfFile = !!options.configFile; | ||
builder.loadConfig(options.configFile, false, ignoreBaseUrlInConfFile) //load external config file if one specified - instr | ||
.then(_build.bind(this, builder, options, done)) | ||
@@ -37,0 +25,0 @@ .catch(function (err) { |
@@ -12,6 +12,6 @@ module.exports = function (grunt) { | ||
minify: false, | ||
sfx: true, | ||
build:{ | ||
encodeNames: false | ||
} | ||
sfx: false | ||
//build:{ | ||
// encodeNames: false | ||
//} | ||
}, | ||
@@ -18,0 +18,0 @@ files: [{ |
@@ -5,2 +5,3 @@ { | ||
"description": "example of using the builder", | ||
"private": true, | ||
"main": "gruntfile.js", | ||
@@ -7,0 +8,0 @@ "scripts": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9940
129