-
Notifications
You must be signed in to change notification settings - Fork 37
Add Bundle Report #378
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Bundle Report #378
Conversation
a04587d to
c4dc1b8
Compare
c4dc1b8 to
1b66af2
Compare
|
Hey, this is ready. It adds two commands |
|
Hi, I like this addition! Just wondering if we need |
|
Done |
arturkot
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
| "build-report": "gulp build && gulp report", | ||
| "dev": "gulp", | ||
| "lint": "gulp lint-js && gulp lint-css", | ||
| "report": "gulp report", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, that was quick. 😅
| const os = require('os'); | ||
| const opn = require('opn'); | ||
|
|
||
| const MEBIBYTE = 1024 * 1024; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MEGABYTE? :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wanted to be precise, mega while more often used is confusing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it. Should've asked Google before writing. ;) https://en.wikipedia.org/wiki/Mebibyte
|
|
||
| Object.keys(files) | ||
| .sort() | ||
| .forEach(link => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm. Maybe .map instead of pushing using forEach? You could return a string with tr. A bit less writing. Unless I missed something. 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, done.
Fixes #325