forked from netsensei/cats
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
36 lines (35 loc) · 815 Bytes
/
Gruntfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
module.exports = function (grunt) {
"use strict";
// Config...
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
watch: {
scripts: {
files: ['./js/**/*.js', '!./js/cats.gen.js'],
tasks: ['jshint', 'concat:cats']
}
},
concat: {
cats: {
src: ['./js/cats/**/*.js', '!./js/cats/cats.gen.js'],
dest: './js/cats.gen.js'
}
},
jshint: {
options: {
jshintrc: '.jshintrc'
},
all: [
'js/**/*.js',
'!js/**/*.gen.js',
'!js/**/vendor/*.js'
]
},
});
// Load tasks...
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-concat');
// Default task.
grunt.registerTask('default', 'watch');
};