-
Notifications
You must be signed in to change notification settings - Fork 778
New build infrastructure + modularize codebase #264
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
Conversation
* add new dependencies
* Build with webpack * Bundle dependencies * Split the library into separate files based on API
PhantomJS appears not to support the full XHR2 spec. Test pass in Chrome but in PhantomJS they with DOM Exception 12 on the line where axios sets `XHR.responseType`
Errors thrown in the callbacks don’t bubble up to the calling test and make the tests timeout instead of fail.
bd2a8f4
to
6ffc765
Compare
…l faster. * add new dev dependencies * reformat test names in test.user
6ffc765
to
17dee9a
Compare
I'm against introducing a new tool (i.e. WebPack), especially for UMD. In the next version we'll use Babel and to address UMD there's a specific plugin: ES2015 modules to UMD transform. |
I would agree with you if the UMD wrapper was only benefit gained by adding webpack to the build chain, but webpack actually serves many purposes. (And it's easy to add
Decomposing the library results in more understandable code and a codebase that is easier to search.
|
Hi @clayreimann. Thank you for your reply.
If you mean to create a package containing everything needed, we aren't doing this. Personally I'd be against it but I'd love to have some thoughts from @Aendrew and @alexcanessa. By the way, this could be done with Browserify and its
ES6 allows that
ES6 allows that
Totally agree on that. I'm working on a project that extends the functionality of this library and it's a bit of a PITA. I had to create some weird workarounds. Said that, all this modularity can be achieved with ES6 natively. In conclusion I still don't see the need for a complete new build tool (we've still Gulp in place) for such simple project but I'm open to further this discuss this. |
@AurelioDeRosa Maybe we're talking past each other, so let me lay out the assumptions that I'm working under and what I thought the goals are. I thought:
In regards to your assertion:
This actually is the current state of affairs if you look at lines 17-37 you can see that where applicable the missing bits are getting That being said it would appear that Babel does have a polyfill for module loader and as such I'll investigate that. If it looks like it will do what we need (namely get all the objects from |
Major Changes:
Requestable
to replace the prior global functions_request
and_requestAllPages
axios
as the HTTP abstractionRequestable
)callbackWithError
Not Addressed:
isparta
to supplementistanbul
)