38 Commits

Author SHA1 Message Date
mfedderly
b43a4d51e8 Upgrade Lerna (#2964)
* Upgrade Lerna

* pnpm lerna repair

---------

Co-authored-by: James Beard <james@smallsaucepan.com>
2025-12-06 09:57:58 -05:00
Robin Van den Broeck
ce335a0371 Define inputs for nx (#2603) 2024-05-07 15:14:55 +10:00
mfedderly
b3b5284882 Standardize Typescript builds (#1849)
* Standardize on a single tsconfig
* Standardize tsconfig output
- Move output of es5 code into dist/js (leaves room for dist/es for modules)
- Update references from ./index over to ./dist/js/index.js
- Seems like this will publish types for several new packages
- A few packages needed to be slightly modified to publish correctly to dist
- Small fixes to @turf/turf due to the file path changes
- Note: not currently using types.ts for testing (next commit)
* Re-enable testing using types.ts in packages where that exists
* Run packages/turf tests after everything else has built
* Enforce tsc before bench
* nearest-neighbor-analysis test updates from rowanwins
2020-03-15 19:15:03 -04:00
zhuang-hao-ming
8ce6acb965 run test 2018-03-23 15:59:33 +08:00
zhuang-hao-ming
10586eef05 revise .gitigonre and delete some whitespace 1 2018-03-23 15:23:38 +08:00
Denis
7511d3489d Enforce strict Typescript config along & destination 2018-03-21 11:33:13 -04:00
Denis
e5791890fb Add gitignore's 2018-02-20 17:41:50 -05:00
Denis
8dfe57d150 Add bbox-clip to Typescript 2018-02-03 16:13:33 -05:00
Denis
1cfd531bda Convert turf-bbox to 100% typescript 2018-01-30 11:15:33 -05:00
Denis
182d681545 Update .gitignore 2017-12-09 21:00:09 -08:00
Denis
2ff9121718 Fix great-circle publishing 2017-12-07 04:41:31 -05:00
Denis
54a1d659ae Update helper modules to 5.0.0 2017-10-01 19:16:33 -04:00
Denis
b5d19fe6c5 Remove rollup.config.js 2017-10-01 16:23:45 -04:00
Denis
23b5c3e0c4 Update Rollup pretest 2017-10-01 15:24:04 -04:00
Denis
93cf14f088 Update packages 2017-09-26 16:00:42 -04:00
Denis
ccfe32027f Rename ES6 modules index to ".js" 2017-09-25 10:59:15 -04:00
Denis
0a5b843a64 Update Rollup config 2017-09-25 01:12:57 -04:00
Denis
17c3eb5fca Rename index.js => index.mjs & test.js => test.mjs 2017-09-25 00:55:04 -04:00
Denis
e04f13d128 Update package.json to index.cjs.js 2017-09-25 00:40:56 -04:00
Denis
4b71bc6f7f Add Rollup config for test.js 2017-09-24 23:55:29 -04:00
Denis
7940d94437 Remove dist folders 2017-09-22 22:50:25 -04:00
Denis
e04a0bbe57 Implement @std/esm "import/exporty" code 2017-09-22 01:21:27 -04:00
Denis
593cb91449 Removal of package-lock.json 2017-09-20 22:17:36 -04:00
Denis
a9a63c8562 Add boolean-shapely script (#802) 2017-06-18 21:35:12 -04:00
Denis
71caa9e697 Add yarn.lock to Turf modules 2017-05-27 21:17:41 -04:00
Stefano Borghi
4c2af2446f Turf Transform (#752)
* first translate implementation

* rifactored multiplyMatrices; modified tests;

* implemented multi features support; add various tests;

* updated bench.js

* adds transform-rotate module

* added throws tests

* Update @turf/transform-translate
- Typescript definition
- Drop extra dependencies
- Update readme
- Minor refactoring to tests
- Added typescript tests

* Update fixtures using @turf/truncate

* Add single process timers to benchmarks

* Update typescript definitions

* Improve pivot geometry support

* Refactor @turf/rotate tests

* Update Readmes

* Add xRotation & yRotation
CC: @stebogit

* Update readme

* refactored using coordEach

* replaced clone for copying geojson;
updated bench;
removed x and y rotations parameters;

* add test for z-coordinate support

* Update param, docs & tests @turf/transform-rotate
- Reflect tests to support all GeoJSON
- Update JSDocs to support all GeoJSON
- Update typescript to All GeoJSON types
- Add mutate param
CC: @stebogit

* Update JSDocs & tests transform translate
- Add Tap for testing (easier to read results)
CC: @stebogit

* Drop meta from dependencies

* refactored transform with coordEach;
updated bench;
updated README;
restored geometry support tests;
removed unused dependencies;

* Add default zTranslation to 0

* Add does mutate tests

* fix types tests
2017-05-26 08:42:05 -04:00
Denis
49a9712426 Add Rollup packages (#584)
* Rollup packages
- truncate
- union

* Add rollup build before tests

* Drop browser rollup build for individual packages

* Remove index.browser.js

* Import io from src/jsts

* Ignore linting for union build

* Simplify Rollup config
- Do not include any dependencies in the build. Some dependencies are not ES5 and breaks the final browser build.

* Include rollup in npm script

* Add pretests & rollup at root

* Add rollup to npm script

* Make deep-slice JSDocs private

* Types testing is handled at root level

* Convert Rollup config to ES5
- Less chance of errors when linting when root package is not present
2017-03-02 08:08:56 -05:00
Denis
8a56f49119 ignore types.js
Created by `tsc test/types.ts` when testing Typescript definitions
2017-01-04 09:40:06 -05:00
Aurélien Defossez
e3cb97d14e New module: center-of-mass (#439)
* New turf.center-of-mass module.

* Added the link to the wikipedia article with the formulae.

* turf-center-of-mass passes the lint test.

* turf-center-of-mass now can take a FeatureCollection.

* Test added for turf-center-of-mass using a FeatureCollection.
2016-07-18 09:22:18 -04:00
morganherlocker
874f2a8658 better tests for turf-point-on-line 2016-05-31 18:57:24 -07:00
Tom MacWright
55656b92f4 Unirepo: turf in one repository 2016-02-26 17:44:33 -05:00
morganherlocker
687bb0d351 add line-slice & point-on-line 2015-01-26 15:58:32 -05:00
morganherlocker
a8e1fb110f clean /out 2015-01-20 16:26:39 -05:00
morganherlocker
485e865364 add gz 2014-12-18 14:51:29 -05:00
Morgan Herlocker
a2977d7663 formatting gitignore 2014-02-11 14:39:11 -05:00
chelm
bb3eb12fd8 removed node_modules and add them to git ignore 2013-11-06 06:37:47 -07:00
Morgan Herlocker
e82df26f71 removed ds_store 2013-10-11 23:19:28 -04:00
Morgan Herlocker
661c5ef73d Initial commit 2013-10-03 07:50:25 -07:00