Permalink
Browse files

Added grunt task to create component.json for bower

  • Loading branch information...
1 parent e00472e commit dd51cfd8a3e6170e26b9bd06c931c8c270b643ea @manuelbieh committed Dec 14, 2012
Showing with 64 additions and 7 deletions.
  1. +40 −0 component.json
  2. +2 −2 geolib.js
  3. +2 −2 geolib.min.js
  4. +16 −1 grunt.js
  5. +4 −2 package.json
View
@@ -0,0 +1,40 @@
+{
+ "name": "geolib",
+ "homepage": "http://github.com/manuelbieh/Geolib",
+ "author": {
+ "name": "Manuel Bieh",
+ "url": "http://www.manuelbieh.com/"
+ },
+ "bin": {
+ "geolib": "./geolib.js"
+ },
+ "repository": {
+ "type": "git",
+ "url": "http://github.com/manuelbieh/geolib.git"
+ },
+ "devDependencies": {
+ "grunt": "~0.3.9",
+ "grunt-contrib-clean": "~0.3.0",
+ "grunt-contrib-copy": "~0.3.0"
+ },
+ "licenses": [
+ {
+ "type": "LGPL",
+ "url": "http://www.gnu.org/licenses/lgpl-3.0.txt"
+ }
+ ],
+ "files": [
+ "geolib.js"
+ ],
+ "description": "Library to perform geo specific tasks",
+ "keywords": [
+ "geolocation",
+ "geo",
+ "distance"
+ ],
+ "scripts": {
+ "test": "grunt travis --verbose"
+ },
+ "version": "1.2.6",
+ "main": "./geolib"
+}
View
@@ -1,11 +1,11 @@
-/*! geolib 1.2.5 by Manuel Bieh
+/*! geolib 1.2.6 by Manuel Bieh
* A small library to provide some basic geo functions like distance calculation,
* conversion of decimal coordinates to sexagesimal and vice versa, etc.
* WGS 84 (World Geodetic System 1984)
*
* @author Manuel Bieh
* @url http://www.manuelbieh.com/
-* @version 1.2.5
+* @version 1.2.6
* @license LGPL
**/
View
Oops, something went wrong.
View
@@ -1,6 +1,9 @@
/*global module:false*/
module.exports = function(grunt) {
+ grunt.loadNpmTasks('grunt-contrib-copy');
+ grunt.loadNpmTasks('grunt-contrib-clean');
+
// Project configuration.
grunt.initConfig({
pkg: '<json:package.json>',
@@ -21,6 +24,18 @@ module.exports = function(grunt) {
qunit: {
files: ['tests/*.html']
},
+ clean: {
+ component: [
+ "component.json"
+ ]
+ },
+ copy: {
+ component: {
+ files: {
+ "component.json": "package.json"
+ }
+ }
+ },
concat: {
full: {
src: ['<banner:meta.banner>', '<file_strip_banner:src/<%= pkg.name %>.js>', 'src/geolib.elevation.js'],
@@ -61,7 +76,7 @@ module.exports = function(grunt) {
// Default task.
//grunt.registerTask('default', 'lint test concat min');
- grunt.registerTask('default', 'lint qunit concat:full min');
+ grunt.registerTask('default', 'lint qunit clean concat:full min copy');
grunt.registerTask('travis', 'lint qunit');
grunt.registerTask('test', 'qunit');
grunt.registerTask('no-elevation', 'lint qunit concat:noelevation min');
View
@@ -13,7 +13,9 @@
"url": "http://github.com/manuelbieh/geolib.git"
},
"devDependencies": {
- "grunt": ">=0.3.9"
+ "grunt": "~0.3.9",
+ "grunt-contrib-clean": "~0.3.0",
+ "grunt-contrib-copy": "~0.3.0"
},
"licenses": [
{
@@ -33,6 +35,6 @@
"scripts": {
"test": "grunt travis --verbose"
},
- "version": "1.2.5",
+ "version": "1.2.6",
"main": "./geolib"
}

0 comments on commit dd51cfd

Please sign in to comment.