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

Bundlesize follow-up #14459

Merged
merged 2 commits into from
Apr 6, 2018
Merged

Conversation

dreamofabear
Copy link

Follow-up to #14405.

  • Bump v0.js limit to account for --fortesting
  • Terminate process on failure

/to @rsimha

@dreamofabear dreamofabear requested a review from rsimha April 6, 2018 01:15
gulpfile.js Outdated
const cmd = `npx bundlesize -f "${file}" -s "${size}"`;
log(green('Running ') + cyan(cmd) + green('...\n'));
const p = exec(cmd);
if (p.status != 0) {
log(red('ERROR:'), cyan('bundlesize'), 'found that amp.js/v0.js has ' +
'exceeded its size cap. This is part of a new effort to reduce ' +
'AMP\'s binary size (#14392). Please contact @choumx for assistance.');
process.exit(p.status);
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you want to do this during local dev as well? Perhaps gate this on process.env.TRAVIS?

@dreamofabear dreamofabear merged commit 75cdb4a into ampproject:master Apr 6, 2018
@dreamofabear dreamofabear deleted the bundlesize-deux branch April 6, 2018 03:34
glevitzky pushed a commit that referenced this pull request Apr 27, 2018
* Bump v0.js bundle size limit to account for --fortesting and terminate process on failure.

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

Successfully merging this pull request may close these issues.

3 participants