Skip to content

sato1043/angular-webpack

 
 

Repository files navigation

angular-webpack

![Gitter](https://badges.gitter.im/Join Chat.svg)

Angular + Webpack build with Karma tests support

Install

git clone git@github.com:packetloop/angular-webpack.git
cd angular-webpack
npm install
npm start

Then

open http://localhost:8080

To run tests

npm run test-server

# and open another terminal, then
npm test

Coverage

open ./coverage/index.html

Features, TODO

  • Build basic Angular app with webpack
  • Couple of dependent modules Hello and Blah
  • Controller, directive and service for Hello module
  • Tests for HelloService, mocking HelloHelloService and BlahService
  • Tests for <hello> directive mocking HelloService
  • Tests for HelloController mocking HelloService
  • npm test script with CI-friendly karma + webpack run
  • Separate HTML template for <hello> + webpack build
  • Separate CSS for <hello> + webpack build
  • Embed images
  • Coverage report with full ES6 support
  • Multiple pages to load additional components asynchronously
  • ESLint npm run lint
  • ESLint loader for compile-time validation
  • FIX dynamic Angular modules loading (fixed in #2)
  • Allow to use HAML templates
  • BabelJS and full ES6/7 support
  • Running tests in PhantomJS

Demo build

http://packetloop.github.io/angular-webpack/dest/

Coverage

http://packetloop.github.io/angular-webpack/coverage/

About

Angular + Webpack build with Karma tests support

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 86.8%
  • HTML 8.0%
  • CSS 5.2%