-
Notifications
You must be signed in to change notification settings - Fork 5k
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
ES2015ify the gulpfile #1677
ES2015ify the gulpfile #1677
Conversation
Love it! Will take a closer look at the code shorty. Drone is failing because it looks like we need to tweak the customizer to play well with this setup, something we wanted to do anyways. We should probably do that in a separate PR. Does JSCS/JSHint have ES6 enabled already or is linting going to fail? |
JSCS parses ES2015 by default. |
Code reviewed and changes LGTM. We just need to nail down the issues around Drone failing:
Personal preference is that we figure out what needs to be updated in the Customiser to make it play well with this setup prior to landing this change. Other team members are working against master so we probably want to avoid breaking their workflow prematurely :) |
09c62a2
to
3a304be
Compare
Figured out the issue. The Drone is now passing. The problem was that the Babel require hook hooks all requires, so it tried to ES2015ify the "docs/_assets/customizer.js" file, which didn't work. It will now only transpile the gulpfile: https://github.com/google/material-design-lite/pull/1677/files#diff-b9cfc7f2cdf78a7f4b91a753d10865a2R79 |
Fantastic. Thanks once again for the PR, @sindresorhus! 🐴 ✨ 😍 |
🎉 |
Nicer syntax. Less code. Why not.
Gulp and Babel handles this for us. It just works.
// @addyosmani @surma