-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
33 lines (28 loc) · 870 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
'use strict';
module.exports = function (grunt) {
// load all grunt tasks
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
var path = require('path');
grunt.initConfig({
project: {
src : path.resolve(__dirname + '/src'),
pkg : '',
port: 3000,
dist: path.resolve(__dirname + '/dist'),
tmp: path.resolve(__dirname + '/.tmp'),
test: path.resolve(__dirname + '/test')
},
jshint: {
options: {
jshintrc: '.jshintrc'
},
grunt: 'Gruntfile.js',
src: '<%= project.src %>/**/*.js',
test: '<%= project.test %>/**/*.js'
},
nodeunit: {
all: ['<%= project.test %>/nodeunit/*.js']
}
});
grunt.renameTask('regarde', 'watch');
};