Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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)