Skip to content

Commit

Permalink
Upgrade Grunt from v0.3 to v0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
zenorocha committed Apr 29, 2013
1 parent f751e8e commit e95db37
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 3 deletions.
48 changes: 48 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
module.exports = function(grunt) {

grunt.initConfig({

// Meta informations
pkg: '<json:package.json>',
meta: {
banner: '/*\n' +
' * <%= pkg.title || pkg.name %> - v<%= pkg.version %>\n' +
' * <%= pkg.description %>\n' +
' * <%= pkg.homepage %>\n\n' +
' * Copyright (c) <%= grunt.template.today("yyyy") %>\n' +
' * MIT License\n' +
' */'
},
concat: {
dist: {
src: ['<banner:meta.banner>', '<file_strip_banner:src/jquery.github.js>'],
dest: 'dist/jquery.github.js'
}
},

// Lint definitions
jshint: {
files: ['src/jquery.github.js'],
options: {
jshintrc: ".jshintrc"
}
},

// Minify definitions
min: {
dist: {
src: ['<banner:meta.banner>', '<config:concat.dist.dest>'],
dest: 'dist/jquery.github.min.js'
}
}

});

grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-uglify');

grunt.registerTask('default', ['jshint', 'min', 'concat']);
grunt.registerTask('travis', ['jshint']);

};
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ Also remember to follow [jQuery's Code Style](http://contribute.jquery.org/style

* v0.2.7 April 29, 2013
* Code refactoring
* Follow jQuery's core style guide
* Upgrade Grunt from v0.3 to v0.4
* v0.2.6 March 14, 2013
* Updated to responsive design
* v0.2.5 March 01, 2013
Expand Down
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@
"description": "A jQuery plugin to display your Github Repositories.",
"author": "Zeno Rocha",
"homepage": "https://github.com/zenorocha/jquery-github/",
"version": "0.2.5",
"version": "0.2.7",
"devDependencies": {
"grunt": "~0.3.17"
},
"grunt": "~0.4.1",
"grunt-contrib-jshint": "~0.4.3",
"grunt-contrib-concat": "~0.3.0",
"grunt-contrib-uglify": "~0.2.0"
},
"scripts": {
"test": "grunt travis --verbose"
}
Expand Down

0 comments on commit e95db37

Please # to comment.