forked from kennyviperhk/rita-script
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
86 lines (86 loc) · 2.28 KB
/
Copy pathpackage.json
File metadata and controls
86 lines (86 loc) · 2.28 KB
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
{
"name": "rita",
"version": "2.4.211",
"author": "Daniel C. Howe",
"license": "GPL-3.0",
"description": "tools for generative natural language",
"homepage": "https://rednoise.org/rita",
"repository": {
"type": "git",
"url": "https://github.com/dhowe/ritajs.git"
},
"files": [
"dist/*.js",
"example.js"
],
"main": "dist/rita.js",
"autoupdate": {
"source": "npm",
"target": "rita",
"fileMap": [
{
"basePath": "dist",
"files": [
"*.js"
]
}
]
},
"runkitExampleFilename": "example.js",
"keywords": [
"natural language",
"generative text",
"text analysis"
],
"scripts": {
"clean": "rm -f dist/*.*",
"build": "npm run clean && webpack",
"test": "mocha -r esm",
"prepare": "npm run compile",
"watch.src": "npm-watch test.src",
"test.src": "NODE_ENV=dev mocha -r esm",
"watch.grammar": "npm-watch antlr4.js",
"test.g": "mocha -r esm ./test/*.js -g ",
"compile": "npm run fix.antlr && npm run antlr4.js",
"precoverage": "rm -rf ./coverage",
"coverage": "c8 --reporter=html --exclude='src/visitor.js' npm run test.src",
"postcoverage": "open coverage/src/index.html",
"fix.antlr": "cp -r ./fixed-antlr/JavaScript/src/antlr4/ node_modules/antlr4/src/antlr4",
"antlr4.js": "java -Xmx500M -cp 'jlib/antlr4-4.9.2-SNAPSHOT-complete.jar' org.antlr.v4.Tool -Dlanguage=JavaScript -o grammar/antlr -visitor -no-listener -Xexact-output-dir grammar/RiScript*.g4"
},
"watch": {
"antlr4.js": {
"patterns": "grammar",
"extensions": "g4"
},
"test.src": {
"patterns": [
"src",
"test"
],
"ignore": "before.js",
"extensions": "js"
}
},
"devDependencies": {
"@babel/core": "^7.12.16",
"@babel/plugin-proposal-class-properties": "^7.12.13",
"@babel/preset-env": "^7.12.16",
"antlr4": "^4.9.1",
"babel-loader": "^8.2.2",
"c8": "^7.6.0",
"chai": "^4.2.0",
"codecov": "^3.8.1",
"deepmerge": "^4.2.2",
"esm": "^3.2.25",
"flatted": "^2.0.2",
"he": "^1.2.0",
"mocha": "^8.3.0",
"npe": "^1.1.3",
"npm-watch": "^0.6.0",
"terser-webpack-plugin": "2.3.8",
"webpack": "^4.41.2",
"webpack-bundle-analyzer": "^4.1.0",
"webpack-cli": "^3.3.10"
}
}