Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
calvinmetcalf committed Jan 30, 2014
1 parent eff93f3 commit 6ccc774
Show file tree
Hide file tree
Showing 11 changed files with 41 additions and 33 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ node_modules
.c9revisions
coverage
projs.js
.DS_STORE
.DS_STORE
dist
6 changes: 2 additions & 4 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ module.exports = function(grunt) {
mocha_phantomjs: {
all: {
options: {
reporter: "dot",
urls: [ //my ide requries process.env.IP and PORT
"http://" + (process.env.IP || "127.0.0.1") + ":" + (process.env.PORT || "8080") + "/test/amd.html",
"http://" + (process.env.IP || "127.0.0.1") + ":" + (process.env.PORT || "8080") + "/test/opt.html"
Expand Down Expand Up @@ -80,9 +81,6 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-connect');
grunt.loadNpmTasks('grunt-mocha-phantomjs');
grunt.registerTask('version', function() {
grunt.file.write('./lib/version.js', "module.exports = '" + grunt.file.readJSON('package.json').version + "';");
});
grunt.registerTask('custom',function(){
grunt.task.run('browserify', 'uglify');
var projections = this.args;
Expand All @@ -106,7 +104,7 @@ module.exports = function(grunt) {
});
grunt.registerTask('build',function(){
var args = this.args.length?this.args[0].split(','):['default'];
grunt.task.run('version', 'jshint', 'custom:'+args.join(':'));
grunt.task.run('jshint', 'custom:'+args.join(':'));
});
grunt.registerTask('default', ['build:all', 'connect','mocha_phantomjs']);
};
3 changes: 2 additions & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ Authors:
- Didier Richard didier.richardATign.fr
- Stephen Irons stephen.ironsATclear.net.nz
- Olivier Terral oterralATgmail.com
- Calvin Metcalf cmetcalfATappgeo.com

Copyright (c) 2012, Mike Adair, Richard Greenwood, Didier Richard, Stephen Irons and Olivier Terral
Copyright (c) 2014, Mike Adair, Richard Greenwood, Didier Richard, Stephen Irons, Olivier Terral and Calvin Metcalf

Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "proj4",
"version": "2.0.0",
"version": "2.1.1-prerelease",
"description": "Proj4js is a JavaScript library to transform point coordinates from one coordinate system to another, including datum transformations.",
"homepage": "https://github.com/proj4js/proj4js",
"main": "dist/proj4.js",
Expand Down
2 changes: 2 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
Change log
===
- 2.1.1: tweaks to how we publish it, fixes related to errors with the OSGB36 and Reseau National Belge 1972 datums, we took the first steps towards depreciating the proj4.Point class.

- 2.1.0: targeted builds for projections are now supported, and internally projection creation is more modular.

- 2.0.3: mgrs is broken out into it's own module loaded via npm.
Expand Down
2 changes: 1 addition & 1 deletion component.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "proj4",
"version": "2.0.0",
"version": "2.1.1-prerelease",
"description": "Proj4js is a JavaScript library to transform point coordinates from one coordinate system to another, including datum transformations.",
"repo": "proj4js/proj4js",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ proj4.toPoint = require("./common/toPoint");
proj4.defs = require('./defs');
proj4.transform = require('./transform');
proj4.mgrs = require('mgrs');
proj4.version = require('./version');
proj4.version = require('../package.json').version;
require('./includedProjections')(proj4);
module.exports = proj4;
1 change: 0 additions & 1 deletion lib/version.js

This file was deleted.

27 changes: 14 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "proj4",
"version": "2.0.0",
"version": "2.1.1-prerelease",
"description": "Proj4js is a JavaScript library to transform point coordinates from one coordinate system to another, including datum transformations.",
"main": "lib/index.js",
"directories": {
Expand All @@ -26,20 +26,21 @@
]
},
"devDependencies": {
"grunt-cli": "~0.1.9",
"grunt": "~0.4.1",
"grunt-contrib-connect": "~0.3.0",
"grunt-contrib-jshint": "~0.6.0",
"chai": "~1.7.2",
"mocha": "~1.12.1",
"grunt-mocha-phantomjs": "~0.3.0",
"browserify": ">=2.35.0",
"grunt-browserify": "~1.2.8",
"grunt-contrib-uglify": "~0.2.4",
"grunt-cli": "~0.1.13",
"grunt": "~0.4.2",
"grunt-contrib-connect": "~0.6.0",
"grunt-contrib-jshint": "~0.8.0",
"chai": "~1.8.1",
"mocha": "~1.17.1",
"grunt-mocha-phantomjs": "~0.4.0",
"browserify": "~3.24.5",
"grunt-browserify": "~1.3.0",
"grunt-contrib-uglify": "~0.3.2",
"curl": "git://github.com/cujojs/curl.git",
"istanbul": "~0.1.44"
"istanbul": "~0.2.4",
"tin": "~0.4.0"
},
"dependencies": {
"mgrs": "0.0.0"
}
}
}
25 changes: 15 additions & 10 deletions publish.sh
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
#!/bin/bash
#you may need to run npm install -g tin
tin -v $1

# get current version
VERSION=$(npm ls --json=true proj4js | grep version | awk '{ print $2}'| sed -e 's/^"//' -e 's/"$//')

# Build
git checkout -b build
grunt
git add dist
git add lib/version.js
git add package.json
git add bower.json
git add component.json
git commit -m build
git tag $1
git push --tags [email protected]:proj4js/proj4js.git $1
git add dist -f
git commit -m "build $VERSION"

# Tag and push
git tag $VERSION
git push --tags [email protected]:proj4js/proj4js.git $VERSION

# Publish
npm publish
jam publish

# Cleanup
git checkout master
git branch -D build
1 change: 1 addition & 0 deletions test/package.json.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
define({version : "curl is dumb"});

0 comments on commit 6ccc774

Please sign in to comment.