/
package.json
100 lines (100 loc) · 4.18 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
{
"name": "jssm",
"version": "3.1.7",
"engines": {
"node": ">=6.0.0"
},
"description": "A Javascript state machine with a simple API. Well tested, and typed with Flowtype. MIT License.",
"main": "dist/jssm.es5.browserified.js",
"scripts": {
"nyc-test": "nyc ava src/js/tests/*.js",
"test": "ava src/js/tests/*.js",
"test-verbose": "ava src/js/tests/*.js -v",
"removedir": "rimraf build -f && rimraf dist -f && rimraf docs -f",
"createdir": "mkdir build && mkdir dist && mkdir docs && cd docs && mkdir docs && cd ..",
"clean": "npm run removedir && rm -f src/js/jssm-dot.js && npm run createdir",
"babel": "babel src/js -d build/",
"setver": "node ./set_version.js",
"rename": "node -e \"require('fs').renameSync('./build/jssm.js', './build/jssm.es5.js');\"",
"pack": "browserify -r ./build/jssm.es5.js:jssm -o build/jssm.es5.cjs.js",
"make": "npm run clean && npm run peg && npm run babel && npm run rename && npm run setver && npm run pack",
"flow": "flow",
"peg": "rm -f src/js/jssm-dot.js && pegjs src/js/jssm-dot.peg && cp src/js/jssm-dot.js build/",
"eslint": "eslint src/js/jssm.js",
"nyc-html": "nyc ava report --reporter=html",
"coverage": "nyc report --reporter=text-lcov | coveralls",
"vet": "npm run flow && npm run eslint",
"audit": "echo \\\"major\\\" remaining. . : `grep major src/js/jssm*.js | wc -l`\\\\n\\\"wasteful\\\" remaining : `grep wasteful src/js/jssm*.js | wc -l`\\\\n\\\"any\\\" remaining. . . : `grep any src/js/jssm*.js | wc -l`\\\\n\\\"mixed\\\" remaining. . : `grep mixed src/js/jssm*.js | wc -l`\\\\n\\\"todo\\\" remaining . . : `grep todo src/js/jssm*.js | wc -l`\\\\n\\\"nextdo\\\" remaining . : `grep nextdo src/js/jssm*.js | wc -l`\\\\n\\\"whargarbl\\\" remaining: `grep whargarbl src/js/jssm*.js | wc -l`\\\\n\\\"comeback\\\" remaining : `grep comeback src/js/jssm*.js | wc -l`\\\\n\\\"fixme\\\" remaining. . : `grep fixme src/js/jssm*.js | wc -l`\\\\n\\\"stochable\\\" remaining: `grep stochable src/js/jssm*.js | wc -l`\\\\n\\\"checkme\\\" remaining. : `grep checkme src/js/jssm*.js | wc -l`",
"qbuild": "npm run make && npm run test-verbose && npm run minify && npm run docs && npm run dist",
"build": "npm run make && npm run vet && npm run test-verbose && npm run audit && npm run minify && npm run docs && npm run dist",
"nyc-build": "npm run vet && npm run make && npm run test-verbose && npm run audit && npm run nyc-test",
"postinstall": "npm run build",
"prepublish": "npm run build",
"minify": "uglifyjs ./build/jssm.es5.cjs.js -o ./build/jssm.es5.cjs.min.js --compress",
"dist": "cp build/jssm.es5.cjs.* dist/",
"docs": "documentation build src/js/** -f html -o docs/lib",
"travis": "rm -f src/js/jssm-dot.js && npm run nyc-test && npm run coverage"
},
"repository": {
"type": "git",
"url": "git+https://github.com/StoneCypher/jssm.git"
},
"keywords": [
"finite",
"state",
"state machine",
"state-machine",
"machine",
"finite-state-machine",
"finite state machine",
"fsm",
"fsm-library",
"js",
"javascript",
"javascript-library",
"mit-license",
"tested",
"typed",
"typed-js",
"flowtype",
"mealy",
"moore",
"mealy machine",
"moore machine",
"mealy-machine",
"moore-machine",
"graphviz",
"viz.js",
"flowchart",
"visualization",
"StoneCypher"
],
"author": "John Haugeland <stonecypher@gmail.com>",
"license": "MIT",
"bugs": {
"url": "https://github.com/StoneCypher/jssm/issues"
},
"homepage": "https://stonecypher.github.io/jssm/",
"devDependencies": {
"ava": "^0.20.0",
"ava-spec": "^1.1.0",
"babel-cli": "^6.24.1",
"babel-eslint": "^7.2.3",
"babel-plugin-transform-flow-strip-types": "^6.22.0",
"babel-preset-es2015": "^6.24.1",
"babel-preset-flow": "^6.23.0",
"browserify": "^14.3.0",
"coveralls": "^2.13.1",
"del-cli": "^1.1.0",
"documentation": "^4.0.0-rc.1",
"eslint": "^4.1.1",
"eslint-plugin-flowtype": "^2.34.1",
"flow-bin": "^0.49.1",
"gulp-string-replace": "^0.4.0",
"nyc": "^11.0.3",
"pegjs": "^0.10.0",
"rimraf": "^2.6.1",
"uglify-js": "^3.0.23",
"viz.js": "^1.7.1"
}
}