Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Commit e75cea9

Browse files
committed
chore(build): Fix dependencies causing duplicate modules, fix markdown
1 parent 5744a17 commit e75cea9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Diff for: Gruntfile.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,11 @@ module.exports = function(grunt) {
124124

125125
//Common ui.bootstrap module containing all modules for src and templates
126126
//findModule: Adds a given module to config
127+
var foundModules = {};
127128
function findModule(name) {
129+
if (foundModules[name]) { return; }
130+
foundModules[name] = true;
131+
128132
function breakup(text, separator) {
129133
return text.replace(/[A-Z]/g, function (match) {
130134
return separator + match;
@@ -150,7 +154,7 @@ module.exports = function(grunt) {
150154
dependencies: dependenciesForModule(name),
151155
docs: {
152156
md: grunt.file.expand("src/"+name+"/docs/*.md")
153-
.map(grunt.file.read).join("\n"),
157+
.map(grunt.file.read).map(markdown).join("\n"),
154158
js: grunt.file.expand("src/"+name+"/docs/*.js")
155159
.map(grunt.file.read).join("\n"),
156160
html: grunt.file.expand("src/"+name+"/docs/*.html")

0 commit comments

Comments
 (0)