Skip to content

Commit ab7a49d

Browse files
committed
Add size scripts
1 parent 2cf8a4a commit ab7a49d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
"devDependencies": {
5151
"c8": "^7.0.0",
5252
"commonmark.json": "^0.30.0",
53+
"esbuild": "^0.12.0",
5354
"gzip-size-cli": "^5.0.0",
5455
"hast-util-to-html": "^8.0.0",
5556
"mdast-util-to-hast": "^11.0.0",
@@ -60,11 +61,12 @@
6061
"remark-cli": "^9.0.0",
6162
"remark-preset-wooorm": "^8.0.0",
6263
"tape": "^5.0.0",
64+
"terser": "^5.0.0",
6365
"unified": "^9.0.0",
6466
"xo": "^0.39.0"
6567
},
6668
"scripts": {
67-
"build": "micromark-build",
69+
"build": "micromark-build && esbuild . --bundle --minify | terser | gzip-size --raw",
6870
"format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
6971
"test-api": "node --conditions development test/index.js",
7072
"test-coverage": "c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov node --conditions development test/index.js",

0 commit comments

Comments
 (0)