Skip to content
This repository has been archived by the owner on Nov 22, 2023. It is now read-only.

firsttris/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
  • Prettier opinionated code formatter
  • EsLint eslint
  • Webpack module bundler
  • Docker create container

Scripts

npm run / yarn
dev ------------ run server with hot-reload (node-dev)
nodemon -------- run server with hot-reload (nodemon)
build ---------- creates bundled webpack build
test ----------- runs tests with coverage reports

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

License

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