jasmine-ajax/Gruntfile.js

64 lines
1.5 KiB
JavaScript
Raw Normal View History

2013-02-20 02:33:40 +08:00
module.exports = function( grunt ) {
'use strict';
//
// Grunt configuration:
//
// https://github.com/cowboy/grunt/blob/master/docs/getting_started.md
//
grunt.initConfig({
// specifying JSHint options and globals
// https://github.com/cowboy/grunt/blob/master/docs/task_lint.md#specifying-jshint-options-and-globals
jshint: {
options: {
boss: true,
browser: true,
curly: true,
eqeqeq: true,
eqnull: true,
immed: true,
latedef: true,
newcap: true,
noarg: true,
sub: true,
undef: true,
globals: {
jasmine: false,
module: false,
2014-07-29 09:38:06 +08:00
exports: true,
describe: false,
it: false,
expect: false,
beforeEach: false,
afterEach: false,
spyOn: false,
getJasmineRequireObj: false
2013-02-20 02:33:40 +08:00
}
},
all: ['Gruntfile.js', 'src/**/*.js', 'lib/**/*.js', 'spec/**/*.js']
2013-02-20 02:33:40 +08:00
},
shell: {
ctags: {
command: 'ctags -R lib'
}
},
concat: {
mockAjax: {
src: [
'src/requireAjax.js',
'src/**/*.js',
'!src/boot.js',
'src/boot.js'
],
dest: 'lib/mock-ajax.js'
}
2013-02-20 02:33:40 +08:00
}
});
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-concat');
2013-02-20 02:33:40 +08:00
grunt.loadNpmTasks('grunt-shell');
grunt.registerTask('default', ['jshint']);
grunt.registerTask('ctags', 'Generate ctags', ['shell:ctags']);
};