Skip to content

synlay/elm-state-button

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Elm state button

Elm state button based on a simple state machine.

State machine model

                      -> Succeed (final)
                    /
Start -> Process ->
  ^                 \
  |                   -> Failure -
  |                                |
    - - - - - - - - - - - - - - - -

Install

Install project dependencies for testing and demo.

npm install

Test

Run unit tests with elm-test

npm test

Build

Build project app and demo client

npm run build

Clean

Remove project dependencies and builds.

npm run clean

Usage

See docs/Client.elm for Elm integration and docs/demo.html for JavaScript integration. Additionally you could start the demo.

Demo

Starts a http server for demonstration purpose. Navigate to http://localhost:8000/docs/demo.html

npm run demo

Licence

MIT License