Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
use common readManifest implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
dfreedm committed Oct 22, 2013
1 parent da87c82 commit c3a8217
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,7 @@
* license that can be found in the LICENSE file.
*/
module.exports = function(grunt) {

// recursive module builder
var path = require('path');
function readManifest(filename, modules) {
modules = modules || [];
var lines = grunt.file.readJSON(filename);
var dir = path.dirname(filename);
lines.forEach(function(line) {
var fullpath = path.join(dir, line);
if (line.slice(-5) == '.json') {
// recurse
readManifest(fullpath, modules);
} else {
modules.push(fullpath);
}
});
return modules;
}
var readManifest = require('../tools/loader/readManifest.js');

CustomElements = readManifest('build.json');
grunt.initConfig({
Expand Down

0 comments on commit c3a8217

Please sign in to comment.