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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃彈 Ensure valid flag usage for gulp tasks #26814

Merged
merged 3 commits into from
Feb 16, 2020
Merged

馃彈 Ensure valid flag usage for gulp tasks #26814

merged 3 commits into from
Feb 16, 2020

Conversation

rsimha
Copy link
Contributor

@rsimha rsimha commented Feb 14, 2020

Developers have frequently run into problems due to incorrect flag usage, where the recommended usage is not always obvious.

This PR checks for valid flag usage during the invocation of each gulp task, and prints a list of valid flags when invalid usage is detected.

Screen Shot 2020-02-14 at 9 41 41 PM

Copy link
Contributor

@kristoferbaxter kristoferbaxter left a comment

Choose a reason for hiding this comment

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

Great idea! Thanks for doing this.

gulpfile.js Show resolved Hide resolved
gulpfile.js Show resolved Hide resolved
@rsimha rsimha merged commit 1461da8 into ampproject:master Feb 16, 2020
@rsimha rsimha deleted the 2020-02-14-ValidFlags branch February 16, 2020 18:47
robinvanopstal added a commit to jungvonmatt/amphtml that referenced this pull request Feb 17, 2020
* master: (181 commits)
  馃彈 Ensure valid flag usage for `gulp` tasks (ampproject#26814)
  build-system: Fix autocomplete error response (ampproject#26824)
  application/json is ab allowed type for <script> (ampproject#26815)
  馃毊 Removing amp-consent-v2 experiment logic (ampproject#26162)
  Fix more arrow functions that are passed in as "constructors" (ampproject#26795)
  Variable substitution tester  (ampproject#26695)
  Turn on restrict fullscreen canary (ampproject#26766)
  Mock variableService getMacros  (ampproject#26300)
  Sync from Google (ampproject#26805)
  Sync from Google (ampproject#26803)
  Move video_state macro (ampproject#26212)
  馃殌 Move ads variables to amp-analytics (ampproject#25113)
  Sync from Google (ampproject#26800)
  Sync from Google (ampproject#26798)
  Sync from Google (ampproject#26792)
  Another set of example.com change (ampproject#26753)
  Add PWA multidoc loader to examples (ampproject#26680)
  馃悰Check for window null before creating tracking pixel (ampproject#26749)
  trying to update Sauce timeouts (ampproject#26737)
  馃悰Fixes swipe to dismiss badly ordered swipes on `amp-lightbox-gallery` (ampproject#26788)
  ...

# Conflicts:
#	extensions/amp-accordion/amp-accordion.md
#	extensions/amp-bind/amp-bind.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants