Add bash script for committing sync updates

Also fix copy/paste typo in package.json
This commit is contained in:
chrisgarrity 2018-11-26 16:44:05 -05:00
parent c286f62d69
commit 0f1dafef0e
2 changed files with 16 additions and 1 deletions

View file

@ -6,7 +6,7 @@
"browser": "./src/index.js", "browser": "./src/index.js",
"bin": { "bin": {
"build-i18n-src": "./scripts/build-i18n-src.js", "build-i18n-src": "./scripts/build-i18n-src.js",
"sync-tx-src": "./scripts/build-i18n-src.js" "sync-tx-src": "./scripts/sync_tx_src.js"
}, },
"scripts": { "scripts": {
"build:data": "babel-node scripts/build-data", "build:data": "babel-node scripts/build-data",

15
scripts/sync_tx.sh Normal file
View file

@ -0,0 +1,15 @@
#!/bin/bash
# script for syncing translations from transifex and comitting the changes.
git checkout master
npm run sync:editor
npm run test
git add .
git commit -m "pull new editor translations from Transifex"
git push