comparison client/README.md @ 1802:70573eea890e

improve Translation process : improve package.json and update the documentation * update vue-gettext dependency * add script to automate the `make translations` process via yarn serve/build * delete run:both, it misses the step in serve/build * update the Documention according to the last changes
author Fadi Abbud <fadi.abbud@intevation.de>
date Tue, 15 Jan 2019 09:50:59 +0100
parents 76e9296d6191
children 72d6fcb2147d
comparison
equal deleted inserted replaced
1801:11669276e197 1802:70573eea890e
1 N.N 1 N.N
2 === 2 ===
3 3
4 * Install dependencies 4 * Install dependencies
5
6 * Install (`xgettext`) tool (e.g. for Debian xgettext (GNU gettext-tools) 0.19.8.1)
5 7
6 * Javascript 8 * Javascript
7 9
8 `yarn install` 10 `yarn install`
9 11
19 21
20 * Javascript 22 * Javascript
21 23
22 Run webpack-dev-server with `yarn serve` 24 Run webpack-dev-server with `yarn serve`
23 25
24 * If you also want to start the backend, try
25
26 `yarn run:both`
27
28 * Build `yarn build` 26 * Build `yarn build`
29 27
30 builds the production ready assets to `web` folder. 28 builds the production ready assets to `web` folder.
31 29
32 * Build `yarn build-demo` 30 * Build `yarn build-demo`
33 sets the hg revision as a node env var and builds the production ready assets to `web` folder. 31 sets the hg revision as a node env var and builds the production ready assets to `web` folder.
34 32
35 * Translation 33 * Translation
36 * Extract Messages via `make makemessages` 34 * Extract Messages via `make makemessages`
37 * Translations are converted via `make translations` 35 * Translations are converted via `make translations` which is executed automatically with yarn serve/build
38 36
39 For more information see [developer documentation](./docs/developer.md) 37 For more information see [developer documentation](./docs/developer.md)
40 38
41 * Tests 39 * Tests
42 * Unit tests are started via `yarn test:unit` 40 * Unit tests are started via `yarn test:unit`