diff --git a/build/tasks/build-task.coffee b/build/tasks/build-task.coffee index e4ff2578c..1484b6a07 100644 --- a/build/tasks/build-task.coffee +++ b/build/tasks/build-task.coffee @@ -1,5 +1,6 @@ fs = require 'fs' path = require 'path' +_ = require 'underscore-plus' module.exports = (grunt) -> {cp, isAtomPackage, mkdir, rm} = require('./task-helpers')(grunt) @@ -48,16 +49,22 @@ module.exports = (grunt) -> path.join('bootstrap', 'docs') path.join('bootstrap', 'examples') path.join('pegjs', 'examples') - # Add .* to avoid matching hunspell_dictionaries. - path.join('spellchecker', 'vendor', 'hunspell', '.*') + path.join('plist', 'tests') path.join('xmldom', 'test') path.join('jasmine-reporters', 'ext') path.join('build', 'Release', 'obj.target') + path.join('build', 'Release', 'obj') path.join('build', 'Release', '.deps') path.join('vendor', 'apm') path.join('resources', 'mac') path.join('resources', 'win') ] + ignoredPaths = ignoredPaths.map (ignoredPath) -> _.escapeRegExp(ignoredPath) + + # Add .* to avoid matching hunspell_dictionaries. + ignoredPaths.push "#{_.escapeRegExp(path.join('spellchecker', 'vendor', 'hunspell') + path.sep)}.*" + ignoredPaths.push "#{_.escapeRegExp(path.join('build', 'Release') + path.sep)}.*\\.pdb" + # Hunspell dictionaries are only not needed on OS X. if process.platform is 'darwin' ignoredPaths.push path.join('spellchecker', 'vendor', 'hunspell_dictionaries')