netlify-schematics

3.2.0Β β€’Β PublicΒ β€’Β Published

πŸ’™ 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

  1. Sign up for a Netlify account if you don't have one already: https://app.netlify.com/signup

  2. 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 production ng 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's dist/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! πŸ‘©πŸ»β€πŸ’»

toshmagosh coding schematics

Readme

Keywords

Package Sidebar

Install

npm i netlify-schematics

Weekly Downloads

14

Version

3.2.0

License

MIT

Unpacked Size

16.4 kB

Total Files

15

Last publish

Collaborators

  • tzmanics