Skip to content

Commit

Permalink
updating for issue
Browse files Browse the repository at this point in the history
  • Loading branch information
doowb committed Oct 22, 2014
1 parent 3594fbe commit 416b082
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
22 changes: 21 additions & 1 deletion Gruntfile.js
Expand Up @@ -66,6 +66,24 @@ module.exports = function(grunt) {
dest: './data/downloads/'
}
},
'issue-upload': {
options: {
data: {
issueList: {
2: '2^1',
4: '2^2',
8: '2^3',
16: '2^4'
}
},
},
},
'issue-download': {
options: {
mode: 'download',
dest: './data/downloads/issue/'
}
},
live: {
options: {
mode: 'live'
Expand All @@ -85,7 +103,7 @@ module.exports = function(grunt) {

// Whenever the "test" task is run, first clean the "tmp" dir, then run this
// plugin's task(s), then test the result.
grunt.registerTask('test', ['clean', 'firebase']);
grunt.registerTask('test', ['clean', 'firebase:load', 'firebase:upload', 'firebase:download']);

// By default, lint and run all tests.
grunt.registerTask('default', ['jshint', 'test']);
Expand All @@ -95,4 +113,6 @@ module.exports = function(grunt) {
grunt.registerTask('upload', ['clean', 'firebase:upload']);
grunt.registerTask('download', ['clean', 'firebase:download']);

grunt.registerTask('issue', ['clean', 'firebase:issue-upload', 'firebase:issue-download']);

};
2 changes: 1 addition & 1 deletion tasks/firebase.js
Expand Up @@ -115,7 +115,7 @@ module.exports = function(grunt) {
// for each file, setup live watching
gaze(task.filesSrc, function(err, watcher) {
if(err) {
grunt.warn('Error attempting to watch file: ' + filepath, err);
grunt.warn('Error attempting to watch file: ' + task.filesSrc, err);
done(false);
}

Expand Down

0 comments on commit 416b082

Please sign in to comment.