@joshmorony/nx-netlify
TypeScript icon, indicating that this package has built-in type declarations

0.0.10 • Public • Published

nx-netlify

Usage

npm install netlify-cli@3.39.4 @joshmorony/nx-netlify --save-dev

Add the following target to your project in workspace.json:

"deploy": {
    "executor": "@joshmorony/nx-netlify:deploy",
    "options": {
        "siteId": "<your site id from Netlify>", // from the Netlify site you want to deploy to
        "deployDir": "public", // folder that contains the built output to be deployed
        "functionsDir": "functions", // optional, folder must contain only compiled lambda functions
    }
},

IMPORTANT: You will need to define a Personal access token from Netlify as NETLIFY_TOKEN in your .env file or otherwise you will need to pass it manually as an option through the executor using the auth option.

Trigger deploy:

nx deploy mysite

Supported options

siteId: string;
deployDir: string;
functionsDir?: string;
buildTarget?: string;
skipBuild?: boolean;
alias?: string;
auth?: string;
json?: boolean;
message?: string;
open?: boolean;
prod?: boolean;
prodIfUnlocked?: boolean;
skipFunctionsCache?: boolean;
timeout?: string;
debug?: boolean;
httpProxy?: string;
httpProxyCertificateFilename?: string;

Package Sidebar

Install

npm i @joshmorony/nx-netlify

Weekly Downloads

1

Version

0.0.10

License

MIT

Unpacked Size

12.9 kB

Total Files

12

Last publish

Collaborators

  • joshmorony