Skip to content

Commit

Permalink
build(dist-size): update output to generate valid markdown for README
Browse files Browse the repository at this point in the history
  • Loading branch information
seangwright committed Sep 28, 2022
1 parent 4be699a commit d264195
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@ const maybe = Maybe.some('test');

The distributed library is currently not minified. Below are the module sizes when minified (using UglifyJs) and GZipped:

api.js: 0.17 kb
index.js: 0.09 kb
maybe.js: 0.81 kb
maybe.utilities.js: 0.27 kb
maybeAsync.js: 0.63 kb
result.js: 1.25 kb
resultAsync.js: 0.71 kb
unit.js: 0.13 kb
utilities.js: 0.27 kb
- api.js: 0.17 kb
- index.js: 0.09 kb
- maybe.js: 0.81 kb
- maybe.utilities.js: 0.27 kb
- maybeAsync.js: 0.63 kb
- result.js: 1.25 kb
- resultAsync.js: 0.71 kb
- unit.js: 0.13 kb
- utilities.js: 0.27 kb

Total: 4.32 kb

Expand Down
2 changes: 1 addition & 1 deletion scripts/dist-size.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ for (const file of files.filter((f) => f.endsWith('.js'))) {
const size = await gzipSize(code);
total += size;

console.log(`${file}: ${kb(size)} kb`);
console.log(`- ${file}: ${kb(size)} kb`);
}

console.log(`\r\nTotal: ${kb(total)} kb`);
Expand Down

0 comments on commit d264195

Please sign in to comment.