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

gulp integration build command consistency #24830

Merged
merged 1 commit into from Oct 1, 2019

Conversation

powerivq
Copy link
Contributor

We need to run gulp build if we want to use unminimized bundle (amp.js vs v0.js). This PR fixes the problem that gulp integration by default does not build the right bundle it requires.

@powerivq powerivq merged commit a83aeb8 into ampproject:master Oct 1, 2019
@powerivq powerivq deleted the fix-test-compiled branch October 1, 2019 20:23
execOrDie(`gulp dist --fortesting --config ${argv.config}`);
} else {
execOrDie(`gulp build --config ${argv.config}`);
}
Copy link
Contributor

@rsimha rsimha Oct 4, 2019

Choose a reason for hiding this comment

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

@powerivq gulp integration defaults to running against compiled code in the absence of --nobuild. This PR should have changed this block:

if (argv.compiled || !argv.nobuild) {
log(green('Running tests against minified code.'));
} else {
log(green('Running tests against unminified code.'));
}

There might be other places that need to be changed as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks. Defaulting to testing compiled code is great. I am seeing it actually using unminimized version of files though. I can talk a further look at why.

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.

None yet

4 participants