-
Notifications
You must be signed in to change notification settings - Fork 19
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
datauri 3.0 - RFC 🎉 #19
Comments
While Lerna is raising in popularity for larger projects, for the "lib + cli" case trend seems to go the other way these days. I think most people like having separated repos since it helps defining responsibility of each module and gives more flexibility for maintainers while reducing the overall size for people consuming only the library. With this in mind I would prefer to move forward with 2 github/npm.
No strong feelings either way, we should consider that a change is always an extra effort that will be time consuming. I think it's safe to have this on the backlog with a lower priority.
Same thing as above, maybe with a higher priority though since it's probably a less effort-demanding task and Istanbul is the standard for coverage these days.
I'll defer to whatever @caiogondim recommends for this one since I have no experience benchmarking libraries.
Is there any real reason to move back? I think ES6+ is def here to stay and Babel transpilation is popular enough. |
@ruyadorno Thanks for the input! Very reasonable thoughts. One more thing
VS.
|
@heldr I think exposing types as part of this package makes more sense. |
Closing this since for now I'll be focusing only in TS types. |
Since 1.0 release,
datauri
has taking off in matter of popularity.Based on that, I invited @ruyadorno and @caiogondim to be part of this, moving plans to next level with a new github org. This is the first step on the challenge to turn an old pet project into series of robust and open community tools.
Next step will be 2.0 version, which is expected to get a considerable perfomance boost, better docs and build process improvements. Those changes will not only help users but also contribution experience.
Besides a major release, compatibility might be taken into account, since many node modules rely on
datauri.js
as main transformer. I've listed below some possible things to change:Build and test
datauri
module anddatauri-cli
on a single monolithic repo using lerna.js instead of current code, or split them in 2 github projects?Module core. AKA
npm i datauri
datauri(['image1.jpg', 'image2.jpg'])
.require('datauri/buffer')
.pipe
instead of the current readable approach. Do not extendStream
class like 1.0 does. Probably moving it to a module likedatauri/stream
could be a kick start.async
andawait
already on node nightly builds.datauri-cli
install notice ifdatauri
is executed on cli. I forgot to implement it on version 1.CLI. AKA
npm i -g datauri-cli
cat image.jpg | datauri --copy
.datauri images/**/*.png --css
, that's where array bulk calls propose andPromise.all
would act.datauri https://image.jpg
. In factcurl -0 url | datauri
would solve it though.Docs
Future minor/pos 2.0 releases
datauri@next ideas, and possible datauri org projects
The text was updated successfully, but these errors were encountered: