Package Exports
- @netlify-builder/deploy
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@netlify-builder/deploy) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Angular CLI Deployment to netlify
Deploy your Angular app to Netlify directly from the Angular CLI! 🚀
How to use?
npm i @netlify-builder/deploy
ng run [PROJECT_NAME]:deploy
Options
Add the below configuration on your angular.json
:
- netlifyToken : token provided by netlify, generate one from netlify.
- siteId: siteId for your application, every site has unique siteId.
- outputPath: path where your build will be generated.
"deploy": {
"builder": "@netlify-builder/deploy:deploy",
"options": {
"command": "deploy",
"outputPath": "dist/[PROJECT_NAME]",
"netlifyToken": "tokenValue",
"siteId": "siteId"
}
}
License
MIT