Not so long ago, a simple project could get away with hacking some code into a single
.js file, include it in a
npm, building out the final file can be fairly complicated.
So, let me jump to the conclusion:
Brunch focuses on being a build tool and nothing else. This greatly simplifies using it and makes it a strong option.
The other tools that I examined have their place, but here are some reasons why I like Brunch.
1. Very little setup
Brunch follows a convention over configuration style. This means that there isn't much to put into the configuration file. Play by the rules (of which there are few) and it will typically do The Right Thing™.
2. Use ES6 with almost no thought
babel-brunch) from automatically working with Brunch.
3. Three commands in total. Yes, three!
$ brunch new $ brunch build $ brunch watch
brunch new will help you bootstrap a new project. Because of the use of conventions, this is the recommended way to get started. The command will set up all the structure you need to get creating. With the help of some project templates called skeletons, you can even get initial plugin configuration out of the way. Try it with:
$ brunch new -s es6
brunch build and
I think I can read your mind:
This article first appeared on mattlayman.com.