-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
40 lines (40 loc) · 1.68 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
{
"name": "wysiwyg-functions",
"description": "wysiwyg-functions",
"version": "0.1.0",
"author": "Dealcraft <[email protected]> (https://dealcraft.de)",
"main": "dist/index.js",
"module": "dist/index.min.mjs",
"unpkg": "dist/index.umd.min.js",
"types": "dist/index.d.ts",
"files": [
"dist"
],
"scripts": {
"dev": "npx tsc --watch",
"clean": "rm -fr dist",
"build": "npm run clean && npx tsc --build && npm run bundle:esm && npm run bundle:esm:min && npm run bundle:umd && npm run bundle:umd:min && npm run build:stats && npm run build:styles",
"build:stats": "(echo '\\033[35;3m' ; cd dist && ls -lh index*js index*gz | tail -n +2 | awk '{print $5,$9}')",
"build:styles": "cp -a src/css/. dist/styles",
"bundle:esm": "rollup dist/index.js --file dist/index.mjs --format esm",
"bundle:esm:min": "terser --ecma 6 --compress --mangle --module -o dist/index.min.mjs -- dist/index.mjs && gzip -9 -c dist/index.min.mjs > dist/index.min.mjs.gz",
"bundle:umd": "rollup dist/index.js --file dist/index.umd.js --format umd --name sayHello",
"bundle:umd:min": "terser --ecma 6 --compress --mangle -o dist/index.umd.min.js -- dist/index.umd.js && gzip -9 -c dist/index.umd.min.js > dist/index.umd.min.js.gz",
"prepublish": "npm run build && npm pack",
"publish": "npm run prepublish && npm publish"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Dealcraft/wysiwyg.git"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/Dealcraft/wysiwyg/issues"
},
"homepage": "https://github.com/Dealcraft/wysiwyg#readme",
"devDependencies": {
"rollup": "^3.17.2",
"terser": "^5.16.4",
"typescript": "^4.9.5"
}
}