0.0.10 • Published 2 years ago

@joshmorony/nx-netlify v0.0.10

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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;
0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago