Skip to content
This repository has been archived by the owner on Jan 21, 2019. It is now read-only.

packetloop/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 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/