forked from TriPSs/nx-extend
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(firebase-hosting): Added documentation and improve implementation
- Loading branch information
Showing
7 changed files
with
119 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
{ | ||
"singleQuote": true | ||
"singleQuote": true, | ||
"semi": false, | ||
"trailingComma": "none" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,30 @@ | ||
# Nx-extend | ||
# NX-extend | ||
|
||
<p align="center"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-logo.png" width="450"></p> | ||
|
||
🔎 **Nx-extend is a set of Extensible Dev Tools for Monorepos.** | ||
🔎 **NX-extend is a set of tools to help your NX project.** | ||
|
||
## Nx-extend adds the following capabilities to your workspace | ||
|
||
- [GCP Cloud Run](https://cloud.google.com/) | ||
- [GCP Cloud Run](./packages/gcp-cloud-run/README.md) | ||
- `npm install --save-dev @nx-extend/gcp-cloud-run` | ||
- [GCP Deployment Manager](https://cloud.google.com/) | ||
- [GCP Deployment Manager](./packages/gcp-deployment-manager/README.md) | ||
- `npm install --save-dev @nx-extend/gcp-deployment-manager` | ||
- [GCP Functions](https://cloud.google.com/) | ||
- [GCP Functions](./packages/gcp-functions/README.md) | ||
- `npm install --save-dev @nx-extend/gcp-functions` | ||
- [GCP Secrets](https://cloud.google.com/) | ||
- [GCP Secrets](./packages/gcp-secrets/README.md) | ||
- `npm install --save-dev @nx-extend/gcp-secrets` | ||
- [GCP Storage](https://cloud.google.com/) | ||
- [GCP Storage](./packages/gcp-storage/README.md) | ||
- `npm install --save-dev @nx-extend/gcp-storage` | ||
- [Firebase Hosting](https://firebase.google.com/products/hosting) | ||
- [Firebase Hosting](./packages/firebase-hosting/README.md) | ||
- `npm install --save-dev @nx-extend/firebase-hosting` | ||
- [Translations](#) | ||
- [Translations](./packages/translations/README.md) | ||
- `npm install --save-dev @nx-extend/translations` | ||
- [Strapi](./packages/strapi/README.md) | ||
- `npm install --save-dev @nx-extend/strapi` | ||
|
||
## [License](./LICENSE) | ||
|
||
## GCP Cloud Run | ||
> TODO | ||
Build and deploy your application to Cloud Run. | ||
|
||
## GCP Deployment Manager | ||
> TODO | ||
Manage your Google Cloud resources create, update and delete them. | ||
|
||
## GCP Functions | ||
> TODO | ||
Build and deploy Google Cloud Functions, includes a runner generator to run http / pub-sub functions locally. | ||
|
||
## GCP Secrets | ||
> TODO | ||
Manage your Google Cloud secrets through easy to use JSON files, you can encrypt, decrypt and deploy secrets. | ||
|
||
## GCP Storage | ||
> TODO | ||
Upload your app / files to Google Cloud Storage | ||
|
||
## Firebase Hosting | ||
> TODO | ||
Upload your app to Firebase Hosting. | ||
Conventional Changelog Action is [MIT licensed](./LICENSE). | ||
|
||
## Translations | ||
> TODO | ||
## Collaboration | ||
|
||
Translate your apps, extracts translations and uploads them (Transifex and Traduora supported). | ||
If you have questions or [issues](https://github.com/TriPSs/nx-extend/issues), please [open an issue](https://github.com/TriPSs/nx-extend/issues/new)! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,60 @@ | ||
# NX - Firebase Hosting | ||
# @nx-extend/firebase-hosting | ||
|
||
Upload your project to Firebase Hosting | ||
<a href="https://www.npmjs.com/package/@nx-extend/firebase-hosting" rel="nofollow"> | ||
<img src="https://badgen.net/npm/v/@nx-extend/firebase-hosting" alt="@nx-extend/firebase-hosting NPM package"> | ||
</a> | ||
|
||
**Nx plugin for deploy your app to [Firebase Hosting](https://firebase.google.com/products/hosting)**. | ||
|
||
## Setup | ||
|
||
### Install | ||
|
||
```sh | ||
npm install -D @nx-extend/firebase-hosting | ||
nx g @nx-extend/firebase-hosting:add | ||
``` | ||
|
||
This will add the following to the target: | ||
|
||
```json | ||
{ | ||
...other targets | ||
"deploy": { | ||
"executor": "@nx-extend/firebase-hosting:deploy", | ||
"options": { | ||
"site": "<site provided in setup>" | ||
} | ||
} | ||
} | ||
``` | ||
|
||
And create a `.firebase.json` file if it does not exist already, if it exists it will | ||
add this target to the hosting section: | ||
|
||
```json | ||
{ | ||
...other firebase config | ||
"hosting": [ | ||
{ | ||
"target": "<provided site name>", | ||
"public": "<target dist directory>", | ||
"ignore": [ | ||
"firebase.json", | ||
"**/.*", | ||
"**/node_modules/**" | ||
] | ||
} | ||
] | ||
} | ||
``` | ||
|
||
## Usage | ||
|
||
### Deploy | ||
|
||
#### Available options: | ||
|
||
| name | type | default | description | | ||
| ------------ | -------- | ------- | ---------------------------------------------------- | | ||
| **`--site`** | `string` | `null` | specify the site to deploy from the `.firebase.json` | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
{ | ||
"$schema": "http://json-schema.org/schema", | ||
"cli": "nx", | ||
"title": "Deploy executor", | ||
"description": "", | ||
"type": "object", | ||
"properties": { | ||
"site": { | ||
"type": "string" | ||
"type": "string", | ||
"description": "Site name in Firebase Hosting" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters