-
Notifications
You must be signed in to change notification settings - Fork 7
/
package.json
70 lines (70 loc) · 2.66 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
{
"name": "chr",
"version": "3.3.22",
"description": "Interpreter for Constraint Handling Rules (CHR) in JavaScript",
"main": "src/index.js",
"scripts": {
"peg": "npm run peg-parser && npm run peg-repl",
"peg-parser": "pegjs --allowed-start-rules 'Program,ProgramWithPreamble,Query' --optimize size --output src/parser.peg.js src/parser.pegjs",
"peg-repl": "pegjs --allowed-start-rules 'Program,Query' --optimize speed --output src/repl.peg.js src/parser.pegjs",
"prepublish": "npm run peg && npm run dist",
"browserify-parser": "browserify -t uglifyify -s chrparser src/parser.peg.js | uglifyjs > ./dist/chrparser.min.js",
"browserify-wo-parser": "NODE_ENV=browserWithoutParser browserify -t envify -t uglifyify -t browserify-versionify -s CHR src/index.js | uglifyjs > ./dist/chr-wop.min.js",
"browserify-full": "NODE_ENV=browser browserify -t envify -t uglifyify -t browserify-versionify -s CHR src/index.js | uglifyjs > ./dist/chr.min.js",
"browserify": "npm run browserify-parser && npm run browserify-wo-parser && npm run browserify-full",
"browserify-nonminified": "browserify -s chrparser src/parser.peg.js > ./dist/chrparser.js && NODE_ENV=browser browserify -t envify -t browserify-versionify -s CHR src/index.js > ./dist/chr.js",
"dist": "npm run browserify && npm run browserify-nonminified",
"standard": "standard",
"tape": "tape 'test/**/*.js'",
"pretest": "npm run peg; npm run browserify",
"test": "npm run standard && npm run tape && npm run test-cli",
"test-cli": "node ./bin/chr.js --runtime \"require('../../runtime')\" test/cli/gcd.chr | cmp -s test/cli/gcd.js -",
"create-test-cli": "node ./bin/chr.js --runtime \"require('../../runtime')\" test/cli/gcd.chr > test/cli/gcd.js"
},
"bin": {
"chrjs": "bin/chr.js"
},
"engines": {
"node": "10"
},
"keywords": [
"CHR",
"Constraint Handling Rules",
"constraints",
"CLP",
"compiler"
],
"author": "Falco Nogatz <[email protected]>",
"license": "MIT",
"repository": {
"type": "git",
"url": "git://github.com/fnogatz/CHR.js"
},
"devDependencies": {
"browserify": "^17.0.0",
"browserify-versionify": "^1.0.6",
"colors": "^1.0.3",
"envify": "^4.0.0",
"pegjs": "^0.10.0",
"standard": "^17.0.0",
"tape": "^5.0.1",
"tconsole": "^1.0.0",
"uglify-js": "^3.13.4",
"uglifyify": "^5.0.0"
},
"dependencies": {
"char-spinner": "^1.0.1",
"commander": "^8.2.0",
"concat-stream": "^2.0.0",
"easy-table": "^1.1.1",
"uuid": "^8.3.2"
},
"standard": {
"ignore": [
"src/parser.js",
"src/compile/fake-scope.js",
"dist/*.js",
"test/cli/*.js"
]
}
}