purescript-ractive
RactiveJS bindings for PureScript
Based on the original sources from Aitor P. Iturri
This version is compatible with psc 0.8.0.0.
The original Grunt mechanics were replaced by Gulp/WebPack.
For quick testing a small demo app with detailed comments is available.
Screenshot
My article on using PureScript with RactiveJS.
All of the APIs from RactiveJS v0.7.3 are supported
- add
- animate
- detach
- extend
- find
- findAll
- findAllComponents
- findComponent
- findContainer
- findParent
- fire
- get
- insert
- observe
- observeOnce
- off
- on
- pop
- push
- render
- reset
- resetPartial
- set
- shift
- subtract
- splice
- teardown
- toggle
- toHTML
- unrender
- unshift
- update
- updateModel
Component Support
Creation of RactiveJS Components is supported via the extend
API. Read the Tutorial for more info.
Future planning
Follow the development of RactiveJS and continuously update the bindings.
Building the Bindings
npm install [initial build only]
bower update [initial build only]
gulp
Building the Demo
gulp make-demo [initial build only]
gulp build-demo
open index.html from subdir demo
Or use HapiJS
npm start [will load index.js from subdir demo]
Testing
pulp test
QuickCheck is used for property-based testing while JSDOM is for headless testing of RactiveJS-APIs.