/
package.json
48 lines (48 loc) · 1.67 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
{
"name": "@wikimedia/codex-icons",
"version": "0.1.1",
"description": "Icons for Codex",
"author": "Wikimedia Foundation (https://wikimediafoundation.org/)",
"homepage": "https://doc.wikimedia.org/codex/",
"repository": {
"type": "git",
"url": "https://gerrit.wikimedia.org/g/design/codex/"
},
"bugs": "https://phabricator.wikimedia.org/tag/codex/",
"license": "MIT",
"engines": {
"npm": ">=7.21.0",
"node": ">=14"
},
"main": "dist/codex-icons.umd.js",
"module": "dist/codex-icons.es.js",
"types": "./dist/types/index.d.ts",
"files": [
"dist"
],
"scripts": {
"build": "npm run minify:svg && npm run build:vite && npm run build:svg && npm run build:json && npm run test:output",
"build:vite": "vite build",
"build:json": "node ./buildIconsJson.js",
"build:svg": "cp -a src/images dist/",
"build-if-missing": "test -e dist/codex-icons.json || npm run build",
"lint": "npm run lint:ts",
"lint:ts": "tsc --noEmit --emitDeclarationOnly false",
"minify:svg": "svgo --config=.svgo.config.js --quiet --recursive --folder ./src/images",
"test": "npm run lint && npm run build && npm run test:clean-git && npm run test:unit",
"test:unit": "jest -c .jest/jest.config.json",
"test:output": "npm run test:unit -- tests/outputTypes.test.ts --coverage=false",
"test:clean-git": "test $(git diff ./src/images | wc -l) -eq 0 || (echo 'Uncommitted SVG changes:'; git diff ./src/images; false)"
},
"devDependencies": {
"@rollup/pluginutils": "^4.1.1",
"@rollup/plugin-typescript": "^8.3.0",
"@types/estree": "^0.0.51",
"@types/jest": "^27.0.2",
"@types/svgo": "^2.6.0",
"jest": "^27.3.1",
"svgo": "^2.8.0",
"typescript": "^4.8.2",
"vite": "^3.0.9"
}
}