Created
October 16, 2012 13:47
-
-
Save cowboy/3899392 to your computer and use it in GitHub Desktop.
something for jquery stuffs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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