@discoveryjs/discovery
Version:
Frontend framework for rapid data (JSON) analysis, shareable serverless reports and dashboards
92 lines (91 loc) • 3.9 kB
JSON
{
"name": "@discoveryjs/discovery",
"version": "1.0.0-beta.95",
"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 --loader:.png=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.14.2",
"@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.25.2",
"eslint": "^8.50.0",
"eslint-plugin-cypress": "^2.15.1",
"typescript": "^5.4.5"
},
"files": [
"dist",
"lib"
]
}