volojs/volo

How to write volofile to perform jshint for all files inside a folder then uglify each and every file to <name>.min.js

Opened this issue · 0 comments

My folder structure is /com/h/portal/js.
Inside js folder there are 4 folders.Say a,b,c,d
Inside each folder there are set of js files.

i'm able to minify all js files and write into separate folder with the below command
build: {
run: function (d, v, namedArgs) {
//Remove the old dir
v.rm('www-built');
d.resolve(v.spawn('node', ['tools/r.js', '-o', 'tools/build.js'], {
useConsole: namedArgs
}));

    }
}

But i want to run jshint on all files before minifying. how to do that ?

Also is there any way to minify css files using volo ?

Please help me.