Generator Webpack Angular
Yeoman generator for building Single Page Apps with AngularJS, ES6, Webpack.
Generator
What's included in details over here
Stack
CSS preprocessors
UI Frameworks
Modules
Doc generator
Package Managers
Usage
Install
yo
:
Install required tools $ npm install -g yo
generator-webpack-angular
:
Install $ npm install generator-webpack-angular
Run
Create a new directory, and go into:
$ mkdir my-new-project && cd my-new-project
yo webpack-angular
, and select desired technologies:
Run $ yo webpack-angular
Use NPM scripts
npm start
to launchnpm run server
andjson-server
(if checked) in parallelnpm run serve
to launch a webpack-dev-server server on your source filesnpm run serve:prod
to launch a webpack-dev-server server on your source files in a production environmentnpm run build
to build an optimized version of your application in /dist + docs generationnpm run build:prod
to build an optimized version of your application in /dist in a production environment + docs generationnpm run test
to launch your unit tests with Karmanpm run lint
to launch linting processnpm run sonar:reporters
to create the linters reporters for SonarQube plugin (Only if it was chosen)npm run json-server
to start a json-server (Only if it was chosen)
Changelog
Roadmap
- How to call REST APIs ? ($resource, Restangular)
- Handle environments
- angular-translate support
- UI Router as default router
- CSS preprocessors (CSS, Sass, Less)
- Angular modules choice (angular-animate, angular-touch, ...)
- UI Frameworks choice (angular-material, bootstrap)
- Linters (ESLint, HTMLHint, SASSLint, CSSLint)
- PostCSS integration
- Mock server REST API with json-server
- Sonar reporters
- Ask user for application name
- Unit tests with Karma and Mocha
- Code coverage
- Landing page post generation
- Dgeni to generate documentation
License
MIT License
Copyright (c) 2016 Groupe SII