From 5b6fe70b7ebf370e7f13ee01ced27c919a71990c Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Thu, 27 Mar 2014 19:28:26 +0800 Subject: [PATCH] Ship with hunspell dictionaries on Linux and Windows. --- build/tasks/build-task.coffee | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build/tasks/build-task.coffee b/build/tasks/build-task.coffee index ef6c6c270..46df41855 100644 --- a/build/tasks/build-task.coffee +++ b/build/tasks/build-task.coffee @@ -47,7 +47,8 @@ module.exports = (grunt) -> path.join('less', 'test') path.join('bootstrap', 'docs') path.join('bootstrap', 'examples') - path.join('spellchecker', 'vendor') + # Add .* to avoid matching hunspell_dictionaries. + path.join('spellchecker', 'vendor', 'hunspell', '.*') path.join('xmldom', 'test') path.join('jasmine-reporters', 'ext') path.join('build', 'Release', 'obj.target') @@ -56,6 +57,9 @@ module.exports = (grunt) -> path.join('resources', 'mac') path.join('resources', 'win') ] + # Hunspell dictionaries are only not needed on OS X. + if process.platform is 'darwin' + ignoredPaths.push path.join('spellchecker', 'vendor', 'hunspell_dictionaries') ignoredPaths = ignoredPaths.map (ignoredPath) -> "(#{ignoredPath})" nodeModulesFilter = new RegExp(ignoredPaths.join('|')) packageFilter = new RegExp("(#{ignoredPaths.join('|')})|(.+\\.(cson|coffee)$)")