https://github.com/ryanashcraft/js-reactor
Opinionated JS dev tool
https://github.com/ryanashcraft/js-reactor
Last synced: 3 months ago
JSON representation
Opinionated JS dev tool
- Host: GitHub
- URL: https://github.com/ryanashcraft/js-reactor
- Owner: ryanashcraft
- Created: 2015-12-30T02:19:01.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-12-30T02:43:03.000Z (over 10 years ago)
- Last Synced: 2025-03-11T00:36:46.649Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 4.88 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# js-reactor
Like [elm-reactor](https://github.com/elm-lang/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](https://babeljs.io) and type-checked with [Flow](http://flowtype.org).
## Installation
```bash
npm install -g js-reactor
```
## Example Usage
With this project directory structure:
```
~/my-project
└── hello-world.js
```
Run:
```bash
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](https://github.com/elm-lang/elm-make) and [elm-repl](https://github.com/elm-lang/elm-repl)