Commit 5239fd95 authored by Calvin Metcalf's avatar Calvin Metcalf
Browse files

set up grunt

parent 844861ae
Loading
Loading
Loading
Loading

Gruntfile.js

0 → 100644
+30 −0
Original line number Diff line number Diff line
module.exports = function(grunt) {
    grunt.initConfig({
		pkg: grunt.file.readJSON('package.json'),
		concat:{
            full:{
				src:[ './src/proj4js.js','./src/Proj.js','./src/defs.js','./src/common.js','./src/datum.js','./src/Point.js','./src/constants.js','./src/projCode/*.js','./src/defs/*.js'],
                dest:'./dist/proj4.js'
            },
            noDefs:{
                src:[ './src/proj4js.js','./src/Proj.js','./src/defs.js','./src/common.js','./src/datum.js','./src/Point.js','./src/constants.js','./src/projCode/*.js','./src/defs/GOOGLE.js'],
                dest:'./dist/proj4-noDefs.js'
            }
		},
        uglify:{
            full:{
    		    src:[ './src/proj4js.js','./src/Proj.js','./src/defs.js','./src/common.js','./src/datum.js','./src/Point.js','./src/constants.js','./src/projCode/*.js','./srcgrunt/defs/*.js'],
                dest:'./dist/proj4.min.js'
		    },
            noDefs:{
                src:[ './src/proj4js.js','./src/Proj.js','./src/defs.js','./src/common.js','./src/datum.js','./src/Point.js','./src/constants.js','./src/projCode/*.js','./src/defs/GOOGLE.js'],
                dest:'./dist/proj4-noDefs.min.js'
            }
        }
	});
	grunt.loadNpmTasks('grunt-contrib-concat');
    grunt.loadNpmTasks('grunt-contrib-uglify');
    grunt.registerTask('full', ['concat:full','uglify:full']);
    grunt.registerTask('noDefs', ['concat:noDefs','uglify:noDefs']);
	grunt.registerTask('default', ['full','noDefs']);
}
+5 −1
Original line number Diff line number Diff line
@@ -5,3 +5,7 @@ Proj4js is a JavaScript library to transform point coordinates from one coordina
This library is a port of both the [PROJ.4](http://trac.osgeo.org/proj/) and [GCTCP C](http://edcftp.cr.usgs.gov/pub//software/gctpc) libraries to JavaScript. Enabling these transformations in the browser allows geographic data stored in different projections to be combined in browser-based web mapping applications.

Proj4js is a part of the [MetaCRS](http://wiki.osgeo.org/wiki/MetaCRS) group of projects and uses the same MIT style license as PROJ.4.

to set up build tools make sure you have node installed and run `npm install`

to build run `grunt`
 No newline at end of file
+6965 −5254

File changed and moved.File mode changed from 100755 to 100644.

Preview size limit exceeded, changes collapsed.

+3 −0

File added.

Preview size limit exceeded, changes collapsed.

dist/proj4.js

0 → 100644
+7187 −0

File added.

Preview size limit exceeded, changes collapsed.

Loading