Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/actionanand/ng-pug-demo
this angular project uses 'pug' for template.
https://github.com/actionanand/ng-pug-demo
angular-pug angular10 ng-cli-pug-loader pug
Last synced: about 1 month ago
JSON representation
this angular project uses 'pug' for template.
- Host: GitHub
- URL: https://github.com/actionanand/ng-pug-demo
- Owner: actionanand
- License: mit
- Created: 2022-08-28T09:02:47.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-08-28T14:01:51.000Z (over 2 years ago)
- Last Synced: 2024-04-25T00:58:16.462Z (9 months ago)
- Topics: angular-pug, angular10, ng-cli-pug-loader, pug
- Language: TypeScript
- Homepage: https://actionanand.github.io/ng-pug-demo
- Size: 1.15 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# NgPugDemo
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 10.2.4.
## Development server
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
## How to add `Pug` to Angular
At the root of your project, run
```bash
ng add ng-cli-pug-loader
```That's it, your project now supports pug 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 [Karma](https://karma-runner.github.io).
## Running end-to-end tests
Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
## Further help
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
## Resources
- [How To Create Better Angular Templates With Pug](https://www.smashingmagazine.com/2020/05/angular-templates-pug/)
- ['ng-cli-pug-loader' npm lib](https://www.npmjs.com/package/ng-cli-pug-loader)
- [How to deploy a React, Angular and Vue project to Github pages](https://deepinder.me/how-to-deploy-a-react-angular-vue-project-to-github-pages)