Launch Week Day 1: Socket for Jira Is Now Available.Learn More
Socket
Book a DemoSign in
Socket

@joshmorony/nx-netlify-deploy

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@joshmorony/nx-netlify-deploy

This plugin has been adapted from: https://github.com/ngx-builders/netlify-builder

latest
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

nx-netlify-deploy

This plugin has been adapted from: https://github.com/ngx-builders/netlify-builder

This library was generated with Nx.

Usage

This custom executor will allow you to build and deploy your code to Netlify and it will also allow you to specify a functions folder to upload to Netlify at the same time.

npm install @joshmorony/nx-netlify-deploy

Add a deploy target in workspace.json for your project:

"deploy": {
    "executor": "@joshmorony/nx-netlify-deploy:deploy",
    "options": {
        "outputPath": "apps/yourproject/public",
        "functionsPath": "apps/yourproject/functions",
        "siteId": "SITEID-FROM-NETLIFY"
    }
},

Add your Netlify Token to a .env file at the root of your project (make sure this file is not committed to your Git repo):

NETLIFY_TOKEN=xxxxxxxxxxxxxxxxxxxxxxx

Running unit tests

Run nx test nx-netlify-deploy to execute the unit tests via Jest.

FAQs

Package last updated on 15 Jun 2021

Did you know?

Socket

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