fix(spellcheck): Don’t include cld sources in build

This commit is contained in:
Ben Gotow 2016-10-20 13:45:22 -07:00
parent ccbd717c6e
commit a4c04b30ee

View file

@ -144,11 +144,12 @@ module.exports = (grunt) ->
ignoredPaths.push "#{escapeRegExp(path.sep)}linker\\.lock$"
ignoredPaths.push "#{escapeRegExp(path.join('build', 'Release') + path.sep)}.+\\.node\\.dSYM"
# Hunspell dictionaries are only not needed on OS X.
if process.platform is 'darwin'
ignoredPaths.push path.join('spellchecker', 'vendor', 'hunspell_dictionaries')
# https://github.com/paulcbetts/node-cld#warning
ignoredPaths.push path.join('@paulcbetts', 'cld', 'deps', 'cld')
ignoredPaths = ignoredPaths.map (ignoredPath) -> "(#{ignoredPath})"
testFolderPattern = new RegExp("#{escapeRegExp(path.sep)}te?sts?#{escapeRegExp(path.sep)}")
exampleFolderPattern = new RegExp("#{escapeRegExp(path.sep)}examples?#{escapeRegExp(path.sep)}")