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

feat: add bundlesize support to the build cmd #335

Merged
merged 6 commits into from
Feb 21, 2019
Merged

Conversation

hugomrdias
Copy link
Member

No description provided.

@ghost ghost assigned hugomrdias Feb 20, 2019
@ghost ghost added the status/in-progress In progress label Feb 20, 2019
Copy link
Member

@vasco-santos vasco-santos left a comment

Choose a reason for hiding this comment

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

Nice! Except for a minor detail, this looks good!

if (argv.bundlesize) {
return webpack
.then(r => {
return execa('bundlesize', ['-f', './dist/index.min.js', '-s', getUserConfig().bundlesize || '100kB'], {
Copy link
Member

Choose a reason for hiding this comment

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

What about having a constants.js for the defaults used in aegir?

We probably have more default constants such as this 100kB and it would be easier to have those all together. We can start with this one and move the remaining ones later?

Copy link
Member

@vasco-santos vasco-santos left a comment

Choose a reason for hiding this comment

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

LGTM!

@hugomrdias hugomrdias merged commit 55b92a6 into master Feb 21, 2019
@hugomrdias hugomrdias deleted the feat/bundle-size branch February 21, 2019 13:56
@ghost ghost removed the status/in-progress In progress label Feb 21, 2019
hugomrdias added a commit to ipfs/js-ipfsd-ctl that referenced this pull request Feb 21, 2019
This PR adds a workaround to the windows secrets problem
```
jobs:
  include:
    - os: windows
      filter_secrets: false
```
because we need to give bundlesize a token but we **should be very careful with this**. 
This disables the log secrets filtering making the token available if you echo the ENV var.
In this case is acceptable because the token only has access to commit_status in this repo.

needs:
[ipfs/aegir#feat/bundle-size](ipfs/aegir#335)
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.

3 participants