From e95db376d7bdb0859579b48e9a712da4f333f6b3 Mon Sep 17 00:00:00 2001 From: Zeno Rocha Date: Mon, 29 Apr 2013 14:45:47 -0300 Subject: [PATCH] Upgrade Grunt from v0.3 to v0.4 --- Gruntfile.js | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ README.md | 2 ++ package.json | 9 ++++++--- 3 files changed, 56 insertions(+), 3 deletions(-) create mode 100644 Gruntfile.js diff --git a/Gruntfile.js b/Gruntfile.js new file mode 100644 index 0000000..64f13f4 --- /dev/null +++ b/Gruntfile.js @@ -0,0 +1,48 @@ +module.exports = function(grunt) { + + grunt.initConfig({ + + // Meta informations + pkg: '', + 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: ['', ''], + dest: 'dist/jquery.github.js' + } + }, + + // Lint definitions + jshint: { + files: ['src/jquery.github.js'], + options: { + jshintrc: ".jshintrc" + } + }, + + // Minify definitions + min: { + dist: { + src: ['', ''], + 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']); + +}; diff --git a/README.md b/README.md index 989241d..5b10ad0 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/package.json b/package.json index 5111d0b..e8847ce 100644 --- a/package.json +++ b/package.json @@ -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" }