-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathGruntfile.js
35 lines (31 loc) · 1 KB
/
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
var mongoose = require('mongoose');
module.exports = function(grunt) {
grunt.initConfig({
stylus: {
compile: {
options: {
'paths': ['public/stylesheets']
},
files: {
'public/stylesheets/style.css': 'public/stylesheets/style.styl'
}
}
},
exec: {
users: {
cmd: 'mongoimport --jsonArray --drop --upsert --port 17017 --db openRecess --collection users --file ./config/users.json'
},
games: {
cmd: 'mongoimport --jsonArray --drop --upsert --port 17017 --db openRecess --collection games --file ./config/games.json'
},
teams: {
cmd: 'mongoimport --jsonArray --drop --upsert --port 17017 --db openRecess --collection teams --file ./config/teams.json'
}
}
});
grunt.loadNpmTasks('grunt-contrib-stylus');
grunt.loadNpmTasks('grunt-exec');
// Run commands with syntax: "grunt default" or "grunt db"
grunt.registerTask('default', ['stylus']);
grunt.registerTask('db', ['exec']);
};