-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
package.json
91 lines (91 loc) · 3.79 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
{
"name": "@discoveryjs/discovery",
"version": "1.0.0-beta.91",
"description": "Frontend framework for rapid data (JSON) analysis, shareable serverless reports and dashboards",
"author": "Roman Dvornov <rdvornov@gmail.com> (https://github.com/lahmatiy)",
"license": "MIT",
"repository": "discoveryjs/discovery",
"keywords": [
"json",
"jsonxl",
"query",
"processing",
"visualization",
"analysis"
],
"type": "module",
"main": "lib/lib.js",
"unpkg": "dist/discovery.js",
"jsdelivr": "dist/discovery.js",
"types": "./lib/lib.d.ts",
"exports": {
".": {
"discovery-dev": "./src/lib.js",
"default": "./lib/lib.js"
},
"./utils": {
"discovery-dev": "./src/core/utils/index.js",
"default": "./lib/core/utils/index.js"
},
"./embed": {
"discovery-dev": "./src/extensions/embed-host.js",
"types": "./dist/discovery-embed-host.d.ts",
"default": "./dist/discovery-embed-host.js"
},
"./dist/*": "./dist/*",
"./lib/*": "./lib/*",
"./src/*": {
"discovery-dev": "./src/*",
"default": "./lib/*"
},
"./package.json": "./package.json"
},
"scripts": {
"lint": "eslint cypress models src",
"typecheck": "tsc --noEmit",
"emit:types": "tsc --emitDeclarationOnly && npm run emit:embed-types",
"emit:embed-types": "dts-bundle-generator -o dist/discovery-embed-host.d.ts lib/extensions/embed-host.d.ts --export-referenced-types=0",
"build": "npm run build:js && npm run build:css && npm run build:preloader && npm run build:embed-host",
"build:js": "esbuild src/lib.ts --outfile=dist/discovery.js --bundle --define:global=window --format=esm --minify --sourcemap=external",
"build:css": "esbuild src/lib.css --outfile=dist/discovery.css --bundle --minify --loader:.svg=dataurl",
"build:embed-host": "esbuild src/extensions/embed-host.ts --outfile=dist/discovery-embed-host.js --bundle --define:global=window --format=esm --minify --sourcemap=external",
"build:preloader": "npm run build:preloader:js && npm run build:preloader:css",
"build:preloader:js": "esbuild src/preloader.ts --outfile=dist/discovery-preloader.js --bundle --define:global=window --format=esm --minify --sourcemap=external",
"build:preloader:css": "esbuild src/preloader.css --outfile=dist/discovery-preloader.css --bundle --minify --loader:.svg=dataurl",
"build-gh-pages": "npm run transpile && discovery-build -c gh-pages.config.cjs -o .gh-pages --clean --single-file --no-dev",
"transpile": "node scripts/transpile.js",
"prepublishOnly": "npm run transpile && npm run build",
"cypress": "npx cypress open",
"cypress:server": "discovery -c ./cypress/fixtures/single-model/.discoveryrc.cjs -p 8124",
"start": "discovery -c models/index.cjs",
"test": "./cypress/test.sh"
},
"engines": {
"node": ">=8.0.0"
},
"dependencies": {
"@discoveryjs/json-ext": "^0.6.3",
"codemirror": "^5.65.2",
"github-slugger": "^2.0.0",
"hitext": "^1.0.0-beta.1",
"jora": "1.0.0-beta.13",
"marked": "^14.1.4"
},
"devDependencies": {
"@discoveryjs/cli": "^2.11.1",
"@discoveryjs/scan-fs": "^4.0.0",
"@stylistic/eslint-plugin": "^2.6.2",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"cypress": "^13.3.0",
"dts-bundle-generator": "^9.5.1",
"esbuild": "~0.24.0",
"eslint": "^8.50.0",
"eslint-plugin-cypress": "^2.15.1",
"typescript": "^5.4.5"
},
"files": [
"dist",
"lib"
]
}