-
Notifications
You must be signed in to change notification settings - Fork 479
/
package.json
50 lines (50 loc) · 2.79 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
{
"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.mjs",
"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 --recursive && npm run lint",
"lint": "eslint src",
"lint-fix": "eslint src --fix",
"start": "esbuild --bundle src/opentype.mjs --outdir=dist --target=es2018 --format=esm --out-extension:.js=.mjs --define:DEBUG=false --global-name=opentype --watch --servedir=. --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})));\" --footer:js=\"new EventSource('/esbuild').addEventListener('change', () => location.reload())\"",
"b:umd": "esbuild --bundle src/opentype.mjs --outdir=dist --target=es2018 --format=iife --out-extension:.js=.js --define:DEBUG=false --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.mjs --outdir=dist --target=es2018 --format=iife --out-extension:.js=.min.js --define:DEBUG=false --global-name=opentype --minify --sourcemap --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})));\"",
"b:esm": "esbuild --bundle src/opentype.mjs --outdir=dist --target=es2018 --format=esm --out-extension:.js=.mjs --define:DEBUG=false",
"d:esm": "esbuild --bundle src/opentype.mjs --outdir=dist --target=es2018 --format=esm --out-extension:.js=.min.mjs --define:DEBUG=false --minify --sourcemap"
},
"devDependencies": {
"mocha": "^10.7.3",
"esbuild": "^0.23.1",
"eslint": "^9.10.0"
},
"bin": {
"ot": "./bin/ot"
},
"files": [
"dist"
],
"sideEffects": false
}