-
Notifications
You must be signed in to change notification settings - Fork 62
Npm babel7 #149
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
Npm babel7 #149
Conversation
|
I'll get on this right away. Thank you SO much for your help, you don't know what it means to me. :) |
|
Quick question, does |
|
Also, did I do what you were looking for? I've removed bower support obviously, and as a result I moved to Babel from Browserify. Not being 100% up to speed on browser development these days, is this repo npm-consumable by other web-based projects? |
|
Apologies, I should have brought that up re: preset-env... It defaults to "@babel/preset-es2015, @babel/preset-es2016 and @babel/preset-es2017 together". However, since it is not so meaningful to just target a version or versions of JavaScript independent of the browsers/environments one wishes to support, especially since some environments may support part of a spec, preset-env lets you specify the specific supporting browsers/envrionments you want to compile for (see https://babeljs.io/docs/en/babel-preset-env#browserslist-integration and https://github.com/browserslist/browserslist#full-list ). We could give a target of "cover 100%" to be fully backward compatible, though that may bloat things, especially if the source uses a lot of ES6+ features. (This On a related note, I'm wondering if you are ok with moving toward more ES6 features in source, such as preferring Note, however, that if source uses I personally like to require the polyfill as it gives one freedom to use succinct, clear, and modern structures in source, and many projects depend on But we can support ES6 Modules in source (and dist) without the polyfill, so I'm hoping to add that in a PR... |
|
Yes, your commits were a big help, and gave me the energy to tweak things a little bit more. As far as modern browser-development readiness, for compilers like webpack or rollup, while I see you've included Similarly, I'd like to add the Note that even if source is expressed as an ES6 module, one will likely want or need a separate ES6 Module distribution file, whether because of the desire to bundle the modules into a single file or because the browser won't understand the likes of |
|
Are you dead-set on using Webpack? I find Rollup much easier, and it has no problem providing an ES distribution... While I got it to work in Webpack, it only seems to build correctly with the CLI and despite using the same config, not with the Node API run by Gulp... I find Webpack very frustrating to use, and apparently others do too... |
|
Would you be open to a PR which used Rollup at least for the ES distribution portion? |
|
There is so much to respond to, I'll do my best.
When it comes to ES6 and fine tuning what I've already done to be more appropriate, I'd love to collaborate on this. And as usual, PRs are always welcome. |
|
I've not used |
|
Ok, thanks, that is helpful. I think the only remaining item for this particular PR, unless you have any other concerns, is determining which |
|
I did some digging and even the webpack project suggests rollup since |
|
As for coverage, follow convention for similar projects I guess. I do not have an opinion. But that was one of the benefits of using ES2015, all major browsers support it. |
da7b334 to
c5418a4
Compare
|
After rebasing, I'm not able to complete the default Gulp steps due to a synk "Not authorised" error. |
|
Yeah, switching to |
|
4247303 no longer runs |
2bbd338 to
9eeff8d
Compare
|
I've gone ahead and rebased. I also updated npm packages (except Gulp) further, added a |
|
The Travis failure appears to be due to Synk... |
|
I have updated TravisCI to no longer run |
…@babel/preset-env - npm: Avoid lodash as devDep since already dep
- npm: Update devDeps to latest versions
…pacing output and default display - npm: Update commander dep and `package-lock.json`
- npm: Simplify `test` script and add `gulp` script - Linting (ESLint): Add `.eslintignore`
|
I've rebased (and it is now passing). |
|
Thanks a lot @brettz9! |
|
@brettz9 Any chance you still plan on doing a PR to migrate from webpack to rollup? |
|
I hope to at some point, but please be aware my health is poor and I've been having a down spell these days, not able to work at all... But may be better with warmer weather... |
|
@brettz9 I am sorry to hear that, I hope things get better for you. If I can help in any way, let me know. |
|
Thank you |
|
I've been feeling better, so was able to submit PR #162 |
Thanks very much for your npm commits...
I have expanded on that to update all of your deps and devDeps, including moving to Babel 7 and fixing your CLI test expectations due to the new
commanderhelp and error format...The commit messages have further detail on the rationale for the changes made...If you can review this and #134 , I'd like to prepare a PR for an ES6 distribution (for browsers that can use ES6 modules directly) as well as add
browserandmoduletopackage.json...