Skip to content

Commit

Permalink
more deps cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mourner committed Aug 22, 2017
1 parent 6caa96c commit 1e012d7
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 12 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ coverage
*.log
node_modules
debug
.nyc_output
5 changes: 3 additions & 2 deletions decode.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ module.exports = decode;

var keys, values, lengths, dim, e;

var geometryTypes = ['Point', 'MultiPoint', 'LineString', 'MultiLineString',
'Polygon', 'MultiPolygon', 'GeometryCollection'];
var geometryTypes = [
'Point', 'MultiPoint', 'LineString', 'MultiLineString',
'Polygon', 'MultiPolygon', 'GeometryCollection'];

function decode(pbf) {
dim = 2;
Expand Down
14 changes: 6 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
"shp2geobuf": "bin/shp2geobuf"
},
"scripts": {
"test": "eslint *.js test/*.js && tap test/*.js",
"cov": "istanbul cover test/*.js",
"coveralls": "istanbul cover test/*.js && coveralls < ./coverage/lcov.info",
"pretest": "eslint *.js test/*.js",
"test": "tap test/*.js",
"cov": "tap --cov test/*.js",
"build-min": "mkdirp dist && browserify index.js -s geobuf | uglifyjs -c warnings=false -m > dist/geobuf.js",
"build-dev": "mkdirp dist && browserify index.js -d -s geobuf > dist/geobuf-dev.js",
"build": "npm run build-min && npm run build-dev",
"prepublish": "in-publish && npm run build || not-in-publish"
"build-all": "npm run build-min && npm run build-dev",
"prepublish": "in-publish && npm run build-all || not-in-publish"
},
"repository": {
"type": "git",
Expand All @@ -39,15 +39,13 @@
"devDependencies": {
"benchmark": "~2.1.4",
"browserify": "^14.4.0",
"coveralls": "~2.13.1",
"eslint": "^4.5.0",
"eslint-config-mourner": "^2.0.1",
"geojson-fixtures": "1.0.0",
"in-publish": "^2.0.0",
"istanbul": "~0.4.5",
"mkdirp": "^0.5.1",
"tap": "~10.7.2",
"uglifyjs": "^2.4.11"
"uglify-js": "^3.0.28"
},
"dependencies": {
"concat-stream": "^1.6.0",
Expand Down
6 changes: 4 additions & 2 deletions test/validate.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,10 @@ test('roundtrip a circle with potential accumulating error', function (t) {
};
var points = 16;
for (var i = 0; i <= points; i++) {
feature.coordinates[0][0].push([Math.cos(Math.PI * 2.0 * i / points),
Math.sin(Math.PI * 2.0 * i / points)]);
feature.coordinates[0][0].push([
Math.cos(Math.PI * 2.0 * i / points),
Math.sin(Math.PI * 2.0 * i / points)
]);
}
var roundTripped = geobuf.decode(new Pbf(geobuf.encode(feature, new Pbf())));
function roundCoord(z) {
Expand Down

0 comments on commit 1e012d7

Please sign in to comment.