forked from reflux/refluxjs-todo
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathGruntfile.js
More file actions
31 lines (26 loc) · 671 Bytes
/
Gruntfile.js
File metadata and controls
31 lines (26 loc) · 671 Bytes
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
module.exports = function(grunt) {
var options = {
port: 8080
};
grunt.initConfig({
options: options,
pkg: grunt.file.readJSON('package.json'),
connect: {
server: {
options: {
port: options.port,
base: '.'
}
}
},
open: {
server: {
path: 'http://localhost:<%= options.port %>/'
}
},
watch: {
}
});
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
grunt.registerTask('default', ['connect', 'open', 'watch']);
};