UNPKG

454 BJavaScriptView Raw
1module.exports = function(grunt) {
2
3 // Project configuration.
4 var path = require('path');
5 var test = {};
6 grunt.file.expand('*.json').forEach(function(filepath) {
7 test[path.basename(filepath, '.json')] = grunt.file.readJSON(filepath);
8 });
9
10 grunt.initConfig({
11 test: test
12 });
13
14 grunt.registerMultiTask('test', function() {
15 this.files.forEach(function(f) {
16 console.log('%s -> %s', f.src.join(' '), f.dest);
17 });
18 });
19
20};