-
Notifications
You must be signed in to change notification settings - Fork 2k
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
How to build 2.0? #4564
Comments
Thanks for the issue. Agreed we need to get the gulpfile cleaned up. The gulp tasks there were mainly for spot-checking the size of a minified polymer as well as testing closure compiler build/linting, but got into a state of disrepair since we don't actually use them on a regular basis. Probably more than you were asking for, but here's background on our release/distribution plans: The plan for the initial Polymer 2.0 release is actually to distribute the core library as raw ES6 source (unbundled/untranspiled/unminified, hence the gulpfile isn't really in the release workflow), and allow users to perform those tasks at the deployment step as their conditions dictate, e.g. using Polymer CLI. There are a few different reasons for this approach:
We're also very interested in plugging into the "module ecosystem" as well, so we may very well end up shipping Polymer in a more traditional format (and adapt the gulpfile for build output suitable to that), but haven't quite landed on the final shape of that yet. In the meantime though, as you pointed out, we need to fix the gulpfile to not explode. |
Remove cruft from 1.x Remove default task, rename "build" to "estimate-size" to reflect the actual task Related to #4564
Thanks a lot for those details, makes sense! Just as a side note, will all of following: Chromium, Firefox, Edge and Safari, support all ES2015 features necessary for Polymer in 2 latest releases as of today (I'd like to eliminate transpiling process entirely)? |
@nazar-pc Correct, no transpilation needed for latest release of all 4 major browsers. If you choose to use the CLI
One note that Edge 14 does have some bugs in their ES6 impl (a particularly bad one where constructing an ES6 class too many times blows up) and so we recommend transpiling Edge and do so by default in the CLI tools (although I believe Edge 15 has resolved this). |
Closing, as gulpfile was cleaned up in #4565. The following gulp tasks are implemented (and
|
Description
Building master branch seems impossible.
Steps to Reproduce
Expected Results
No errors
Actual Results
Versions
The text was updated successfully, but these errors were encountered: