A complete, yet simple, starter for AngularJS using Webpack.
This workflow serves as a starting point for building AngularJS (1.x) applications using Webpack 4.x.
- Heavily commented webpack configuration with reasonable defaults.
- ES6, and ES7 support with babel.
- Source maps included in all builds.
- Development server with live reload.
- Production builds with cache busting.
- Testing environment using karma to run tests and jasmine as the framework.
- Code coverage when tests are run.
- No gulp and no grunt, just yarn scripts.
Warning: Make sure you're using the latest version of Node.js and Yarn
Clone/Download the repo then edit
app.jsinside/src/app/app.js
# clone our repo
$ git clone https://github.com/preboot/angularjs-webpack.git my-app
# change directory to your app
$ cd my-app
# install the dependencies with yarn
$ yarn
# start the server
$ yarn startgo to http://localhost:8080 in your browser.
What you need to run this app:
nodeandyarn(Use NVM)- Ensure you're running Node (
v4.1.x+) and Yarn (1.3.x+)
forkthis repocloneyour forkyarnto install all dependencies
- single run:
yarn run build - open
http://localhost:8080
- single run:
yarn test - live mode (TDD style):
yarn run test-watch
- build files
yarn run build