File tree Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 1
1
# Loopback Finite State Machine
2
2
3
+ [ ![ Circle CI] ( https://circleci.com/gh/fullcube/loopback-component-fsm.svg?style=svg )] ( https://circleci.com/gh/fullcube/loopback-component-fsm ) [ ![ Dependencies] ( http://img.shields.io/david/fullcube/loopback-component-fsm.svg?style=flat )] ( https://david-dm.org/fullcube/loopback-component-fsm ) [ ![ Coverage Status] ( https://coveralls.io/repos/github/fullcube/loopback-component-fsm/badge.svg?branch=master )] ( https://coveralls.io/github/fullcube/loopback-component-fsm?branch=master )
4
+
5
+
3
6
This loopback component provides a finite state machine (powered by https://github.com/vstirbu/fsm-as-promised ) for loopback model instances, enabling precise control over when model instance methods may be called.
4
7
5
8
### Installation
Original file line number Diff line number Diff line change
1
+ test :
2
+ post :
3
+ - npm run coverage
Original file line number Diff line number Diff line change 5
5
"main" : " index.js" ,
6
6
"scripts" : {
7
7
"dev" : " DEBUG=loopback:component:fsm nodemon test/fullcube-state-machine/server/server.js --ignore db.json --ext js,json" ,
8
- "test" : " mocha" ,
9
- "test:watch" : " npm run test -- -w"
8
+ "test" : " babel-node ./node_modules/.bin/isparta cover --report text --report lcov _mocha test/*test.js" ,
9
+ "quicktest" : " mocha test/*test.js" ,
10
+ "test:watch" : " npm run test -- -w" ,
11
+ "coverage" : " cat ./coverage/lcov.info | coveralls"
10
12
},
11
13
"author" : " " ,
12
14
"license" : " ISC" ,
13
15
"devDependencies" : {
16
+ "babel-cli" : " ^6.10.1" ,
14
17
"babel-core" : " ^6.10.4" ,
15
18
"babel-eslint" : " ^6.1.0" ,
16
19
"babel-polyfill" : " ^6.9.1" ,
17
20
"babel-preset-es2015" : " ^6.9.0" ,
18
21
"chai" : " ^3.5.0" ,
22
+ "coveralls" : " ^2.11.9" ,
19
23
"eslint-config-fullcube" : " git+https://github.com/fullcube/eslint-config-fullcube.git" ,
24
+ "isparta" : " ^4.0.0" ,
20
25
"mocha" : " ^2.5.3" ,
21
26
"nodemon" : " ^1.9.2" ,
22
27
"sinon" : " ^1.17.4" ,
You can’t perform that action at this time.
0 commit comments