-
Notifications
You must be signed in to change notification settings - Fork 8
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
Review Gulp Guidelines #16
Comments
Yeah, the Gulp Guidelines are good, and they do apply.
No, not just the prefixer—all of the translation code. There should be a standalone Translation with I'm imagining something like:
|
👍 👍 |
I like this project, but I think it would be great if it was a real gulp plugin. Currently, you will do your stuff (minify, compile, etc.) in separate task and pipe it to a distribution folder. Then you translate every script in this folder. If you need post-translate processing (I know it's rare, but it can happen), you do it in third task. Right? Stuff like this:
If you think about it, you can replace the
or even this:
You don't really need gulp for this, because it does not behave like a gulp plugin. I think it would be great if it worked like this:
Why? Well, for number of reasons: Imagine ES6 module-based app translated into 4 languages. In our case, only ~10% of ~230 modules ale localized. I don't want to have 920 (4x230) .js files in our WebServer cache. 299 (4x23 = 92 + 207) is much better. Currently, I can't decide which modules should or should not be translated. And if I want to modify import paths to localized modules ( |
If you guys plan to maintain this, I can help you... |
Hi @tSte! Thanks for your interest in this project. Correct me if I'm wrong, I think a different way to phrase your request is:
This is a sensible API change. Such work is not necessarily related to this particular ticket and can happen before/after this ticket (almost certainly before since I don't had much time to devote to this project). I would gladly review and accept a pull request. As for post-processing, it can still be done—one would configure the post-processing task to consume files from the |
To encourage community investment in this plugin, I think we should review the Gulp Guidelines. The main thing I've noticed is the plugin is doing too much:
I think the JSON URL prefixer should be it's own plugin.
I think if we follow these guidelines within reason, this plugin, and others Yola open sources, can be successfully supported by the larger community. At the very least, considering these guidelines can help us stay off the gulp blacklist.
@stefanor @beck
The text was updated successfully, but these errors were encountered: