/
package.json
106 lines (106 loc) 路 2.74 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
{
"name": "@antv/x6",
"version": "0.1.6",
"description": "JavaScript diagramming library",
"main": "lib/index.js",
"module": "es/index.js",
"types": "lib/index.d.ts",
"files": [
"lib",
"es"
],
"directories": {
"lib": "lib/",
"src": "src/"
},
"keywords": [
"x6",
"diagram",
"flowchart",
"uml",
"graph",
"x6-editor",
"editor",
"svg"
],
"scripts": {
"clean:es": "rimraf ./es",
"clean:lib": "rimraf ./lib",
"clean:coverage": "rimraf ./test/coverage",
"clean": "run-p clean:es clean:lib clean:coverage",
"lint": "run-s lint:ts lint:es",
"lint:es": "eslint --ext .js scripts --fix",
"lint:ts": "tslint -c tslint.json -p tsconfig.json --fix",
"watch": "watch 'yarn build:dev' ./src",
"build:lib": "tsc",
"build:es": "tsc --module es2015 --target es2015 --outDir ./es",
"build:less": "lessc ./src/index.less ./lib/index.css",
"build:images": "node ./scripts/make-images.js",
"build:version": "node ./scripts/make-version.js",
"build:dev": "run-p build:images build:less build:lib build:es",
"build": "run-s build:version build:dev",
"prebuild": "run-s lint clean",
"test": "jest",
"pretest": "run-p clean:coverage",
"coveralls": "cat ./test/coverage/lcov.info | coveralls",
"prepare": "run-s build:version test build",
"precommit": "lint-staged"
},
"lint-staged": {
"*.js": [
"eslint --fix",
"git add"
],
"src/**/*.ts": [
"tslint -c tslint.json -p ./tsconfig.lint.json --fix",
"git add"
]
},
"devDependencies": {
"@types/jest": "^24.0.17",
"@types/sinon": "^7.5.0",
"base64-img": "^1.0.4",
"coveralls": "^3.0.6",
"eslint": "^6.1.0",
"eslint-config-airbnb-base": "^14.0.0",
"eslint-config-prettier": "^6.7.0",
"eslint-plugin-import": "^2.18.2",
"image-size": "^0.7.4",
"jest": "^24.8.0",
"less": "^3.10.3",
"lint-staged": "^9.2.1",
"npm-run-all": "^4.1.5",
"rimraf": "^3.0.0",
"sinon": "^7.5.0",
"ts-jest": "^24.0.2",
"tslint": "^5.18.0",
"tslint-config-airbnb": "^5.11.2",
"tslint-config-prettier": "^1.18.0",
"tslint-eslint-rules": "^5.4.0",
"typescript": "^3.5.3",
"watch": "^1.0.2"
},
"dependencies": {
"mousetrap": "^1.6.3",
"size-sensor": "^0.2.5",
"utility-types": "^3.10.0"
},
"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": "https://github.com/antvis/x6.git"
},
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org"
}
}