From 6d534d655a201d6897cd3f7a347af53b245104d4 Mon Sep 17 00:00:00 2001 From: Brian Takita Date: Mon, 30 Oct 2023 16:07:15 -0400 Subject: [PATCH] use size-limit library to track gzip size of the library: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit devDependencies ∋ size-limit ∋ @size-limit/preset-small-lib --- package.json | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index a610fb8e..655a129a 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,8 @@ }, "type": "module", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "test": "echo \"Error: no test specified\" && exit 1", + "test:size": "size-limit" }, "keywords": [ "Van", @@ -35,9 +36,11 @@ "author": "Tao Xin", "license": "MIT", "devDependencies": { + "@size-limit/preset-small-lib": "^9.0.0", "all-contributors-cli": "^6.26.1", "esbuild": "^0.17.12", "node-jq": "^2.3.5", + "size-limit": "^9.0.0", "terser": "^5.22.0", "typescript": "^5.1.6" }, @@ -49,5 +52,14 @@ "url": "https://github.com/vanjs-org/van/issues", "email": "bugs@vanjs.org" }, - "homepage": "https://vanjs.org" + "homepage": "https://vanjs.org", + "size-limit": [ + { + "name": "Van", + "import": { + "src/van.js": "van" + }, + "limit": "1009 B" + } + ] }