I'm using grunt-contrib-uglify
to build my asmcrypto.js project. It's properly structured and split into individual components residing each at own folder.
Now I'd like to give a user an option to select wich components to include into resulting minified file. Components may have dependancies to other components and they should be resolved automatically.
I suppose the final solution should be something like grunt with:aes-cbc with:hmac-sha256
implying that dependancies are built in too.
From my point of view it should be a grunt plugin able to traverse dependancy tree and return combined source file list which can be passed to grunt-contrib-uglify
.
Have a couple of hours trying:
grunt-feature
grunt-component-build
grunt-resolve
None can do what I described or I didn't find a proper way from docs.