Skip to content
This repository has been archived by the owner on Jan 24, 2019. It is now read-only.

Commit

Permalink
fix(publisher): rename sub componenet stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasduteil committed Dec 29, 2013
1 parent 93ba905 commit 5dcdc37
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,12 @@ var fs = require('fs');

module.exports = function() {

//var modulesName = grunt.file.expand({ cwd: "modules" }, ["*","!utils.js"]);
var modulesName = fs.readdirSync(__dirname + '/modules');
var modulesName = fs.readdirSync(__dirname + '/dist/sub');

function makingComponentData(memo, name){
if(name === 'utils.js') return memo;

memo[name] = {
fullName : 'angular-ui-' + name,
main : './ui-' + name + '.js',
src : name + '.js'
memo[name] = {
name: 'angular-ui-' + name,
main: './' + name + '.js'
};

return memo;
Expand All @@ -38,7 +34,7 @@ module.exports = function() {


// The sub-components
subcomponent : modulesName.reduce(makingComponentData, {}),
subcomponents : modulesName.reduce(makingComponentData, {}),
// HACK...
sub_dist_dir: 'sub'
};
Expand Down

0 comments on commit 5dcdc37

Please sign in to comment.