From 9941275ff7273845a74ad5e9b39236c34a8a8bb1 Mon Sep 17 00:00:00 2001 From: Rasmus Andersson Date: Fri, 16 Oct 2020 15:07:01 -0700 Subject: [PATCH] adds print-gzip-size npm script --- package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 8823518..c947d0a 100644 --- a/package.json +++ b/package.json @@ -27,8 +27,10 @@ "scripts": { "build": "wasmc", "build-debug": "wasmc -g", + "build-watch": "wasmc -g -w", "test": "wasmc -quiet && bash test/test.sh >/dev/null && echo OK", - "update-web": "cp dist/markdown.js dist/markdown.wasm docs/" + "update-web": "cp dist/markdown.js dist/markdown.wasm docs/", + "print-gzip-size": "echo 'dist/markdown.{js,wasm} gzipped:' $(gzip -9 -c dist/markdown.js dist/markdown.wasm | wc -c | cat) bytes" }, "author": "Rasmus Andersson ", "license": "MIT",