Skip to content

Commit c28dd2f

Browse files
committed
First stable working commit of the project
1 parent 4717ff3 commit c28dd2f

File tree

3 files changed

+7
-17
lines changed

3 files changed

+7
-17
lines changed

Gruntfile.js

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,6 @@ module.exports = function(grunt) {
1212

1313
// Project configuration.
1414
grunt.initConfig({
15-
jshint: {
16-
all: [
17-
'Gruntfile.js',
18-
'tasks/*.js'
19-
],
20-
options: {
21-
jshintrc: '.jshintrc'
22-
}
23-
},
2415
gren: {
2516
release: {
2617
options: {
@@ -35,14 +26,10 @@ module.exports = function(grunt) {
3526
// Actually load this plugin's task(s).
3627
grunt.loadTasks('tasks');
3728

38-
// These plugins provide necessary tasks.
39-
grunt.loadNpmTasks('grunt-contrib-jshint');
40-
41-
// Whenever the "test" task is run, first clean the "tmp" dir, then run this
4229
// plugin's task(s), then test the result.
4330
grunt.registerTask('release', ['gren']);
4431

4532
// By default, lint and run all tests.
46-
grunt.registerTask('default', ['jshint', 'gren']);
33+
grunt.registerTask('default', ['gren']);
4734

4835
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"devDependencies": {
3030
"github-release-notes": "^0.2.0",
3131
"grunt": "~0.4.5",
32-
"grunt-contrib-jshint": "^0.9.2",
32+
"grunt-contrib-jshint": "^0.9.2"
3333
},
3434
"peerDependencies": {
3535
"grunt": "~0.4.5"

tasks/gren.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,12 @@ module.exports = function(grunt) {
1717

1818
grunt.registerMultiTask('gren', 'Grunt plugin for the npm github-release-notes', function() {
1919
var options = this.options({});
20+
var done = this.async();
2021

2122
var gren = new Gren(options);
22-
gren.release();
23+
24+
gren.release().then(done);
25+
2326
});
2427

25-
};
28+
};

0 commit comments

Comments
 (0)