volojs / volo

Create front end projects from templates, add dependencies, and automate the resulting projects
https://volojs.github.io/
Other
1.41k stars 100 forks source link

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

Open SuganyaPL opened 10 years ago

SuganyaPL commented 10 years ago

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.