netlify-schematics
v3.2.0
Published
Netlify Schematics just for you π
Downloads
30
Readme
π Netlify Schematics for Angular β¨
This project exists to help you integrate Netlify into your Angular project and make your development process a little bit easier β₯.
o(*οΎ β οΎ)οΎ Here are two important steps to get started
Sign up for a Netlify account if you don't have one already: https://app.netlify.com/signup
Install the Netlify CLI globally:
npm install netlify-cli -g
What These Schematics (currently) Do
For now, this schematic will generate a Netlify configuration file (netlify.toml
) that will help aid in the deployment process and it will log you in to Netlify. Then you can run Netlify CLI commands like:
netlify init
: which will set your project up in Netlify and set up CI/CD if your project has a git repo
netlify deploy
: to manually deploy your project
netlify open
: that will open your projects' Netlify dashboard
Adding Netlify Schematics
To add these schematics simply run the following command in your Angular project:
ng add netlify-schematics
You'll be prompted to add a few bits of information:
- project's build command: for Angular projects this is usually
ng build
or for productionng build --prod
. - directory of your build project: when you run your build command where does the built project live (for Angular it's
/dist/<project name>
for Angular + Scully prerender it'sdist/static
) - amend or overwrite?: in case you already have a
netlify.toml
file you can choose to either amend the build command and project directory or overwrite the whole file.
π¨ Please Note: If you amend but already have these properties it will cause an error. Also, none of these properties are required to make the file. If you do not add them the file will still be generated, but will have blank spots where your answers would be.
Cool, cool, cool?
Want to add anything? Be my guest! Have any questions? Those go here or feel free to reach out on Twitter. Hope this helps, happy coding! π©π»βπ»