Skip to content

Commit 199a170

Browse files
Add instructions for build process to README.
1 parent 80a3e3e commit 199a170

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -670,6 +670,15 @@ npm run build
670670

671671
This will create output files in the `dist/` folder.
672672

673+
To build a localized JavaScript binary, run:
674+
```bash
675+
npm run build build-js-{LANGUAGE_CODE}
676+
```
677+
where `{LANGUAGE_CODE}` is replaced by the
678+
[code of the language you want](LANGUAGES.md). For example, the French binary
679+
can be built with `npm run build build-js-fr`. This will create a binary
680+
`firebaseui__fr.js` in the `dist/` folder.
681+
673682
### Running the demo app
674683

675684
To run the demo app, you must have a Firebase project set up on the

gulpfile.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ function makeDefaultFile(fileName) {
208208
}
209209

210210
// Bundles the FirebaseUI JS with its dependencies for all locales.
211+
// Generates the gulp tasks build-js-de, build-js-fr, etc.
211212
const buildJsTasks = repeatTaskForAllLocales('build-js-$',
212213
['build-firebaseui-js-$'], (locale) => {
213214
const localeForFileName = getLocaleForFileName(locale);

0 commit comments

Comments
 (0)