1.0.2 • Published 8 years ago

js-reactor v1.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

js-reactor

Like elm-reactor, but for JavaScript. Allows running JS files in the browser based on relative path (e.g. localhost:8000/hello-world.js).

js-reactor is an opinionated tool to minimize friction. Code is transformed with Babel and type-checked with Flow.

Installation

npm install -g js-reactor

Example Usage

With this project directory structure:

~/my-project
└── hello-world.js

Run:

cd ~/my-project
js-reactor

Then open http://localhost:8000/hello-world.js in your web browser.

Future

This project is a work in progress. Future plans include:

  • Hot-module reloading
  • Directory index navigation
  • Other elm-platform tools like elm-make and elm-repl