component-builder
Advanced tools
Comparing version 0.9.2 to 0.10.0
0.10.0 / 2013-10-17 | ||
================== | ||
* add native json support to scripts | ||
0.9.2 / 2013-09-12 | ||
@@ -3,0 +8,0 @@ ================== |
@@ -56,3 +56,4 @@ /** | ||
fonts: [], | ||
templates: [] | ||
templates: [], | ||
json: [] | ||
}; | ||
@@ -460,2 +461,3 @@ | ||
batch.push(this.buildScripts.bind(this)); | ||
batch.push(this.buildJson.bind(this)); | ||
batch.push(this.buildTemplates.bind(this)); | ||
@@ -471,6 +473,7 @@ batch.push(this.buildAliases.bind(this)); | ||
var scripts = res.shift(); | ||
var json = res.shift(); | ||
var templates = res.shift(); | ||
var require = res.shift(); | ||
var templates = res.shift(); | ||
var custom = self._js; | ||
var js = [scripts, require, templates, custom].filter(empty).join('\n') | ||
var js = [scripts, json, templates, require, custom].filter(empty).join('\n'); | ||
@@ -824,2 +827,15 @@ fn(null, { | ||
/** | ||
* Build JSON and invoke `fn(err, js)`. | ||
* | ||
* @param {Function} fn | ||
* @api private | ||
*/ | ||
Builder.prototype.buildJson = function(fn){ | ||
this.buildType('json', fn, function(builder, file, str){ | ||
return register(builder, file, 'module.exports = ' + str); | ||
}); | ||
}; | ||
/** | ||
* Build templates and invoke `fn(err, str)` | ||
@@ -826,0 +842,0 @@ * |
{ | ||
"name": "component-builder", | ||
"version": "0.9.2", | ||
"version": "0.10.0", | ||
"description": "Component build tool", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
30084
901