aboutsummaryrefslogtreecommitdiffstats
path: root/build-helpers
diff options
context:
space:
mode:
authorLibravatar Stefan Malzner <stefan@adlk.io>2018-12-12 11:10:37 +0100
committerLibravatar Stefan Malzner <stefan@adlk.io>2018-12-12 11:10:37 +0100
commit73308038ab9fd2e04973b45a0ed250a42bb543ad (patch)
tree0318fdc2f2a323efdda99e8f394875930b7a2b0d /build-helpers
parentImprove loader themeing (diff)
downloadferdium-app-73308038ab9fd2e04973b45a0ed250a42bb543ad.tar.gz
ferdium-app-73308038ab9fd2e04973b45a0ed250a42bb543ad.tar.zst
ferdium-app-73308038ab9fd2e04973b45a0ed250a42bb543ad.zip
Simplify dictionary step
Diffstat (limited to 'build-helpers')
-rwxr-xr-xbuild-helpers/installDictionaries.js24
1 files changed, 0 insertions, 24 deletions
diff --git a/build-helpers/installDictionaries.js b/build-helpers/installDictionaries.js
deleted file mode 100755
index 8d209356e..000000000
--- a/build-helpers/installDictionaries.js
+++ /dev/null
@@ -1,24 +0,0 @@
1const { execSync } = require('child_process');
2const { SPELLCHECKER_LOCALES } = require('../build/i18n/languages');
3
4const path = './build/dictionaries';
5
6let packages = '';
7Object.keys(SPELLCHECKER_LOCALES).forEach((key) => { packages = `${packages} hunspell-dict-${key}`; });
8
9function exec(cmd) {
10 execSync(cmd,
11 (error, stdout, stderr) => {
12 console.log(`stdout: ${stdout}`);
13 console.log(`stderr: ${stderr}`);
14 if (error !== null) {
15 console.log(`exec error: ${error}`);
16 }
17 });
18}
19
20exec(`
21rm -rf ${path}
22npm install --prefix ${path} ${packages}
23mv ${path}/node_modules/* ${path}
24rm -rf ${path}/node_modules ${path}/package-lock.json`);