0.7.1 • Published 7 years ago

@ozylog/boilerplate v0.7.1

Weekly downloads
24
License
SEE LICENSE IN LI...
Repository
github
Last release
7 years ago

@ozylog/boilerplate

A boilerplate for javascript backend and react app.

Installation

npm install @ozylog/boilerplate --save-dev

App Structure

Here is the standard app structure for this boilerplate.

hello-world-app
-- dist
-- src
-- test
-- package.json

Usage

Flow

Run Flow checker.

-> boilerplate --flow

ESLint

Lint all js files in src folder. You can see all configurations on @ozylog/eslint-config.

-> boilerplate --eslint

Stylelint

Lint all css files in src folder by default.

-> boilerplate --stylelint

Lint all css files in path.

-> boilerplate --stylelint=src/**.css

Postcss

Compile postcss files in dist folder by default.

-> boilerplate --postcss

Lint all css files in path.

-> boilerplate --postcss=dist/**.css

Test

Run test scripts in tests folder.

-> boilerplate --test
-> boilerplate --test=report // run test and generate nyc report

Build

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 webpack

Watch

Watch files in src folder. Run lint, flow, babel when files change.

-> boilerplate --watch=node

Dev

-> boilerplate --dev=node // --watch=node + nodemon
-> boilerplate --dev=webpack // run webpack-dev-server

License

MIT

0.7.1

7 years ago

0.7.0

7 years ago

0.6.9

7 years ago

0.6.8

7 years ago

0.6.7

7 years ago

0.6.6

7 years ago

0.6.5

7 years ago

0.6.4

7 years ago

0.6.3

7 years ago

0.6.2

7 years ago

0.6.1

7 years ago

0.6.0

7 years ago

0.5.0

7 years ago

0.4.11

7 years ago

0.4.10

7 years ago

0.4.9

7 years ago

0.4.8

7 years ago

0.4.7

7 years ago

0.4.6

7 years ago

0.4.5

7 years ago

0.4.4

7 years ago

0.4.3

7 years ago

0.4.2

7 years ago

0.4.1

7 years ago

0.4.0

7 years ago

0.3.6

7 years ago

0.3.5

7 years ago

0.3.4

7 years ago

0.3.3

7 years ago

0.3.2

7 years ago

0.3.1

7 years ago

0.3.0

7 years ago

0.2.0

7 years ago