Skip to content

Instantly share code, notes, and snippets.

@cowboy
Created October 16, 2012 13:47
Show Gist options
  • Save cowboy/3899392 to your computer and use it in GitHub Desktop.
Save cowboy/3899392 to your computer and use it in GitHub Desktop.
something for jquery stuffs
// eg. "grunt server qunit:data"
// Build the qunit task config dynamically
var qunit = {};
grunt.file.expand('src/*.js').forEach(function(filepath) {
var base = path.basename(filepath, '.js');
qunit[base] = 'http://localhost:8000/test/index.html?module=' + base;
});
// set the config
grunt.initConfig({
qunit: qunit
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment