From aaf370e16f4dcba42ffbb402394aa7abe5d6ec28 Mon Sep 17 00:00:00 2001 From: Thomas Date: Thu, 13 Dec 2018 10:32:14 +0100 Subject: [PATCH] included batch to minify the project --- .npmignore | 1 + README.md | 1 + minify.bat | 1 + package.json | 2 +- 4 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 minify.bat diff --git a/.npmignore b/.npmignore index cb69dda..6623efb 100644 --- a/.npmignore +++ b/.npmignore @@ -1,5 +1,6 @@ svg.lua test.lua +minify.bat /lua5.3.4-win64 .gitignore /node_module diff --git a/README.md b/README.md index b451f00..87471e0 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,7 @@ If you are using a custom test file, replace `test.lua` by your file name. ### minified version `svg-min.lua` generated with [luamin](https://github.com/mathiasbynens/luamin) *(Require NodeJS)* +If you installed luamin, you can use the script `minify.bat` included to minify the file `svg.lua` to `svg-min.lua` ## Documentation diff --git a/minify.bat b/minify.bat new file mode 100644 index 0000000..f21169e --- /dev/null +++ b/minify.bat @@ -0,0 +1 @@ +luamin -f svg.lua > lua-min.lua \ No newline at end of file diff --git a/package.json b/package.json index 21beca9..75e9374 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "svg-lua", - "version": "0.6.5", + "version": "0.6.6", "description": "lua lib to create svg content", "main": "svg-min.lua", "repository": { -- 2.51.2