aboutsummaryrefslogtreecommitdiffstats
path: root/gulpfile.babel.js
diff options
context:
space:
mode:
authorLibravatar vantezzen <hello@vantezzen.io>2019-10-19 22:25:40 +0200
committerLibravatar vantezzen <hello@vantezzen.io>2019-10-19 22:25:40 +0200
commit64824a692f566a01cc208dd82239ad643b69093e (patch)
tree37ef1a1cfd30333a1d5d169a9f1febc973c9f532 /gulpfile.babel.js
parentMerge pull request #134 from getferdi/l10n_develop (diff)
downloadferdium-app-64824a692f566a01cc208dd82239ad643b69093e.tar.gz
ferdium-app-64824a692f566a01cc208dd82239ad643b69093e.tar.zst
ferdium-app-64824a692f566a01cc208dd82239ad643b69093e.zip
Use electron-spellchecker instead of electron-hunspell
Diffstat (limited to 'gulpfile.babel.js')
-rw-r--r--gulpfile.babel.js25
1 files changed, 0 insertions, 25 deletions
diff --git a/gulpfile.babel.js b/gulpfile.babel.js
index 4932d56f8..dda198c18 100644
--- a/gulpfile.babel.js
+++ b/gulpfile.babel.js
@@ -39,7 +39,6 @@ const paths = {
39 src: 'src', 39 src: 'src',
40 dest: 'build', 40 dest: 'build',
41 tmp: '.tmp', 41 tmp: '.tmp',
42 dictionaries: 'dictionaries',
43 package: `out/${config.version}`, 42 package: `out/${config.version}`,
44 recipes: { 43 recipes: {
45 src: 'recipes/*.tar.gz', 44 src: 'recipes/*.tar.gz',
@@ -194,29 +193,6 @@ export function webserver() {
194 ); 193 );
195} 194}
196 195
197export function dictionaries(done) {
198 const { SPELLCHECKER_LOCALES } = require('./build/i18n/languages');
199
200 let packages = '';
201 Object.keys(SPELLCHECKER_LOCALES).forEach((key) => {
202 packages = `${packages} hunspell-dict-${key}`;
203 });
204
205 _shell(
206 `npm install --prefix "${path.join(__dirname, 'temp')}" ${packages}`,
207 () => {
208 moveSync(
209 path.join(__dirname, 'temp', 'node_modules'),
210 path.join(__dirname, 'build', paths.dictionaries),
211 );
212
213 removeSync(path.join(__dirname, 'temp'));
214
215 done();
216 },
217 );
218}
219
220export function recipes() { 196export function recipes() {
221 return gulp.src(paths.recipes.src, { since: gulp.lastRun(recipes) }) 197 return gulp.src(paths.recipes.src, { since: gulp.lastRun(recipes) })
222 .pipe(gulp.dest(paths.recipes.dest)); 198 .pipe(gulp.dest(paths.recipes.dest));
@@ -230,7 +206,6 @@ const build = gulp.series(
230 clean, 206 clean,
231 gulp.parallel(mvSrc, mvPackageJson, mvLernaPackages), 207 gulp.parallel(mvSrc, mvPackageJson, mvLernaPackages),
232 gulp.parallel(html, scripts, styles, recipes, recipeInfo), 208 gulp.parallel(html, scripts, styles, recipes, recipeInfo),
233 dictionaries,
234); 209);
235export { build }; 210export { build };
236 211