2017-07-13 11:14:55 +02:00
|
|
|
Firebase for docs.angularjs.org
|
|
|
|
|
===============================
|
|
|
|
|
|
2021-02-05 20:45:13 +02:00
|
|
|
This folder contains the Google Firebase scripts for the `docs.angularjs.org` setup.
|
|
|
|
|
|
|
|
|
|
See `/scripts/code.angularjs.org-firebase/readme.firebase.code.md` for the Firebase deployment to `code.angularjs.org`.
|
|
|
|
|
|
2018-02-12 10:49:19 +01:00
|
|
|
# Continuous integration
|
|
|
|
|
|
2021-02-05 21:00:44 +02:00
|
|
|
The docs are deployed to Google Firebase hosting and functions automatically via CI.
|
2018-02-12 10:49:19 +01:00
|
|
|
|
2021-02-05 20:45:13 +02:00
|
|
|
See `.circleci/config.yml` for the complete deployment config and build steps.
|
2018-02-12 10:49:19 +01:00
|
|
|
|
|
|
|
|
# Serving locally:
|
|
|
|
|
|
2021-02-05 21:00:44 +02:00
|
|
|
- Run `cd scripts/docs.angularjs.org-firebase`.
|
|
|
|
|
This changes the current working directory.
|
|
|
|
|
|
2020-05-24 09:31:20 +01:00
|
|
|
- Run `yarn grunt package`.
|
|
|
|
|
This builds the files that will be deployed.
|
|
|
|
|
|
|
|
|
|
- Run `yarn grunt prepareDeploy`.
|
2021-02-05 20:45:13 +02:00
|
|
|
This copies docs content files into `./deploy` and the partials for Search Engine AJAX Crawling into `./functions/content`.
|
2017-07-13 11:14:55 +02:00
|
|
|
|
2021-02-05 21:00:44 +02:00
|
|
|
- Run `$(yarn bin)/firebase emulators:start` (or `..\..\node_modules\.bin\firebase emulators:start` on Windows).
|
2021-02-05 20:45:13 +02:00
|
|
|
Creates a server at http://localhost:5000 that serves from `./deploy` and uses the local function.
|