Posts

Showing posts with the label minification

Create a JS builder with node.js

A very good and common practice with JS projects bigger than 100 lines of code is to split code in different files. Benefits are clear: smaller pieces of code to maintain swappable portions for experiments and/or improvements or new features, as example including for a build magic2.js and get it, rather than change drastically magic.js and follow the repository logs better organization of the code, and I'll come back on this in this post possibility to distribute bigger closures, as example the jQuery approach create ad hoc builds including or excluding portion of the library, specially suitable for specific version of the code that must be compatible with IE only Solutions All Over The Place There are really tons of solutions able to make the described build process easy to use and easy to go. As example, I have created my own one and I am using it with basically every project I am working with: the JavaScript Builder . However, this builder requires a couple of extra technologi...