forked from opentypejs/opentype.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
90 lines (90 loc) · 3.49 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
{
"name": "opentype.js",
"description": "OpenType font parser",
"author": {
"name": "Frederik De Bleser",
"email": "[email protected]"
},
"keywords": [
"graphics",
"fonts",
"font",
"opentype",
"otf",
"ttf",
"woff",
"type"
],
"license": "MIT",
"repository": {
"type": "git",
"url": "git://github.com/opentypejs/opentype.js.git"
},
"main": "./dist/opentype.js",
"browser": "./dist/opentype.js",
"module": "./dist/opentype.module.js",
"scripts": {
"build": "npm run b:umd && npm run b:esm",
"dist": " npm run d:umd && npm run d:esm",
"test": "npm run build && npm run dist && mocha --require reify --recursive && npm run lint",
"lint": "eslint src",
"lint-fix": "eslint src --fix",
"start": "esbuild --bundle src/opentype.js --outdir=dist --external:fs --target=es2018 --format=iife --out-extension:.js=.js --global-name=opentype --footer:js=\"(function (root, factory) { if (typeof define === 'function' && define.amd)define(factory); else if (typeof module === 'object' && module.exports)module.exports = factory(); else root.opentype = factory(); }(typeof self !== 'undefined' ? self : this, () => ({...opentype,'default':opentype})));\" --watch --servedir=. --footer:js=\"new EventSource('/esbuild').addEventListener('change', () => location.reload())\"",
"b:umd": "esbuild --bundle src/opentype.js --outdir=dist --external:fs --target=es2018 --format=iife --out-extension:.js=.js --global-name=opentype --footer:js=\"(function (root, factory) { if (typeof define === 'function' && define.amd)define(factory); else if (typeof module === 'object' && module.exports)module.exports = factory(); else root.opentype = factory(); }(typeof self !== 'undefined' ? self : this, () => ({...opentype,'default':opentype})));\"",
"d:umd": "esbuild --bundle src/opentype.js --outdir=dist --external:fs --target=es2018 --format=iife --out-extension:.js=.min.js --global-name=opentype --footer:js=\"(function (root, factory) { if (typeof define === 'function' && define.amd)define(factory); else if (typeof module === 'object' && module.exports)module.exports = factory(); else root.opentype = factory(); }(typeof self !== 'undefined' ? self : this, () => ({...opentype,'default':opentype})));\" --minify --sourcemap",
"b:esm": "esbuild --bundle src/opentype.js --outdir=dist --external:fs --target=es2018 --format=esm --out-extension:.js=.module.js",
"d:esm": "esbuild --bundle src/opentype.js --outdir=dist --external:fs --target=es2018 --format=esm --out-extension:.js=.module.min.js --minify --sourcemap"
},
"devDependencies": {
"esbuild": "^0.17.7",
"eslint": "^8.34.0",
"mocha": "^8.4.0",
"reify": "^0.20.12"
},
"bin": {
"ot": "./bin/ot"
},
"files": [
"dist"
],
"sideEffects": false,
"eslintConfig": {
"env": {
"browser": true,
"es2021": true,
"node": true
},
"plugins": ["eslint-plugin-local-rules"],
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"rules": {
"indent": [
"error",
4,
{
"SwitchCase": 1
}
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"always"
],
"local-rules/ban-foreach": 2,
"local-rules/import-extensions": 2
}
},
"dependencies": {
"eslint-plugin-local-rules": "^1.3.2"
}
}