Skip to content
This repository has been archived by the owner on Jul 17, 2020. It is now read-only.

Commit

Permalink
Gruntified
Browse files Browse the repository at this point in the history
  • Loading branch information
Mario Estrada committed Oct 30, 2013
1 parent d09199c commit 33b2771
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 11 deletions.
3 changes: 2 additions & 1 deletion .gitignore
@@ -1,3 +1,4 @@
.DS_Store
index.html
*.zip
*.zip
node_modules/
24 changes: 24 additions & 0 deletions Gruntfile.coffee
@@ -0,0 +1,24 @@
module.exports = (grunt) ->
grunt.initConfig
pkg: grunt.file.readJSON('package.json')
uglify:
options:
banner:
"""
/*
* <%= pkg.name %>
* Version <%= pkg.version %> <%= grunt.template.today("yyyy-mm-dd") %>
* @requires jQuery <%= pkg.dependencies.jquery %> or later
*
* Homepage: <%= pkg.homepage %>
* Author: <%= pkg.author %>
* License: <%= pkg.license %>
*/
"""
build:
src: '<%= pkg.name %>.js'
dest: '<%= pkg.name %>.min.js'

grunt.loadNpmTasks 'grunt-contrib-uglify'
grunt.registerTask 'default', ['uglify']
2 changes: 1 addition & 1 deletion jquery.gmap.js
Expand Up @@ -4,7 +4,7 @@
* @license MIT License; http://www.opensource.org/licenses/mit-license.php
* @url http://github.com/marioestrada/jQuery-gMap
* @author Mario Estrada <me@mario.ec> based on original plugin by Cedric Kastner <cedric@nur-text.de>
* @version 2.1.4
* @version 2.1.5
*/
/* global google */
(function($)
Expand Down
19 changes: 10 additions & 9 deletions jquery.gmap.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions package.json
@@ -0,0 +1,28 @@
{
"name": "jquery.gmap",
"preferGlobal": true,
"version": "2.1.5",
"author": "Mario Estrada <me@mario.ec>",
"homepage": "http://labs.mario.ec/jquery-gmap/",
"description": "jQuery plugin that helps you embed Google Maps into your website",
"contributors": [],
"scripts": {
"test": ""
},
"repository": {
"type": "git",
"url": "https://github.com/marioestrada/jQuery-gMap.git"
},
"dependencies": {
"jquery": ">= 1.6.1"
},
"devDependencies": {
"grunt": "~0.4.1",
"grunt-cli": "~0.1.9",
"grunt-contrib-uglify": "0.2.x"
},
"license": "MIT",
"engines": {
"node": ">=0.8.8"
}
}

0 comments on commit 33b2771

Please sign in to comment.