Skip to content
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

Added new bundlesize-pipe executable, which accepts file contents fro… #91

Merged
merged 1 commit into from
Sep 8, 2017

Conversation

Andarist
Copy link
Contributor

@Andarist Andarist commented Aug 8, 2017

…m the stdin stream (fixes #90)

pipe.js Outdated
const debug = require('./src/debug')

if (Boolean(process.stdin.isTTY)) {
error('bundlesize-pipe executable is meant for usage with piped data.', { label: 'ERROR', exit: true })
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

option obejct could be omitted if this gets released - https://github.com/siddharthkp/prettycli/pull/3/files

@@ -15,7 +15,7 @@ config.map(file => {
} else {
paths.map(path => {
const size = gzip.sync(fs.readFileSync(path, 'utf8'))
const maxSize = bytes(file.threshold || file.maxSize) || Infinity
const maxSize = bytes(file.maxSize) || Infinity
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i have not found how this .threshold could land here, its probably some deprecated (and removed) option

@jagzviruz
Copy link

Can you resolve package-lock.json and raise a fresh pull ?

@Andarist
Copy link
Contributor Author

Andarist commented Sep 8, 2017

@jagzviruz Ive rebased this one instead. So its quite fresh right now :)

@SaraVieira
Copy link
Collaborator

@Andarist You have one lint error 😟

/home/travis/build/siddharthkp/bundlesize/src/readStream.js
1:20 error Missing space before function parentheses space-before-function-paren

@Andarist
Copy link
Contributor Author

Andarist commented Sep 8, 2017

@SaraVieira fixed, i believe this was introduced by some new rules which were not there when Ive created the PR

@SaraVieira
Copy link
Collaborator

@Andarist Very likely , I have updated a bunch of eslint rules a couple of weeks ago

@SaraVieira SaraVieira self-requested a review September 8, 2017 10:43
@reznord reznord merged commit 0b4ea0b into siddharthkp:master Sep 8, 2017
@Andarist Andarist deleted the accept-piped-stream branch September 8, 2017 11:10
@Andarist
Copy link
Contributor Author

Andarist commented Sep 8, 2017

@SaraVieira @reznord thanks for merging :) whats ur release cycle, when I can expect to have this published? No rush ofc, just asking

@SaraVieira
Copy link
Collaborator

If everyone os okay with it I can do a minor release of this today☺️

@reznord @jagzviruz

@palashmon
Copy link
Collaborator

Yup, go ahead!

Once a version is released, just tag me here once so that I can test if the install is working fine and there is no issue like #130

@Andarist
Copy link
Contributor Author

Andarist commented Oct 4, 2017

@SaraVieira just pinging about the release :P

@SaraVieira
Copy link
Collaborator

SaraVieira commented Oct 4, 2017

@Andarist omg I am so sorry , I have been doing a 100 stuff and forgot , if you ever meet me in person I do owe you coffee or beer :(

Published:
https://github.com/siddharthkp/bundlesize/releases/tag/v0.15.1
https://www.npmjs.com/package/bundlesize

@Andarist
Copy link
Contributor Author

Andarist commented Oct 4, 2017

@SaraVieira not a problem, i totally understand how it is to take too much on yourself

@SaraVieira
Copy link
Collaborator

Still if you ever in lisbon ping me and I shall get you coffee 🙌

Thank you for the ping and the understanding 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[feature request] Accept piped file
5 participants