Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v7 #1432

Closed
wants to merge 39 commits into from
Closed

v7 #1432

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
a17576e
Initial commit
rowanwins Jun 29, 2018
055c9cc
Revert back the tests
rowanwins Jun 29, 2018
2c0a839
Next chunk
rowanwins Jun 30, 2018
3119808
Next chunk of modules
rowanwins Jul 6, 2018
c828bbe
Next lot of fixes
rowanwins Jul 7, 2018
d8be802
More test fixed up
rowanwins Jul 7, 2018
a4f87ea
Just keep working
rowanwins Jul 8, 2018
8fc297d
Rework jsts related modules + dissolve and concave modules
rowanwins Aug 8, 2018
19df752
Fix mask. Add property transfer to voronoi. All tests now passing!
rowanwins Aug 10, 2018
b23aef4
Save changes
tmcw Aug 11, 2018
cab92cb
Reinstate index.js and fix minifying in rollup
rowanwins Aug 13, 2018
9cadcc7
Add prepublish and build scripts
rowanwins Aug 13, 2018
9e98d6f
Minor fixes and additional tests
rowanwins Aug 13, 2018
538bdb5
Minor test updates
rowanwins Aug 13, 2018
838d8f9
Issue-1469: Fixes incorrect implementation for line crosses line
Aug 28, 2018
c7c11d3
Update CONTRIBUTING.md
stevage Jun 28, 2018
6131375
Issue 1467: Fixes incorrect result of boolean-intersects.
Aug 27, 2018
9d963b4
Updates contributing.md to include information on how to run tests.
Aug 30, 2018
fed4277
Merge pull request #1472 from chriserickson/bugfix/1469
rowanwins Sep 4, 2018
a741b9c
Issue-1467: Fixes boolean-contains returning false for identical poly…
Sep 19, 2018
35d6014
Remove redundant buffer and rollup files. Remove unused unitsFactors.
rowanwins Sep 25, 2018
489b1bd
Addresses issues brought up in PR review
Sep 26, 2018
70544e2
Removes file which should not have been committed.
Sep 26, 2018
1cc0fe4
Merge pull request #1468 from chriserickson/bugfix/1467
rowanwins Oct 9, 2018
fd08414
New module for geojson-rbush called spatial-index. Inline other libs …
rowanwins Nov 29, 2018
2a64511
Resolve #1539 where incorrect centroid is calculated for polygon
Dec 4, 2018
6cd64fc
Resolve transation of properties in center-of-mass . Resolves #1542
rowanwins Dec 4, 2018
c580da5
Rework convex module
rowanwins Dec 6, 2018
8948dcf
Include es6 version of rbush and inline geojson-rbush as spatial-ind…
rowanwins Dec 13, 2018
c0cb7ef
Peg node to version 8. Fix a few module ouputs that rely on centroid.
rowanwins Dec 17, 2018
e9ebbf8
Update travis node version
rowanwins Dec 17, 2018
3fdc432
Update polygon-clipping dependency and subsequent tests
rowanwins Feb 7, 2019
77d112c
Update polygon-clipping dependency.
rowanwins Mar 31, 2019
d886065
Update syntax on mask module. Rename some dissolve fixtures.
rowanwins Mar 31, 2019
84188ea
Refactor dissolve tests
rowanwins May 12, 2019
07e4b34
fix: Refactor away defineProperties to help with treeshaking
tmcw May 12, 2019
361cde4
Fix unkink polygon
rowanwins May 12, 2019
dcb37c0
Merge pull request #1681 from tmcw/no-define-properties
rowanwins May 13, 2019
2810f37
reinclude polygonise
rowanwins May 13, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 3 additions & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ node_modules
test
test.js
bench.js
packages/turf/turf.js
packages/turf/turf.min.js
dist/turf.js
dist/turf.es.js
dist/turf.min.js
marchingsquares-isobands.js
rollup.config.js
simplepolygon.js
Expand Down
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ module.exports = {
'no-loop-func': [0],
'object-curly-spacing': [0],
'consistent-return': [0],
'prefer-arrow-callback': [0],
'valid-jsdoc': [2, {
prefer: {'return': 'returns'},
requireReturn: false
Expand Down
7 changes: 0 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
.rpt2_cache
dist
main.js
main.es.js
main.mjs
main.min.js
index.mjs
*.min.js
*.es5.js
.esm-cache
package-lock.json
env
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
language: node_js
cache: yarn
node_js:
- 9
- 8.14.0
15 changes: 15 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
### :bug: [How to report a bug](http://polite.technology/reportabug.html)

## Please note

The high-level structure of Turf is undergoing discussion at [#1428](https://github.com/Turfjs/turf/issues/1428). Currently (June 2018), there is a partial conversion to Typescript, and the contribution documentation does not completely reflect the current status.

## How To Contribute

- Most work happens in sub modules. These are found in the `packages` directory prefixed with "turf-".
Expand Down Expand Up @@ -85,6 +89,17 @@ it will create a new folder inside `packages` with a simple boilerplate for your
[geojson.io](http://geojson.io) to see, visually, if the module is behaving
appropriately.

## Running tests
To run tests for a specified module
```bash
$ npm run test-module "module-name"
```

To debug tests for a specified module:
```bash
$ node --inspect-brk -r esm scripts/testModule.js "module-name"
```
and attach with your favorite debugger.

## Publishing

Expand Down
9 changes: 0 additions & 9 deletions lerna.json

This file was deleted.

61 changes: 50 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,40 +1,79 @@
{
"private": true,
"workspaces": [
"packages/*"
"name": "turf",
"version": "7.0.0-alpha",
"description": "A JavaScript library for performing geospatial operations with GeoJSON",
"main": "dist/turf.js",
"browser": "dist/turf.min.js",
"unpkg": "dist/turf.min.js",
"module": "src/index.js",
"files": [
"src",
"dist"
],
"types": "index.d.ts",
"scripts": {
"prelint": "tsc",
"lint": "echo 'eslint will be moved to TSLint'",
"postlint": "documentation lint packages/turf-*/index.js",
"pretest": "lerna bootstrap --use-workspaces && npm run lint",
"test": "lerna run test --use-workspaces",
"docs": "node ./scripts/generate-readmes",
"benchmark-module": "node -r esm scripts/benchmarkModule.js",
"build": "rollup -c",
"lint": "eslint src/*/index.js",
"prepublish": "npm run build",
"test": "tape -r esm src/*/test.js | faucet",
"test-module": "node -r esm scripts/testModule.js",
"test-module:regen": "cross-env REGEN=true node -r esm scripts/testModule.js",
"postinstall": "opencollective postinstall"
},
"devDependencies": {
"@mapbox/geojsonhint": "^2.1.0",
"@types/geojson": "*",
"@types/node": "*",
"benchmark": "^2.1.4",
"boolean-jsts": "0.0.1",
"boolean-shapely": "^0.1.2",
"camelcase": "*",
"chromatism": "^3.0.0",
"concaveman": "^1.1.1",
"cross-env": "^5.2.0",
"d3-queue": "*",
"decamelize": "*",
"documentation": "*",
"eslint": "*",
"eslint-config-mourner": "*",
"esm": "^3.0.84",
"faucet": "0.0.1",
"fs-extra": "*",
"lerna": "2.8.0",
"geojson-fixtures": "^1.0.0",
"load-json-file": "*",
"meow": "*",
"progress": "*",
"proj4": "^2.4.4",
"rollup": "*",
"rollup-plugin-butternut": "^0.1.0",
"rollup-plugin-commonjs": "^8.4.1",
"rollup-plugin-node-resolve": "^3.3.0",
"rollup-plugin-typescript": "*",
"tape": "*",
"typescript": "*",
"write-json-file": "*",
"yamljs": "*"
},
"dependencies": {
"opencollective": "^1.0.3"
"d3-voronoi": "^1.1.2",
"opencollective": "^1.0.3",
"polygon-clipping": "^0.14.0",
"skmeans": "^0.9.7",
"turf-jsts": "^1.2.3"
},
"license": "MIT",
"homepage": "http://turfjs.org",
"keywords": [
"geospatial",
"spatial",
"analysis",
"gis",
"geojson",
"buffer",
"intersect",
"union"
],
"collective": {
"type": "opencollective",
"url": "https://opencollective.com/turf",
Expand Down
1 change: 0 additions & 1 deletion packages/turf-along/.gitignore

This file was deleted.

20 changes: 0 additions & 20 deletions packages/turf-along/LICENSE

This file was deleted.

69 changes: 0 additions & 69 deletions packages/turf-along/README.md

This file was deleted.

64 changes: 0 additions & 64 deletions packages/turf-along/bench.js

This file was deleted.

22 changes: 0 additions & 22 deletions packages/turf-along/index.d.ts

This file was deleted.

49 changes: 0 additions & 49 deletions packages/turf-along/index.ts

This file was deleted.

Loading