#Angular2 Webpack Seed
# clone repo
git clone https://github.com/blinfo/angular2-webpack-seed.git
# change directory to our repo
cd angular2-webpack-seed
# install the repo with npm
npm install
# validate the repo with tslint and test
npm run validate
# run test
npm test
# build the repo
npm run build
# start the server
npm start
list of all scripts
"scripts": {
"validate": "npm-run-all --parallel validate-webpack:* lint test",
"validate-webpack:dev": "webpack-validator webpack.config.js --env.dev",
"validate-webpack:prod": "webpack-validator webpack.config.js --env.prod",
"start": "webpack-dev-server --hot --history-api-fallback --env.dev",
"serve:prod": "webpack-dev-server --hot --history-api-fallback --env.prod",
"build": "rimraf dist && webpack --config config/webpack.prod.js --progress --profile --bail",
"test": "karma start",
"watch:test": "npm test -- --auto-watch --no-single-run",
"clean-dist": "rimraf dist",
"copy-files": "cpy \"**/index.html\" favicon.ico app/home/homm-data.json \"../dist\" --cwd=src --parents",
"clean-and-copy": "npm run clean-dist && npm run copy-files",
"prebuild": "npm run clean-and-copy",
"prebuild:prod": "npm run clean-and-copy",
"build:prod": "webpack --env.prod",
"lint": "tslint -c tslint.json src/**/*.ts",
"postinstall": "typings install",
"coverage": "http-server -c-1 -o -p 9875 ./coverage"
}
for validating before commiting to git
"config": {
"ghooks": {
"pre-commit": "npm run validate"
}
}