Skip to content

Commit

Permalink
chore(build): Fix dependencies causing duplicate modules, fix markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
ajoslin committed Apr 16, 2013
1 parent 5744a17 commit e75cea9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,11 @@ module.exports = function(grunt) {

//Common ui.bootstrap module containing all modules for src and templates
//findModule: Adds a given module to config
var foundModules = {};
function findModule(name) {
if (foundModules[name]) { return; }
foundModules[name] = true;

function breakup(text, separator) {
return text.replace(/[A-Z]/g, function (match) {
return separator + match;
Expand All @@ -150,7 +154,7 @@ module.exports = function(grunt) {
dependencies: dependenciesForModule(name),
docs: {
md: grunt.file.expand("src/"+name+"/docs/*.md")
.map(grunt.file.read).join("\n"),
.map(grunt.file.read).map(markdown).join("\n"),
js: grunt.file.expand("src/"+name+"/docs/*.js")
.map(grunt.file.read).join("\n"),
html: grunt.file.expand("src/"+name+"/docs/*.html")
Expand Down

0 comments on commit e75cea9

Please sign in to comment.