@ozylog/boilerplate
v0.7.1
Published
Boilerplate
Readme
@ozylog/boilerplate
A boilerplate for javascript backend and react app.
Installation
npm install @ozylog/boilerplate --save-devApp Structure
Here is the standard app structure for this boilerplate.
hello-world-app
-- dist
-- src
-- test
-- package.jsonUsage
Flow
Run Flow checker.
-> boilerplate --flowESLint
Lint all js files in src folder. You can see all configurations on @ozylog/eslint-config.
-> boilerplate --eslintStylelint
Lint all css files in src folder by default.
-> boilerplate --stylelintLint all css files in path.
-> boilerplate --stylelint=src/**.cssPostcss
Compile postcss files in dist folder by default.
-> boilerplate --postcssLint all css files in path.
-> boilerplate --postcss=dist/**.cssTest
Run test scripts in tests folder.
-> boilerplate --test
-> boilerplate --test=report // run test and generate nyc reportBuild
Build files in src folder. The output will be in dist folder.
-> boilerplate --build=node // build node js app
-> boilerplate --build=react // build react files, especially for react npm module
-> boilerplate --build=webpack // build react app with webpackWatch
Watch files in src folder. Run lint, flow, babel when files change.
-> boilerplate --watch=nodeDev
-> boilerplate --dev=node // --watch=node + nodemon
-> boilerplate --dev=webpack // run webpack-dev-serverLicense
MIT
