Socket
Socket
Sign inDemoInstall

@nx-extend/firebase-hosting

Package Overview
Dependencies
164
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @nx-extend/firebase-hosting


Version published
Maintainers
1
Created

Readme

Source

@nx-extend/firebase-hosting

@nx-extend/firebase-hosting NPM package

Nx plugin for deploy your app to Firebase Hosting.

Setup

Install

npm install -D @nx-extend/firebase-hosting
nx g @nx-extend/firebase-hosting:add

This will add the following to the target:

{
  ...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:

{
  ...other firebase config
  "hosting": [
    {
      "target": "<provided site name>",
      "public": "<target dist directory>",
      "ignore": [
        "firebase.json",
        "**/.*",
        "**/node_modules/**"
      ]
    }
  ]
}

Usage

Deploy

Available options:
nametypedefaultdescription
--sitestringnullSpecify the site to deploy from the .firebase.json
--projectstringFirebase Project to deploy to
--identifierstringName of the hosting project in Firebase (if not defined --site is used by the firebase CLI

FAQs

Last updated on 07 May 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc