Slowly
Slowly

Reputation: 21

Why is it better to compile javascript to javascript?

I am an experience software developer but new to web software engineering.

I just put myself behind a day in my internship exploring the Javascript Build Tool scene, and I see that there's about a thousand tools out there, like jasy, broccoli, brunch, etc.

But WHY compile javascript to javascript? What is the purpose of it?

Thanx, jb

Upvotes: 0

Views: 71

Answers (1)

Jan_dh
Jan_dh

Reputation: 771

Grunt is not really a compiling tool. Grunt is a tool with all sorts of addons used to minify html, to uglify scripts, to move items from your development folder to your dist-folder, run a local server (which is really handy with live-reload), watch changes to files,...

Bower is a building tool that helps organizing your front-end dependencies. You install the stuff through bower (with the node.js command-line) and save it in your application. That way you can easely manage your dependencies and the only thing you have to keep track of is (theoretically) your bower file. If you push it to Git someone else can easely install all the needed depdencies, based on your bower file.

All these tools are just for easiers project management, dependencies, and annoying tasks that otherwise take up a lot of your time.

edit: if you have specific questions regarding a specific tool, modify your question ;)

Upvotes: 2

Related Questions