diff --git a/src/commands/build.js b/src/commands/build.js index fb652ec..4a1dcb2 100644 --- a/src/commands/build.js +++ b/src/commands/build.js @@ -23,12 +23,14 @@ function createIndex() { var dirPath = rootify(dirName); var walker = walk(dirPath); walker.on('file', function(dir, stats, next) { - var path = unroot(dir + '/' + stats.name).replace(/\.js$/, ''); - var name = inflector.objectify(path.replace(dirName, '')); - modules.push({ - objectName: name, - path: path - }); + if (stats.name.charAt(0) !== '.') { + var path = unroot(dir + '/' + stats.name).replace(/\.js$/, ''); + var name = inflector.objectify(path.replace(dirName, '')); + modules.push({ + objectName: name, + path: path + }); + } next(); }); }); diff --git a/src/commands/precompile.js b/src/commands/precompile.js index f809970..ffe31fa 100644 --- a/src/commands/precompile.js +++ b/src/commands/precompile.js @@ -41,12 +41,14 @@ function getTemplates(source, callback) { var walker = walk(source); walker.on('file', function(dir, stats, next) { - var path = dir + '/' + stats.name; - var name = path.replace(/\.handlebars$/, '').replace(source + '/', ''); - templates.push({ - name: name, - content: fs.readFileSync(path).toString() - }); + if (stats.name.charAt(0) !== '.') { + var path = dir + '/' + stats.name; + var name = path.replace(/\.handlebars$/, '').replace(source + '/', ''); + templates.push({ + name: name, + content: fs.readFileSync(path).toString() + }); + } next(); });