UNPKG

@antv/x6

Version:

JavaScript diagramming library that uses SVG and HTML for rendering.

126 lines (125 loc) 3.62 kB
{ "name": "@antv/x6", "version": "1.9.2", "description": "JavaScript diagramming library that uses SVG and HTML for rendering.", "main": "lib/index.js", "module": "es/index.js", "unpkg": "dist/x6.js", "jsdelivr": "dist/x6.js", "types": "lib/index.d.ts", "files": [ "dist", "es", "lib" ], "keywords": [ "graph", "diagram", "flowchart", "uml", "x6-editor", "editor", "svg", "x6", "antv" ], "scripts": { "clean:build": "rimraf dist es lib", "clean:coverage": "rimraf ./test/coverage", "clean": "run-p clean:build clean:coverage", "lint:es": "eslint --ext .js scripts --fix", "lint:ts": "tslint -c tslint.json -p tsconfig.json --fix", "lint:style": "stylelint 'src/**/*.less' --syntax less --fix", "lint": "run-s lint:ts lint:es lint:style", "build:esm": "tsc --module esnext --target es2015 --outDir ./es", "build:cjs": "tsc --module commonjs --target es5 --outDir ./lib", "build:umd": "rollup -c", "build:less": "node ./scripts/style", "build:readme": "node ./scripts/readme.js", "build:version": "node ./scripts/version.js", "build:csstype": "node ./scripts/csstype.js", "build:dev": "run-p build:csstype build:less build:cjs build:esm", "build:watch": "yarn build:esm --w", "build": "run-p build:readme build:version build:dev build:umd", "prebuild": "run-s lint clean", "test": "karma start", "coveralls": "cat ./test/coverage/lcov.info | coveralls", "pretest": "run-p clean:coverage", "prepare": "run-s build:version test build", "precommit": "lint-staged" }, "lint-staged": { "src/**/*.less": [ "stylelint --syntax less --fix" ], "*.js": [ "eslint --fix" ], "src/**/*.ts": [ "tslint -c tslint.json -p ./tsconfig.json --fix" ] }, "dependencies": { "csstype": "^3.0.3", "jquery": "^3.5.1", "jquery-mousewheel": "^3.1.13", "lodash-es": "^4.17.15", "mousetrap": "^1.6.5", "utility-types": "^3.10.0" }, "devDependencies": { "@rollup/plugin-replace": "^2.3.4", "@rollup/plugin-commonjs": "^17.0.0", "@rollup/plugin-node-resolve": "^11.0.0", "@rollup/plugin-typescript": "^8.1.0", "@types/jasmine": "^3.6.2", "@types/jquery": "^3.5.5", "@types/jquery-mousewheel": "^3.1.8", "@types/lodash-es": "^4.17.4", "@types/mousetrap": "^1.6.5", "@types/node": "^14.14.14", "@types/sinon": "^9.0.0", "coveralls": "^3.1.0", "eslint": "^7.16.0", "jasmine-core": "^3.6.0", "karma": "^5.2.3", "karma-chrome-launcher": "^3.1.0", "karma-cli": "^2.0.0", "karma-jasmine": "^4.0.1", "karma-spec-reporter": "^0.0.32", "karma-typescript": "^5.2.0", "karma-typescript-es6-transform": "^5.1.0", "less": "^4.0.0", "lint-staged": "^10.5.3", "npm-run-all": "^4.1.5", "rimraf": "^3.0.0", "rollup": "^2.35.1", "rollup-plugin-filesize": "^9.1.0", "rollup-plugin-progress": "^1.1.2", "rollup-plugin-terser": "^7.0.2", "sinon": "^9.0.2", "stylelint": "^13.8.0", "ts-node": "^9.1.1", "tslint": "^6.1.3", "typescript": "^4.1.2" }, "author": { "name": "bubkoo", "email": "bubkoo.wy@gmail.com" }, "contributors": [], "license": "MIT", "homepage": "https://github.com/antvis/x6", "bugs": { "url": "https://github.com/antvis/x6/issues" }, "repository": { "type": "git", "url": "ssh://git@github.com/antvis/x6.git", "directory": "packages/x6" }, "publishConfig": { "access": "public", "registry": "https://registry.npmjs.org" } }