You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+18-5Lines changed: 18 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,11 +58,24 @@ To help with localization, please read the [TRANSLATION](TRANSLATION.md) guide.
58
58
59
59
## Serve/Build Options
60
60
61
-
*`DEFAULT_LOCALE={{locale}} npm run serve` builds only the files present in the specified locale folder (will display 404 status code if file is not present)
62
-
*`DEFAULT_LOCALE={{locale}} npm run serve -- --preserveLocale` builds the files present in the specified locale folder and adds the pages present in the English locale that are missing.
63
-
*`npm run serve` builds all languages and returns 404 when a file is not present in the current locale
64
-
*`npm run serve -- --preserveLocale` builds all languages and adds the pages present in the English locale that are missing.
65
-
* Multiple locales can be built by using comma separated values in the `DEFAULT_LOCALE` variable. i.e: `DEFAULT_LOCALE=en,es,it`
61
+
*`DEFAULT_LOCALE={{locale}} node build.js` builds all the translated files present in the locale folder (will display 404 status code if file is not present), the static/css folder for all the Sass files, as well as copy the rest of the static assets to their subfolder in the build directory.
62
+
*`DEFAULT_LOCALE={{locale}} node build.js --preserveLocale` the same as `node build.js` but it will add the pages present in the English locale that are missing instead of throwing 404 status code.
63
+
*`DEFAULT_LOCALE={{locale}} npm run serve` builds only the files present in the specified locale folder (will display 404 status code if file is not present), then start the default website (http://localhost:${port}/${mainLocale}). Here `{port}` is 8080, `{mainLocale}` is `en` or the first specified language.
64
+
*`DEFAULT_LOCALE={{locale}} npm run serve -- --preserveLocale` the same as `npm run serve ` but it will add the pages present in the English locale that are missing.
65
+
*`npm run serve` builds all the current languages and returns 404 when a file is not present in the current locale, then start the default website (http://localhost:${port}/${mainLocale}). Here `{port}` is 8080, `{mainLocale}` is `en` in default.
66
+
*`npm run serve -- --preserveLocale` the same as `npm run serve` but it will add the pages present in the English locale that are missing instead of throwing 404 status code.
67
+
68
+
## Test Options
69
+
70
+
Before submitting, you must pass all the unit tests and syntax checks by running the two commands below:
71
+
72
+
*`npm-run-all test:lint test:unit` run all the unit test cases in `tests` folder, as well as check syntax with eslint.
73
+
*`npm-run-all --parallel test:lint:*` run all the syntax checks for `js`, `md` and other related files.
74
+
75
+
## Notice
76
+
77
+
* Multiple locales can be built by using comma separated values in the `DEFAULT_LOCALE` variable. i.e: `DEFAULT_LOCALE=en,es,it`.
78
+
* For other 'Serve/Build Options' and 'Test Options', plese see `package.json` in details.
0 commit comments