@finos/perspective-viewer
Version:
The `<perspective-viewer>` Custom Element, frontend for Perspective.js
61 lines (60 loc) • 3.29 kB
JSON
{
"name": "@finos/perspective-viewer",
"version": "1.0.0",
"description": "The `<perspective-viewer>` Custom Element, frontend for Perspective.js",
"repository": {
"type": "git",
"url": "https://github.com/finos/perspective"
},
"license": "Apache-2.0",
"main": "dist/umd/perspective-viewer.inline.js",
"module": "dist/umd/perspective-viewer.inline.js",
"browser": "dist/umd/perspective-viewer.inline.js",
"unpkg": "dist/umd/perspective-viewer.js",
"jsdelvr": "dist/umd/perspective-viewer.js",
"files": [
"dist/**/*",
"src/**/*"
],
"types": "dist/esm/index.d.ts",
"scripts": {
"build:wasm": "wasm-pack build --out-dir dist/pkg --target web && rm dist/pkg/package.json && rm dist/pkg/.gitignore",
"build:rollup:js": "rollup --config rollup.config.js",
"build:rollup:css": "rollup --config rollup.config.js --config-inline-css",
"build:webpack:inline": "webpack --color --config webpack.inline.config.js",
"build:webpack:umd": "webpack --color --config webpack.config.js",
"build:webpack": "npm-run-all -p build:webpack:umd build:webpack:inline",
"build:less": "cpx 'src/less/*' dist/less",
"build": "npm-run-all build:rollup:css build:wasm build:rollup:js build:webpack build:less",
"watch:wasm": "cargo watch -i .gitignore -i \"pkg/*\" -i \"src/js/*\" -s \"yarn build:wasm\"",
"watch:rollup": "rollup --watch --config rollup.config.js",
"watch:webpack": "webpack --watch --color --config webpack.config.js",
"watch": "npm-run-all -p watch:rollup watch:wasm watch:webpack",
"postbuild": "rimraf pkg/package.json pkg/.gitignore",
"clean": "rimraf dist && rimraf pkg && rimraf target",
"clean:screenshots": "rimraf \"test/screenshots/**/*.@(failed|diff).png\"",
"docs": "npm-run-all docs:build docs:concat docs:deploy",
"docs:build": "typedoc --hideBreadcrumbs --out dist/docs --readme none --excludePrivate src/ts/index.ts",
"docs:concat": "node ./docs.js",
"docs:deploy": "(echo \"---\nid: perspective-viewer\ntitle: perspective-viewer API\n---\n\n\"; cat README.md) > ../../docs/obj/perspective-viewer.md",
"fix": "yarn lint --fix && cargo fmt",
"lint": "eslint src/ts",
"test:build:rust": "cpx ../../packages/perspective/dist/umd/perspective.inline.js dist/pkg/",
"test:build:js": "cpx \"test/html/*\" dist/umd && cpx \"test/csv/*\" dist/umd && cpx \"test/css/*\" dist/umd",
"test:build": "npm-run-all test:build:*",
"test:run:rust": "DBUS_SESSION_BUS_ADDRESS=/dev/null wasm-pack test --chrome --headless",
"test:run": "jest --rootDir=. --config=../../packages/perspective-test/jest.config.js --color --noStackTrace 2>&1",
"test:clean": "rm perspective.csv || true",
"test": "yarn test:build && npm-run-all -p test:run:rust test:run && yarn test:clean"
},
"publishConfig": {
"access": "public"
},
"dependencies": {
"@finos/perspective": "^1.0.0",
"mobile-drag-drop-shadow-dom": "3.0.0",
"monaco-editor": "0.24.0",
"monaco-editor-webpack-plugin": "3.1.0"
},
"gitHead": "6f1e06e698026827b90c0a288f0f2a1951785339"
}