work.suroh.tk/node_modules/requirejs-config-file/Gruntfile.js

33 lines
674 B
JavaScript
Raw Normal View History

2019-12-02 12:22:45 +00:00
'use strict';
/*global module:false*/
module.exports = function(grunt) {
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
grunt.initConfig({
jshint: {
options: {
jshintrc: '.jshintrc',
},
libs: {
src: ['Gruntfile.js', 'index.js', 'test/**/*.js', '!files/fixtures/parse-error-config.js']
}
},
simplemocha: {
options: {
timeout: 3000,
ui: 'bdd',
reporter: 'spec'
},
all: { src: ['test/**/*.js'] }
}
});
grunt.registerTask('default', ['jshint']);
grunt.registerTask('test', ['jshint', 'simplemocha:all']);
};