/
package.json
87 lines (87 loc) · 3.13 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
{
"name": "typograf",
"description": "The client and server typography",
"version": "7.4.0",
"author": {
"name": "Denis Seleznev",
"email": "hcodes@yandex.ru",
"url": "https://github.com/typograf/typograf"
},
"main": "dist/typograf.js",
"module": "dist/typograf.es.mjs",
"exports": {
"types": "./dist/typograf.d.ts",
"require": "./dist/typograf.js",
"import": "./dist/typograf.es.mjs"
},
"homepage": "https://github.com/typograf",
"license": "MIT",
"repository": {
"type": "git",
"url": "git://github.com/typograf/typograf.git"
},
"keywords": [
"typo",
"text",
"typograf",
"typographer",
"typography"
],
"engines": {
"node": ">= 4"
},
"files": [
"dist",
"docs",
"LICENSE",
"README.md",
"CHANGELOG.md"
],
"devDependencies": {
"@rollup/plugin-typescript": "^11.1.6",
"@types/jest": "^29.5.12",
"@typescript-eslint/eslint-plugin": "^7.0.2",
"@typescript-eslint/parser": "^7.0.2",
"cpy-cli": "^5.0.0",
"del-cli": "^5.1.0",
"eslint": "^8.56.0",
"jest": "^29.7.0",
"postcss": "^8.4.35",
"postcss-cli": "^11.0.0",
"postcss-import": "^16.0.1",
"postcss-import-ext-glob": "^2.1.1",
"rollup": "^4.12.0",
"sort-keys": "^5.0.0",
"ts-jest": "^29.1.1",
"tslib": "^2.6.2",
"typescript": "^5.3.3",
"uglify-js": "^3.17.4"
},
"scripts": {
"version": "node -p \"'export const PACKAGE_VERSION = \\'' + require('./package.json').version + '\\';'\" > src/version.ts",
"prepare": "npm run dist",
"clean": "del-cli dist/* build/*",
"benchmark": "node benchmark/benchmark.mjs",
"build": "npm run build:part1 && npm run build:part2",
"build:part1": "npm run clean && npm run version && npm run build:groups && npm run build:titles && npm run build:js",
"build:part2": "npm run build:es-js && npm run build:all-js && npm run build:copyright && npm run build:css",
"build:css": "postcss --no-map src/typograf.css -o ./build/typograf.css",
"build:js": "rollup --config rollup.config.mjs",
"build:es-js": "rollup --config rollup.config.es.mjs",
"build:all-js": "rollup --config rollup.config.all.mjs",
"build:groups": "cpy --rename=typograf.{{basename}} --flat src/groups.json build/ && node tools/groups.mjs",
"build:titles": "node tools/titles.mjs",
"build:md": "node tools/md.mjs",
"build:copyright": "node tools/copyright.mjs build/typograf.js build/typograf.es.mjs build/typograf.all.js",
"minimize:js": "uglifyjs -c -m --comments '/^!/' -O ascii_only ./build/typograf.js -o ./build/typograf.min.js",
"minimize:all-js": "uglifyjs -c -m --comments '/^!/' -O ascii_only ./build/typograf.all.js -o ./build/typograf.all.min.js",
"dist": "npm run build && npm run minimize:js && npm run minimize:all-js && npm run build:md && npm run dist:copy && npm run dist:typings",
"dist:copy": "cpy 'build/typograf.*' dist/",
"dist:typings": "cpy 'build/src/**/*.d.ts' dist/",
"test": "npm run build:part1 && npm run eslint && npm run unit-test",
"eslint": "eslint .",
"unit-test": "jest .",
"typecheck": "tsc --noEmit"
},
"typings": "./dist/typograf.d.ts"
}