Blacklist space pen docs from making it into our docs.

This commit is contained in:
Ben Ogle
2014-11-19 14:15:43 -08:00
parent 7fd9c75d24
commit bfc7995aee

View File

@@ -6,12 +6,18 @@ _ = require 'underscore-plus'
donna = require 'donna'
tello = require 'tello'
moduleBlacklist = [
'space-pen'
]
module.exports = (grunt) ->
getClassesToInclude = ->
modulesPath = path.resolve(__dirname, '..', '..', 'node_modules')
classes = {}
fs.traverseTreeSync modulesPath, (modulePath) ->
return false if modulePath.match(/node_modules/g).length > 1 # dont need the dependencies of the dependencies
for moduleName in moduleBlacklist
return false if path.basename(modulePath) is moduleName
return true unless path.basename(modulePath) is 'package.json'
return true unless fs.isFileSync(modulePath)