forked from DeckerSU/insight-ui-komodo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgrunt_install.sh
executable file
·26 lines (20 loc) · 1.08 KB
/
grunt_install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
# Installation steps needed to install grunt and successfully compile translations:
npm install "grunt"
npm install "grunt-contrib-uglify"
npm install "grunt-contrib-concat"
npm install "grunt-contrib-watch"
npm install "grunt-css"
npm install "grunt-markdown"
npm install "grunt-macreload"
npm install "grunt-angular-gettext"
npm install "bower"
./node_modules/.bin/bower install
# extract: ./node_modules/.bin/grunt nggettext_extract
# This action will create a template.pot file in po/ folder. You can open it with some PO editor (Poedit).
# Read this http://angular-gettext.rocketeer.be/dev-guide/translate/ guide to learn how to edit/update/import PO files from a generated POT file.
# PO file will be generated inside po/ folder.
# If you make new changes, simply run grunt compile again to generate a new .pot template
# and the angular javascript js/translations.js. Then (if use Poedit), open .po file and choose update from POT File from Catalog menu.
# Don't forget to add your language in public/src/js/controllers/footer.js (!)
# launch: ./node_modules/.bin/grunt compile