This repository has been archived by the owner on Jan 24, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 547
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(publisher): add and config component-publisher system
- Loading branch information
1 parent
1836b40
commit 4cea7ea
Showing
5 changed files
with
77 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
bower_components/ | ||
node_modules/ | ||
out/ | ||
dist/ | ||
|
||
# don't track generated/copied html demo files | ||
demo/*.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/* jshint node:true */ | ||
|
||
'use strict'; | ||
|
||
var fs = require('fs'); | ||
|
||
module.exports = function() { | ||
|
||
//var modulesName = grunt.file.expand({ cwd: "modules" }, ["*","!utils.js"]); | ||
var modulesName = fs.readdirSync(__dirname + '/modules'); | ||
|
||
function makingComponentData(memo, name){ | ||
if(name === 'utils.js') return memo; | ||
|
||
memo[name] = { | ||
fullName : 'angular-ui-' + name, | ||
main : './ui-' + name + '.js', | ||
src : name + '.js' | ||
}; | ||
|
||
return memo; | ||
} | ||
|
||
return { | ||
// gh-pages stuff | ||
humaName : 'UI.Utils', | ||
repoName : 'ui-utils', | ||
inlineHTML : fs.readFileSync(__dirname + '/demo/demos.html'), | ||
inlineJS : fs.readFileSync(__dirname + '/demo/demo.js'), | ||
// gh-pages css dependencies | ||
// css : [] | ||
// gh-pages js dependencies | ||
js : ['dist/ui-utils.js'], | ||
|
||
|
||
// HACK... | ||
main_dist_dir: 'main', | ||
|
||
|
||
// The sub-components | ||
subcomponent : modulesName.reduce(makingComponentData, {}), | ||
// HACK... | ||
sub_dist_dir: 'sub' | ||
}; | ||
}; |