Skip to content

Commit e95db37

Browse files
committed
Upgrade Grunt from v0.3 to v0.4
1 parent f751e8e commit e95db37

File tree

3 files changed

+56
-3
lines changed

3 files changed

+56
-3
lines changed

Gruntfile.js

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
module.exports = function(grunt) {
2+
3+
grunt.initConfig({
4+
5+
// Meta informations
6+
pkg: '<json:package.json>',
7+
meta: {
8+
banner: '/*\n' +
9+
' * <%= pkg.title || pkg.name %> - v<%= pkg.version %>\n' +
10+
' * <%= pkg.description %>\n' +
11+
' * <%= pkg.homepage %>\n\n' +
12+
' * Copyright (c) <%= grunt.template.today("yyyy") %>\n' +
13+
' * MIT License\n' +
14+
' */'
15+
},
16+
concat: {
17+
dist: {
18+
src: ['<banner:meta.banner>', '<file_strip_banner:src/jquery.github.js>'],
19+
dest: 'dist/jquery.github.js'
20+
}
21+
},
22+
23+
// Lint definitions
24+
jshint: {
25+
files: ['src/jquery.github.js'],
26+
options: {
27+
jshintrc: ".jshintrc"
28+
}
29+
},
30+
31+
// Minify definitions
32+
min: {
33+
dist: {
34+
src: ['<banner:meta.banner>', '<config:concat.dist.dest>'],
35+
dest: 'dist/jquery.github.min.js'
36+
}
37+
}
38+
39+
});
40+
41+
grunt.loadNpmTasks('grunt-contrib-concat');
42+
grunt.loadNpmTasks('grunt-contrib-jshint');
43+
grunt.loadNpmTasks('grunt-contrib-uglify');
44+
45+
grunt.registerTask('default', ['jshint', 'min', 'concat']);
46+
grunt.registerTask('travis', ['jshint']);
47+
48+
};

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ Also remember to follow [jQuery's Code Style](http://contribute.jquery.org/style
5151

5252
* v0.2.7 April 29, 2013
5353
* Code refactoring
54+
* Follow jQuery's core style guide
55+
* Upgrade Grunt from v0.3 to v0.4
5456
* v0.2.6 March 14, 2013
5557
* Updated to responsive design
5658
* v0.2.5 March 01, 2013

package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,13 @@
44
"description": "A jQuery plugin to display your Github Repositories.",
55
"author": "Zeno Rocha",
66
"homepage": "https://github.com/zenorocha/jquery-github/",
7-
"version": "0.2.5",
7+
"version": "0.2.7",
88
"devDependencies": {
9-
"grunt": "~0.3.17"
10-
},
9+
"grunt": "~0.4.1",
10+
"grunt-contrib-jshint": "~0.4.3",
11+
"grunt-contrib-concat": "~0.3.0",
12+
"grunt-contrib-uglify": "~0.2.0"
13+
},
1114
"scripts": {
1215
"test": "grunt travis --verbose"
1316
}

0 commit comments

Comments
 (0)