0.2.2 • Published 5 years ago

bs-black-tea v0.2.2

Weekly downloads
4
License
LGPL
Repository
github
Last release
5 years ago

Black TEA

Simplified version of OvermindDL1/bucklescript-tea with following extra features:

  • No view layer. You can subscribe to model changes and specify your own handling (example) or use our Provider for ReasonReact (see example).
  • Improved subscriptions handling
  • Future support of both Native and JavaScript compile targets (ReasonReact provider is not available on Native)

Usage

Add the package to your project

npm install bs-black-tea

and add a corresponding item to the bsconfig.json:

"bs-dependencies": ["bs-black-tea"],

For usage info see examples folder.

Development

Build

npm run build

Build + Watch

npm run start

Run examples

First run webpack in watch mode to create JS bundles using

npm run webpack

and open examples/Example.html or examples/ReactExample.html. There is no need to run a webserver.