Skip to content

Commit 4717ff3

Browse files
committed
Init the grunt project
1 parent fb1f21f commit 4717ff3

File tree

7 files changed

+152
-0
lines changed

7 files changed

+152
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules
2+
npm-debug.log
3+
tmp

.jshintrc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"curly": true,
3+
"eqeqeq": true,
4+
"immed": true,
5+
"latedef": true,
6+
"newcap": true,
7+
"noarg": true,
8+
"sub": true,
9+
"undef": true,
10+
"boss": true,
11+
"eqnull": true,
12+
"node": true
13+
}

Gruntfile.js

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
/*
2+
* grunt-github-release-notes
3+
* https://github.com/alexcanessa/grunt-github-release-notes
4+
*
5+
* Copyright (c) 2015 Alex Canessa
6+
* Licensed under the MIT license.
7+
*/
8+
9+
'use strict';
10+
11+
module.exports = function(grunt) {
12+
13+
// Project configuration.
14+
grunt.initConfig({
15+
jshint: {
16+
all: [
17+
'Gruntfile.js',
18+
'tasks/*.js'
19+
],
20+
options: {
21+
jshintrc: '.jshintrc'
22+
}
23+
},
24+
gren: {
25+
release: {
26+
options: {
27+
token: '9d928d384738b0b15604aa440b44587fb65ab042',
28+
username: 'digital-detox',
29+
repo: 'rbs-xdl'
30+
}
31+
}
32+
}
33+
});
34+
35+
// Actually load this plugin's task(s).
36+
grunt.loadTasks('tasks');
37+
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
42+
// plugin's task(s), then test the result.
43+
grunt.registerTask('release', ['gren']);
44+
45+
// By default, lint and run all tests.
46+
grunt.registerTask('default', ['jshint', 'gren']);
47+
48+
};

LICENSE-MIT

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Copyright (c) 2015 Alex Canessa
2+
3+
Permission is hereby granted, free of charge, to any person
4+
obtaining a copy of this software and associated documentation
5+
files (the "Software"), to deal in the Software without
6+
restriction, including without limitation the rights to use,
7+
copy, modify, merge, publish, distribute, sublicense, and/or sell
8+
copies of the Software, and to permit persons to whom the
9+
Software is furnished to do so, subject to the following
10+
conditions:
11+
12+
The above copyright notice and this permission notice shall be
13+
included in all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
17+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
19+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22+
OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# grunt-github-release-notes
2+
23
Grunt module to publish release notes based on commits between the last two tags.

package.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"name": "grunt-github-release-notes",
3+
"description": "Grunt plugin for the npm github-release-notes",
4+
"version": "0.1.0",
5+
"homepage": "https://github.com/alexcanessa/grunt-github-release-notes",
6+
"author": {
7+
"name": "Alex Canessa",
8+
"email": "[email protected]"
9+
},
10+
"repository": {
11+
"type": "git",
12+
"url": "git://github.com/alexcanessa/grunt-github-release-notes.git"
13+
},
14+
"bugs": {
15+
"url": "https://github.com/alexcanessa/grunt-github-release-notes/issues"
16+
},
17+
"licenses": [
18+
{
19+
"type": "MIT",
20+
"url": "https://github.com/alexcanessa/grunt-github-release-notes/blob/master/LICENSE-MIT"
21+
}
22+
],
23+
"engines": {
24+
"node": ">= 0.8.0"
25+
},
26+
"scripts": {
27+
"test": "grunt test"
28+
},
29+
"devDependencies": {
30+
"github-release-notes": "^0.2.0",
31+
"grunt": "~0.4.5",
32+
"grunt-contrib-jshint": "^0.9.2",
33+
},
34+
"peerDependencies": {
35+
"grunt": "~0.4.5"
36+
},
37+
"keywords": [
38+
"gruntplugin"
39+
]
40+
}

tasks/gren.js

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/*
2+
* grunt-github-release-notes
3+
* https://github.com/alexcanessa/grunt-github-release-notes
4+
*
5+
* Copyright (c) 2015 Alex Canessa
6+
* Licensed under the MIT license.
7+
*/
8+
9+
'use strict';
10+
11+
var Gren = require('github-release-notes/src/index.js');
12+
13+
module.exports = function(grunt) {
14+
15+
// Please see the Grunt documentation for more information regarding task
16+
// creation: http://gruntjs.com/creating-tasks
17+
18+
grunt.registerMultiTask('gren', 'Grunt plugin for the npm github-release-notes', function() {
19+
var options = this.options({});
20+
21+
var gren = new Gren(options);
22+
gren.release();
23+
});
24+
25+
};

0 commit comments

Comments
 (0)