- Angular project created via Angular CLI v8.3.0 or greater.
-
run
ng add @netlify-builder/deployto add necessary dependencies. Once, it get installed,you will be prompted to enter (a) Site Id and (b) netlfy Token
-
run
ng deployassuming that you have Angular CLI installed globallyOR
add below script to
package.json"deploy":"ng deploy"
This repository contains an example of the Angular CLI Architect API.
You can find the Architect builder in the command-builder directory.
The sample application which uses the Architect builder is available under the builder-test directory.
MIT
- Move to command-builder and run the below command
yarn install- Run the below command to build the package
yarn build- run the below command to link the package
npm link
- Move to builder-test and run the below command
yarn install- Link the package
npm link @netlify-builder/deploy- Provide below config in angular.json
"deploy": {
"builder": "@netlify-builder/deploy:deploy",
"options": {
"command": "deploy",
"outputPath": "dist/builder-test",
"netlifyToken": "[tokenValue]",
"siteId": "[siteId]",
"args": [
"src/main.ts"
]
}
}- Test the command
ng run builder-test:deployLink to Step by Step Guide
Thanks goes to these wonderful people (emoji key):
Nitish Kumar Singh 💻 |
Shaikh-Ubaid 📖 |
Suraj Chandgude 💻 |
Santosh Yadav 💻 |
Alan Agius 💻 |
This project follows the all-contributors specification. Contributions of any kind welcome!
