forked from vega/vega-lite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
176 lines (176 loc) · 6.41 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
{
"name": "vega-lite",
"author": "Dominik Moritz, Kanit \"Ham\" Wongsuphasawat, Arvind Satyanarayan, Jeffrey Heer",
"version": "4.8.1",
"collaborators": [
"Kanit Wongsuphasawat (http://kanitw.yellowpigz.com)",
"Dominik Moritz (https://www.domoritz.de)",
"Arvind Satyanarayan (https://arvindsatya.com)",
"Jeffrey Heer (https://jheer.org)"
],
"homepage": "https://vega.github.io/vega-lite/",
"description": "Vega-Lite is a concise high-level language for interactive visualization.",
"main": "build/vega-lite.js",
"unpkg": "build/vega-lite.min.js",
"jsdelivr": "build/vega-lite.min.js",
"module": "build/src/index",
"types": "build/src/index.d.ts",
"bin": {
"vl2png": "./bin/vl2png",
"vl2svg": "./bin/vl2svg",
"vl2pdf": "./bin/vl2pdf",
"vl2vg": "./bin/vl2vg"
},
"directories": {
"test": "test"
},
"scripts": {
"changelog": "conventional-changelog -p angular",
"build": "yarn build:only",
"build:only": "yarn tsc:src && rollup -c",
"postbuild": "terser build/vega-lite.js -cm --source-map content=build/vega-lite.js.map,filename=build/vega-lite.min.js.map -o build/vega-lite.min.js && yarn schema",
"prebuild:examples": "yarn build:only",
"build:examples": "yarn data && TZ=America/Los_Angeles scripts/build-examples.sh",
"prebuild:examples-full": "yarn build:only",
"build:examples-full": "TZ=America/Los_Angeles scripts/build-examples.sh 1",
"build:example": "TZ=America/Los_Angeles scripts/build-example.sh",
"build:toc": "yarn build:jekyll && scripts/generate-toc",
"build:site": "yarn tsc:site && rollup -c site/rollup.config.js",
"build:jekyll": "pushd site && bundle exec jekyll build -q && popd",
"build:versions": "scripts/update-version.sh",
"clean": "find build ! -name 'vega-lite-schema.json' -type f -delete && rm -rf site/data/* && rm -f examples/compiled/*.png && find site/examples ! -name 'index.md' ! -name 'data' -type f -delete",
"predeploy:site": "yarn presite",
"deploy:site": "gh-pages -d site",
"data": "rsync -r node_modules/vega-datasets/data/* site/data",
"schema": "mkdir -p build && ts-json-schema-generator -f tsconfig.json -p src/index.ts -t TopLevelSpec --no-type-check --no-ref-encode > build/vega-lite-schema.json && yarn renameschema && cp build/vega-lite-schema.json site/_data/",
"renameschema": "scripts/rename-schema.sh",
"presite": "yarn data && yarn schema && yarn build:site && yarn build:versions && scripts/create-example-pages.sh",
"site": "pushd site && bundle exec jekyll serve -I -l && popd",
"tsc:src": "tsc -b src/tsconfig.src.json",
"tsc:site": "tsc -b site/tsconfig.site.json",
"prettierbase": "prettier '**/*.{md,css,yml}'",
"eslintbase": "eslint --ext .ts .",
"format": "yarn eslintbase --fix && yarn prettierbase --write",
"lint": "yarn eslintbase && yarn prettierbase --check",
"test": "jest test/ && yarn lint && yarn schema && jest examples/ && yarn test:runtime",
"test:inspect": "node --inspect-brk ./node_modules/.bin/jest --runInBand test",
"test:runtime": "TZ=America/Los_Angeles jest test-runtime/",
"test:runtime:generate": "yarn build:only && rm -Rf test-runtime/resources && VL_GENERATE_TESTS=true yarn test:runtime",
"watch:build": "yarn build:only && concurrently --kill-others -n Typescript,Rollup 'yarn tsc:src -w' 'rollup -c -w'",
"watch:site": "concurrently --kill-others -n Typescript,Rollup 'yarn tsc:site -w' 'rollup -c site/rollup.config.js -w'",
"watch:test": "jest --watch"
},
"repository": {
"type": "git",
"url": "https://github.com/vega/vega-lite.git"
},
"license": "BSD-3-Clause",
"bugs": {
"url": "https://github.com/vega/vega-lite/issues"
},
"devDependencies": {
"@commitlint/cli": "^8.3.5",
"@commitlint/config-conventional": "^8.3.4",
"@rollup/plugin-commonjs": "11.0.2",
"@rollup/plugin-json": "^4.0.2",
"@rollup/plugin-node-resolve": "^7.1.1",
"@types/chai": "^4.2.11",
"@types/d3": "^5.7.2",
"@types/jest": "^25.1.4",
"@types/jest-environment-puppeteer": "^4.3.1",
"@types/mkdirp": "^1.0.0",
"@types/puppeteer": "^2.0.1",
"@typescript-eslint/eslint-plugin": "^2.24.0",
"@typescript-eslint/parser": "^2.24.0",
"ajv": "^6.12.0",
"chai": "^4.2.0",
"cheerio": "^1.0.0-rc.3",
"codecov": "^3.6.5",
"concurrently": "^5.1.0",
"conventional-changelog-cli": "^2.0.31",
"d3": "^5.15.0",
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.10.1",
"eslint-plugin-prettier": "^3.1.2",
"gh-pages": "^2.2.0",
"highlight.js": "^9.18.1",
"http-server": "^0.12.1",
"husky": "^4.2.3",
"jest": "^25.1.0",
"jest-puppeteer": "^4.4.0",
"lint-staged": "^10.0.8",
"mkdirp": "^1.0.3",
"prettier": "^2.0.1",
"puppeteer": "^2.1.1",
"rollup": "^2.1.0",
"rollup-plugin-sourcemaps": "^0.5.0",
"rollup-plugin-terser": "^5.3.0",
"svg2png-many": "^0.0.7",
"terser": "^4.6.7",
"ts-jest": "^25.2.1",
"ts-json-schema-generator": "^0.65.0",
"typescript": "~3.8.3",
"vega-cli": "^5.10.0",
"vega-datasets": "^1.30.2",
"vega-embed": "^6.5.1",
"vega-tooltip": "^0.22.0",
"vega-typings": "~0.14.2",
"yaml-front-matter": "^4.1.0"
},
"dependencies": {
"@types/clone": "~0.1.30",
"@types/fast-json-stable-stringify": "^2.0.0",
"array-flat-polyfill": "^1.0.1",
"clone": "~2.1.2",
"fast-deep-equal": "~3.1.1",
"fast-json-stable-stringify": "~2.1.0",
"json-stringify-pretty-compact": "~2.0.0",
"tslib": "~1.11.1",
"vega-event-selector": "~2.0.2",
"vega-expression": "~2.6.3",
"vega-util": "~1.13.1",
"yargs": "~15.3.1"
},
"peerDependencies": {
"vega": "^5.9.2"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"lint-staged": {
"*.ts": [
"eslint --fix",
"git add"
],
"*.{md,css,yml}": [
"prettier --write",
"git add"
]
},
"jest": {
"preset": "jest-puppeteer",
"transform": {
"^.+\\.tsx?$": "ts-jest"
},
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"json",
"node"
],
"testPathIgnorePatterns": [
"<rootDir>/node_modules",
"<rootDir>/build",
"<rootDir>/_site",
"<rootDir>/src"
],
"coverageDirectory": "./coverage/",
"collectCoverage": false
}
}