Git Product home page Git Product logo

spitfiresatya / angular-6-starter Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 774 KB

Angular 6 starter project which includes an all-in-one code quality report (build analysis, tslint, accessibility, jscpd, unit test coverage), along with implementation of HMR, Jest, AoT, and a sample lazy loded module.

License: MIT License

JavaScript 47.55% TypeScript 49.88% HTML 2.17% CSS 0.40%
angular6 angular hmr lazy-loading accessibility tslint jscpd jest aot karma

angular-6-starter's Introduction

Angular-6-Starter with code quality reports

This is a customized Angular 6 project starter with which includes the following features:

  • Hot module Replacement
  • Ahead-of-Time Compilation
  • Lazy Loading
  • Webpack Bundle Analyzer
  • TSLint Html report
  • Accessibility Html report
  • Code Duplicity Html report (with git integration)
  • Unit test with Jest as well as Karma
  • A custimized integrated dashboard of above mentioned reports

This project was generated with Angular CLI version 6.1.0.

Development server

Run npm run start for a dev server(with AoT). Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Run npm run hmr for a dev server(with AoT and HMR). Navigate to http://localhost:4200/. Hot Module Reload is the ability of the application to update itself when the source code is changed — without full page reload.

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 npm run build to build the project. The build artifacts will be stored in the dist/ directory.
Run npm run build:prod to build the project for production(AoT and build optimizer enabled).

Running unit tests

Run npm run test to execute the unit tests via Karma.
Run npm run jest to execute the unit tests via Jest.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor.

Code Quality Reports

Run npm run build:html to generate a static webpack bundle analyzer report.
Report location: reports/build

Run npm run lint:html to generate a json and html lint report.
Report location: reports/tslint-html-report

Run npm run jscpd:html to generate a json and html duplicity report.
Report location: reports/code-duplicity

Run npm run accessibility:html to generate a json and html accessibility report.
Report location: reports/accessibility

Run npm run test or npm run jest to generate unit test coverage report.
Report location: reports/coverage or reports/jest

Run npm run compliance to execute all quality reports and create a dashboard.
Report Location: reports/compliance

Lazy Loading

The stater contains a sample lazy loaded module with a component showing the compliance script in action.
Run npm run start, navigate to http://localhost:4200 and click on Lazy loaded in navbar to see it in action.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.

angular-6-starter's People

Contributors

spitfiresatya avatar

Watchers

 avatar  avatar

Forkers

timnape

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.