An Angular boilerplate, that has a lot of features and is driven by great spirit.
This boilerplate is opinionated, it does not want to achieve all things possible
- Webpack 2 + DLL Support
- TypeScript
- @types
- TsLint
- PostCss + Autoprefixer
- Codelyzer
- Istanbul
- Jest
- Protractor
- Jasmine
- E2E
- Docker
- Lighthouse
- Prettier
We support Node.js
>= 6.9.1
, NPM>= 3.x
Yarn If you downgrade toprotractor@4.9.x
you could run the boilerplate in Node> 4.7.x
We recommend and support Visual Studio Code We recommend to use NVM to manage your Node.js version and dependencies We highly recommend to use
# clone the repo
# --depth 1 removes all but one .git commit history
git clone --depth 1 https://github.com/katallaxie/angular-preboot.git
# change to repo folder
cd angular-preboot
# install the repo with npm, or yarn
npm install
# start the webpack-dev-server
npm start
# if you're in China use cnpm
# https://github.com/cnpm/cnpm
You can run
npm run help
to see all available scripts
Open http://0.0.0.0:3000 or http://localhost:3000 in your favorite Browser.
We have
npm run fmt
with.clang-format
in place to format your code We have a Firebase config in the repo
# build the AoT version of your project
npm run build:prod
# build a ready to ship Docker for your project
npm run build:docker
We have Jest and Protractor in place
# run your unit tests
npm run tests
# or develop with unit tests in the loop
npm run watch:test
# run your e2e tests
npm run e2e
We have Prettier in place for your we also recommend Prettier for VSCode
npm run fmt