Skip to content

Template com o conteúdo necessário para criar um projeto Angular moderno, utilizando o Typescript e com validações feitas pelo ESLint.

License

Notifications You must be signed in to change notification settings

main-casi/template-angular-ts-node

Repository files navigation

Angular Template with ESLint, Prettier, Cypress and Jest

  • This project was generated with Angular CLI version 10.2.3. But later I've upgraded it to angular 11 and then to 12, also by using Angular CLI with ng upgrade command.
  • I also changed the unit testing tool from jasmine/karma to jest.
  • And finally, changed e2e tests from protractor to cypress.

Development server

Run ng serve or maybe yarn start for a dev server. Then navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build.

Running unit tests

Run ng test to execute the unit tests via Jest instead of Angular's default testing tool: Karma. Both tools have similar (if not the same) syntax, but Jest is way faster.

Running end-to-end tests

Run ng e2e to build the project and open Cypress or you can run yarn cyr to just run end-to-end tests via cypress or you can also run yarn cyo to open cypress without building the project.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI Overview and Command Reference page.

About

Template com o conteúdo necessário para criar um projeto Angular moderno, utilizando o Typescript e com validações feitas pelo ESLint.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published