Before proceeding:
- •Ensure nvm (Node Version Manager) and Node.js are installed using the
install-nodejsskill.
- •
Run
npm install -g @angular/cli && ng update @angular/core @angular/clito install or update to the latest Angular CLI globally. - •
Verify installation by running
ng versionand ensure the Angular CLI version is the latest available version. - •
Create a new project by running
ng new <project-name>and follow the prompts to set up the project with the desired configuration.- •Use
CSSfor stylesheet format. - •Do NOT enable server side rendering
- •Use
- •
Use the latest stable version of
tailwindcssas adevDependency. Refer to the documentation at https://tailwindcss.com/docs.- •To install run
ng add tailwindcssand confirm any prompts. This is equivalent to doing the following (assert these things were done):- •
npm install -D tailwindcss @tailwindcss/postcss postcss - •Configure
.postcssrc.jsonwith the following content:
code{ "plugins": { "@tailwindcss/postcss": {} } }- •
src/styles.cssshould contain@import "tailwindcss";
- •
- •To install run
- •
Create a
netlify.tomlfile in the root of the Angular project directory with the following content:code[[redirects]] from = "/*" to = "/index.html" status = 200
After complete:
- •Ensure prettier is installed using the
install-prettierskill. - •For further Angular development tasks (generating components, services, implementing features), use the
angular-frontend-developeragent