r/javascript • u/mrjoelkemp • Mar 15 '14
YA: A no-hassle, front-end build tool
https://github.com/mrjoelkemp/ya2
u/Manticorp Mar 15 '14
Would be nice to have some examples?
2
Mar 15 '14
Yeah, why would anyone use this over grunt or gulp when there are no examples or even benefits over other build tools?
3
u/radhruin Mar 15 '14
This tool generates your gruntfile based on settings, among a few other things.
2
Mar 16 '14
[removed] — view removed comment
1
u/mrjoelkemp Mar 16 '14
This tool doesn't have a config file. That's the point. You just type ya and start coding.
1
u/mrjoelkemp Mar 15 '14
I'll update the readme, but I'm not sure how to provide more examples when all you have to do is type:
yaAlso, the benefit of the tool is that you don't have to write any configuration. YA manages Grunt for you but still lets you take over for more advanced needs.
Basically, if you just want to build something quickly without worrying about a build process, YA shines.
1
u/mrjoelkemp Mar 15 '14
The README has been updated with a bit more detail. Please let me know if you have any questions.
Thanks!
1
u/mrjoelkemp Mar 15 '14
I've updated the README to add some more detail about a typical workflow with YA: https://github.com/mrjoelkemp/ya.
I'd be happy to answer any questions that you might have.
0
Mar 16 '14
[deleted]
1
u/mrjoelkemp Mar 16 '14
Very fair points. Thanks for your input; it's helpful.
I don't understand the basic assumptions behind that workflow
The assumptions should definitely have been stated clearer. I've added a section that will hopefully help: https://github.com/mrjoelkemp/ya#assumptions
Does it build an index.js, an index.css, and an index.html that links them?
Calling it a "build" tool was probably incorrect, though, I believe it could be extended beyond preprocessor compilation and include other common build tool steps.
Does your watch process include any LiveReload or similar? How are images/sprites handled?
Great ideas. Live reload should possibly get added by default in the watch configuration.
An image optimization configuration could be added and a compile task called every time a new image is added.
it's an interesting innovation
Thanks. I am excited about possibly inferring the Browserify and RequireJS entry point by identify the root node of the dependency tree. The addition of a new JavaScript file would have to recompute the root node.
Many thanks for your thoughts.
4
u/icanevenificant Mar 15 '14 edited Mar 15 '14
Yeoman is more full featured but I see no reason to use this over Yeoman. Webapp or one of the cummunity generators with basic setup is all I could ever ask for as far as laying the ground work so I can just start working right away without worying about the setup.