rita 2.8.31 → 3.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +4 -4
- package/README.md +8 -21
- package/dist/rita.cjs +42724 -0
- package/dist/rita.cjs.map +1 -0
- package/dist/rita.js +42722 -5
- package/dist/rita.js.map +1 -0
- package/dist/rita.min.js +170 -0
- package/dist/rita.min.js.map +1 -0
- package/package.json +40 -74
- package/dist/rita-micro.js +0 -5
- package/example.js +0 -6
package/package.json
CHANGED
|
@@ -1,92 +1,58 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rita",
|
|
3
|
-
"version": "
|
|
4
|
-
"author": "Daniel C
|
|
5
|
-
"license": "GPL-3.0",
|
|
3
|
+
"version": "3.0.8",
|
|
4
|
+
"author": "Daniel C Howe",
|
|
6
5
|
"description": "tools for generative natural language",
|
|
7
6
|
"homepage": "https://rednoise.org/rita",
|
|
7
|
+
"license": "GPL-3.0",
|
|
8
|
+
"type": "module",
|
|
9
|
+
"scripts": {
|
|
10
|
+
"test": "NODE_ENV=dev npx mocha",
|
|
11
|
+
"test:dist": "NODE_ENV=dev npx mocha test/dist",
|
|
12
|
+
"build": "rm -rf dist/ && npx tsup",
|
|
13
|
+
"types": "npx tsc",
|
|
14
|
+
"pub": "./npnb/source/cli.js --no-release-draft patch",
|
|
15
|
+
"prepub": "npm version patch && npm run build"
|
|
16
|
+
},
|
|
17
|
+
"main": "dist/rita.js",
|
|
18
|
+
"exports": {
|
|
19
|
+
".": {
|
|
20
|
+
"import": "./dist/rita.js",
|
|
21
|
+
"require": "./dist/rita.cjs",
|
|
22
|
+
"types": "./dist/index.d.ts"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"files": [
|
|
26
|
+
"dist"
|
|
27
|
+
],
|
|
8
28
|
"repository": {
|
|
9
29
|
"type": "git",
|
|
10
30
|
"url": "https://github.com/dhowe/ritajs.git"
|
|
11
31
|
},
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"example.js"
|
|
15
|
-
],
|
|
16
|
-
"main": "dist/rita.js",
|
|
17
|
-
"autoupdate": {
|
|
18
|
-
"source": "npm",
|
|
19
|
-
"target": "rita",
|
|
20
|
-
"fileMap": [
|
|
21
|
-
{
|
|
22
|
-
"basePath": "dist",
|
|
23
|
-
"files": [
|
|
24
|
-
"*.js"
|
|
25
|
-
]
|
|
26
|
-
}
|
|
27
|
-
]
|
|
32
|
+
"engines": {
|
|
33
|
+
"node": ">=14.0"
|
|
28
34
|
},
|
|
29
|
-
"runkitExampleFilename": "example.js",
|
|
30
35
|
"keywords": [
|
|
31
36
|
"natural language",
|
|
32
37
|
"generative text",
|
|
33
38
|
"text analysis"
|
|
34
39
|
],
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"build": "npm run clean && webpack --mode=production",
|
|
38
|
-
"build.dev": "npm run clean && webpack --mode=development --devtool=eval-source-map",
|
|
39
|
-
"test": "npx mocha -r esm",
|
|
40
|
-
"prepare": "npm run compile",
|
|
41
|
-
"watch.src": "npm-watch test.src",
|
|
42
|
-
"watch.dist": "npm-watch build.dev",
|
|
43
|
-
"test.src": "NODE_ENV=dev npx mocha -r esm",
|
|
44
|
-
"test.g": "NODE_ENV=dev npx mocha -r esm ./test/*.js -g ",
|
|
45
|
-
"watch.grammar": "npm-watch antlr4.js",
|
|
46
|
-
"compile": "npm run fix.antlr && npm run antlr4.js",
|
|
47
|
-
"precoverage": "rm -rf ./coverage",
|
|
48
|
-
"coverage": "c8 --reporter=html --exclude='src/visitor.js' npm run test.src",
|
|
49
|
-
"postcoverage": "open coverage/src/index.html",
|
|
50
|
-
"fix.antlr": "cp -r ./fixed-antlr/JavaScript/src/antlr4/ node_modules/antlr4/src/antlr4",
|
|
51
|
-
"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"
|
|
52
|
-
},
|
|
53
|
-
"watch": {
|
|
54
|
-
"antlr4.js": {
|
|
55
|
-
"patterns": "grammar",
|
|
56
|
-
"extensions": "g4"
|
|
57
|
-
},
|
|
58
|
-
"test.src": {
|
|
59
|
-
"patterns": [
|
|
60
|
-
"src",
|
|
61
|
-
"test"
|
|
62
|
-
],
|
|
63
|
-
"ignore": "before.js",
|
|
64
|
-
"extensions": "js"
|
|
65
|
-
},
|
|
66
|
-
"build.dev": {
|
|
67
|
-
"patterns": [
|
|
68
|
-
"src"
|
|
69
|
-
],
|
|
70
|
-
"extensions": "js"
|
|
71
|
-
}
|
|
40
|
+
"bugs": {
|
|
41
|
+
"url": "https://github.com/dhowe/ritajs/issues"
|
|
72
42
|
},
|
|
43
|
+
"browser": "./dist/rita.iife.min.js",
|
|
73
44
|
"devDependencies": {
|
|
74
|
-
"@
|
|
75
|
-
"@
|
|
76
|
-
"@
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"mocha": "^8.4.0",
|
|
87
|
-
"npm-watch": "^0.11.0",
|
|
88
|
-
"terser-webpack-plugin": "^5.3.0",
|
|
89
|
-
"webpack": "^5.65.0",
|
|
90
|
-
"webpack-cli": "^4.9.1"
|
|
45
|
+
"@types/chai": "^4.3.9",
|
|
46
|
+
"@types/mocha": "^10.0.3",
|
|
47
|
+
"@types/node": "^20.8.10",
|
|
48
|
+
"chai": "^4.3.10",
|
|
49
|
+
"esbuild-plugin-version-injector": "^1.2.1",
|
|
50
|
+
"mocha": "^10.2.0",
|
|
51
|
+
"tsup": "^7.2.0",
|
|
52
|
+
"typescript": "^5.2.2"
|
|
53
|
+
},
|
|
54
|
+
"dependencies": {
|
|
55
|
+
"@ungap/structured-clone": "^1.2.0",
|
|
56
|
+
"riscript": "^1.0.32"
|
|
91
57
|
}
|
|
92
58
|
}
|