Skip to content

shenron/babel-node-starter

 
 

Repository files navigation

minimal babel-node-starter

Minimal Webpack NodeJs Starter Kit 📦

Includes

  • Flow static typechecker for JavaScript
  • Babel next generation JavaScript (transpiler for module-system & flow)
  • Jest for testing, mocking and coverage report
  • EsLint eslint
  • Webpack module bundler
  • Docker create container
  • husky git hooks

Scripts

npm run / yarn
dev ------------ run server with hot-reload (babel-watch)
build ---------- creates bundled default build (babel)
build:babel ---------- creates bundled babel build
build:webpack ---------- creates bundled webpack build
test ----------- runs tests with coverage reports
flow ------------ run flow-bin
lint ------------ run eslint
lint:fix ------------ run eslint and auto fix if possible
flow:deps ------------ install flow-typed (jest)
serve ------------ Build and launch the application

Sources & Notes

Flow With VScode

https://github.com/flowtype/flow-for-vscode

Flow in Webstorm:

https://blog.jetbrains.com/webstorm/2016/11/using-flow-in-webstorm/
in webstorm add a jest test manually

Flow:

https://github.com/facebook/flow
https://flow.org/en/docs/install/
https://github.com/flowtype/flow-typed

Jest:

https://facebook.github.io/jest/docs/en/getting-started.html#using-babel

Babel:

https://babeljs.io/docs/setup/#installation

Source map support:

https://github.com/evanw/node-source-map-support#readme

License

See the LICENSE file for license rights and limitations (MIT).

About

📦 minimal babel nodejs starter-kit

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 83.6%
  • Dockerfile 13.0%
  • Shell 3.4%