Skip to content

Commit 53a18b6

Browse files
YerkoPalmayoshuawuyts
authored andcommitted
add build step (#116)
1 parent 4096c84 commit 53a18b6

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

package.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,19 @@
33
"description": "HTML template strings for the Browser with support for Server Side Rendering in Node.",
44
"repository": "choojs/nanohtml",
55
"version": "1.1.0",
6+
"main": "index.js",
7+
"files": [
8+
"index.js",
9+
"raw.js",
10+
"lib",
11+
"types",
12+
"dist"
13+
],
614
"types": "./types/index.d.ts",
715
"scripts": {
816
"bench": "node bench/server.js && browserify bench/client.js | tape-run",
17+
"build": "mkdir -p dist/ && browserify index -s html -p bundle-collapser/plugin > dist/bundle.js && browserify index -p tinyify > dist/bundle.min.js && cat dist/bundle.min.js | gzip --best --stdout | wc -c | pretty-bytes",
18+
"prepublishOnly": "npm run build",
919
"test": "standard && node tests && npm run test:browser && npm run test:transform-browser && npm run test:babel-browser",
1020
"test:browser": "browserify tests/browser | tape-run",
1121
"test:transform-browser": "node tests/transform/build | tape-run",
@@ -31,11 +41,13 @@
3141
"babelify": "^8.0.0",
3242
"browserify": "^16.1.1",
3343
"bubleify": "^1.1.0",
44+
"bundle-collapser": "^1.3.0",
3445
"choo": "^6.9.0",
3546
"pify": "^3.0.0",
3647
"standard": "^10.0.3",
3748
"tape": "^4.8.0",
38-
"tape-run": "^3.0.4"
49+
"tape-run": "^3.0.4",
50+
"tinyify": "^2.4.0"
3951
},
4052
"keywords": [
4153
"choo",

0 commit comments

Comments
 (0)