(Webpack, ES2015, Express, Sass, Babel)
It is a full stack project for AngularJS web application which objects is:
- Webpack build and bundle all the assests.
- Provide easy to use extensibility with npm managers;
- Mockup server for your application;
- Supports ES2015 using Babel
- Supports SASS for styling you application
- Using Firebase
- Create a new folder for your project, and clone this repo inside it
git clone https://github.com/sonujose/DevelopingNodes.git
-
You need to have node and npm installed on your system,
npm version should be grater than 3.x
[2.x version may create issues in loading some dependencies]. To update npm version runnpm install npm@latest -g
-
Install webpack if you don't have it already. Need webpack cli for running the application
npm install --global webpack
- Install all npm dependencies
npm install
- Run the server (Both static files and api server)
npm start
- Build the application (webpack --watch)
npm test
-
Wait untill webpack bundles all your files and server, App will open at
http://localhost:8080
-
Congratulations!!! Your app is running.
Here webpack is used for bundling the js files. webpack.config.js
file bundles the entire js files into two modules 'app' and 'vendor'. The bundles are then minified and used as reference in index.html
.
The output of bundled files are in the app/dist
folder. If you need to test webpack bundling just run command webpack
All the js files inside app support es2015 , used babel loader as the transpiler for es2015. you can upgrade to latest ECMAScipt version in package.json
, change the presets
value of babel
fromes2015
to latest
- Run
webpack --profile --json >> stats.json
- open
http://webpack.github.io/analyse/#modules
- upload stats.json file from your repository