Merge pull request #1499 from matrix-org/dbkr/i18n_script

Add i18n script to package.json
pull/21833/head
David Baker 2017-10-19 11:18:29 +01:00 committed by GitHub
commit 17c610559f
2 changed files with 5 additions and 1 deletions

View File

@ -28,11 +28,13 @@
"test" "test"
], ],
"bin": { "bin": {
"reskindex": "scripts/reskindex.js" "reskindex": "scripts/reskindex.js",
"matrix-gen-i18n": "scripts/gen-i18n.js"
}, },
"scripts": { "scripts": {
"reskindex": "node scripts/reskindex.js -h header", "reskindex": "node scripts/reskindex.js -h header",
"reskindex:watch": "node scripts/reskindex.js -h header -w", "reskindex:watch": "node scripts/reskindex.js -h header -w",
"i18n": "matrix-gen-i18n",
"build": "npm run reskindex && babel src -d lib --source-maps --copy-files", "build": "npm run reskindex && babel src -d lib --source-maps --copy-files",
"build:watch": "babel src -w -d lib --source-maps --copy-files", "build:watch": "babel src -w -d lib --source-maps --copy-files",
"emoji-data-strip": "node scripts/emoji-data-strip.js", "emoji-data-strip": "node scripts/emoji-data-strip.js",

2
scripts/gen-i18n.js Normal file → Executable file
View File

@ -1,3 +1,5 @@
#!/usr/bin/env node
/* /*
Copyright 2017 New Vector Ltd Copyright 2017 New Vector Ltd