A simple boilerplate for web project.
git clone https://github.com/JonGiamp/web-workflow-boilerplate.git
cd web-workflow-boilerplate
rm -rf .git
yarn install
Think to update package.json with your personal informations
To launch the production build :
yarn prod
The build fails if eslint or flowtype encounters an error.
To launch the development environment :
yarn dev
Launch webpack-dev-server with hot reload and webpack-dashboard
To manual run eslint :
yarn lint
To automatic fix eslint error :
yarn lintfix
To manual run flowtype :s
yarn flow
This boilerplate uses:
Name | Type | Target | Environment |
---|---|---|---|
babel-loader | loader | JS | all |
flowtype-loader | loader | JS | all |
eslint-loader | loader | JS | all |
uglifyjs-webpack-plugin | plugins | JS | prod |
ExtractTextPlugin | plugins | CSS | all |
style-loader | loader | CSS | dev |
css-loader | loader | CSS | prod |
postcss-cssnext | loader | CSS | prod |
url-loader | loader | IMG | all |
img-loader | loader | IMG | prod |
file-loader | loader | FONTS | all |
cheap-module-eval-source-map | devtool | X | dev |
source-map | devtool | X | prod |
webpack-dev-server | server | X | dev |
webpack-dashboard | tools | X | dev |
- airbnb guidelines
- comma-dangle: ["error", "always-multiline"]
Please open an issue for support.
Please contribute using Github Flow. Create a branch, add commits, and open a pull request.
See also the list of contributors who participated in this project.