314 Commits

Author SHA1 Message Date
James Beard
4469661e09
Replace ts-node with tsx in doc and test related build scripts (#2489)
* MRL configuration changes to replace ts-node with tsx, a more robust TS runtime. Will run MRL --fix and commit per-package changes next.

* JS projects can also rely on tsx to run scripts that used to be run by node.

* Need to keep ts-node around (at the monorepo level at least) for monorepolint.

* Almost entirely MRL automatic fixes for tsx dev dependencies, bench, doc, and test:tape. Hand edited last-checks scripts in packages/turf/
2023-09-10 20:15:59 -04:00
mfedderly
f62ba326cb
Fix docs generation (#2279)
* Fix generate-readmes script to work with typescript packages

* auto generated changes from generate-readmes and new documentationjs version

* Update husky to enforce docs builds at commit time
2022-04-02 12:52:52 -04:00
mfedderly
52f54494a3
Target ES2017 (#2237)
* Target ES2017

* Fix rbush usage issue

* More rbush fixes

Co-authored-by: Rowan Winsemius <rowanwins@yahoo.com.au>
2022-01-15 07:30:28 -05:00
Tim Welch
d72985ce1a
Migrate to @types/geojson package (#2158)
* migrate to geojson types package

* strip geojson further

* migrate geojson type imports

* migrate more geojson type imports

* bump to geojson-rbush 3.2.0 and add line-overlap fix

* few more type migrations

* migrate to new internal es5 @turf/geojson-rbush

* migrate buffer to geojson types

* fix convertLength import
2021-10-24 23:07:07 -07:00
mfedderly
6a52e5b0b0
Opencollective postinstall -> npm fund (#2127)
- opencollective package has been deprecated
- postinstall task is no longer recommended
- https://blog.opencollective.com/beyond-post-install/

Co-authored-by: Matt Fedderly <mfedderly@palantir.com>
2021-06-23 21:18:12 -04:00
mfedderly
0c2cb6becc
upgrade documentation dependency (#2115)
Co-authored-by: Matt Fedderly <mfedderly@palantir.com>
2021-06-22 19:48:06 -04:00
mfedderly
279a8a1068
Upgrade Lerna (#2114)
* Upgrade most of lerna with an incomplete yarn.lock

* push the rest of the yarn.lock changes

Co-authored-by: Matt Fedderly <mfedderly@palantir.com>
2021-06-22 19:33:45 -04:00
mfedderly
bec40ecfdf
Add .js to relative import statements in es output at build time (#2011)
Co-authored-by: Matt Fedderly <mfedderly@palantir.com>
2021-01-19 14:31:28 -05:00
mfedderly
5a029b206c
Only include ES5 code, remove some ES6 that had crept in (#1984)
* Move @turf/polygonize to typescript instead of its own custom rollup

* validate-es5-dependencies -> es-check

* @turf/buffer const -> var

* polygon-clipping dependency from 0.14.3 -> 0.15.2 to swap es6 code for es5 code

* @turf/turf - Change rollup config to better support tree shaking, remove buble reference

* Remove deprecated exports from @turf/helpers, they are still covered in @turf/turf:

- radians2degrees
- degrees2radians
- distanceToDegrees
- distanceToRadians
- radiansToDistance
- bearingToAngle
- convertDistance

Co-authored-by: Matt Fedderly <mfedderly@palantir.com>
2020-12-17 08:36:56 -05:00
mfedderly
e296063455
Upgrade rollup to fix @turf/turf build issue (#1975)
* Upgrade rollup to fix @turf/turf build issue

* prettier issues

* Fix broken test

Co-authored-by: Matt Fedderly <mfedderly@palantir.com>
2020-12-09 19:27:21 -05:00
mfedderly
2e9d3d51f7
Add Prettier and ESLint to the builds (#1965)
* Configure ESlint and Prettier
- Disable all eslint rules that trigger
- Build's lint step now runs monorepoint, prettier, and eslint
- Remove all tslint references

* [auto] run prettier on everything

Co-authored-by: Matt Fedderly <mfedderly@palantir.com>
2020-12-08 19:24:15 -05:00
mfedderly
2faafab916
Bench + Test cleanup (#1968)
- No longer have bench and test call prepare explicitly
- bench.js, test.js, types.ts all use the local copy of the code, not the built copy
- Fixed quite a few bench.js files that were just broken
- Rework root package.json for build clarity
- Change prepare scripts to build so that they don't run on publish

Co-authored-by: Matt Fedderly <mfedderly@palantir.com>
Co-authored-by: Rowan Winsemius <rowanwins@yahoo.com.au>
2020-12-08 17:06:34 -05:00
mfedderly
b830207305
Standardize some devDependencies with monorepolint (#1884)
* Ensure npm-run-all, typescript, and rollup devDependencies are set.
* Alphabetize dependencies

Co-authored-by: Matt Fedderly <mfedderly@palantir.com>
2020-04-15 06:43:04 -04:00
mfedderly
d61ceb5635
Upgrade lerna (#1870)
* Upgrade lerna
* Fix lerna config
* change to fixed versioning

Co-authored-by: Matt Fedderly <mfedderly@palantir.com>
2020-03-25 07:06:43 -04:00
mfedderly
0239428c3c
Setup monorepolint (#1856)
Configure monorepolint

- Monorepolint lets us easily manage all of our subpackages declaratively
- Husky installs commit hooks to prevent invalid commits from even merging
- lint-staged gives us rules for custom linting depending on what files changed
- Alphabetize the package.json scripts
- Change travis node version from 9->12 to get to a supported version
- Bump all of the typescript dependencies to the latest, fixes a build error with some types in our dependencies being 3.x dependent.

Co-authored-by: Matt Fedderly <mfedderly@palantir.com>
2020-03-16 18:17:45 -04: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
Matt Fedderly
657c9faa4b Update from @std/esm to esm
- @std/esm has been deprecated in favor of just esm, this fixes building on newer node versions.
- Moved the dependency from every package.json into the root package.json
2020-03-09 10:14:36 -04:00
zhuang-hao-ming
10586eef05 revise .gitigonre and delete some whitespace 1 2018-03-23 15:23:38 +08:00
zhuang-hao-ming
adf29d8734 initial commit 2018-03-23 11:16:24 +08:00
Jess
058cb5d98d Added call to donate after npm install (optional) 2018-03-01 13:13:46 +09:00
Denis
e6a0f81b3f Implement bbox-polygon 2018-02-03 16:40:32 -05:00
Denis
8dfe57d150 Add bbox-clip to Typescript 2018-02-03 16:13:33 -05:00
Denis
cd0f453036 Add --use-workspaces to lerna 2018-02-03 12:05:58 -05:00
Denis
9ba356a647 Update lerna 2.8.0 2018-02-03 11:31:06 -05:00
Denis
07b92e20c4
Merge branch 'master' into typescript 2018-02-02 21:29:39 -05:00
Denis
cc6da85516
Update package.json 2018-02-02 20:59:54 -05:00
Denis
5f7024e8ac Drop linting (for now) TSLint will be added afterwards 2018-01-30 12:13:34 -05:00
Denis
1cfd531bda Convert turf-bbox to 100% typescript 2018-01-30 11:15:33 -05:00
Denis
e1c81f7e58 Add valide ES5 syntax 2017-12-09 19:01:29 -08:00
Denis
96ec0ac768 Add CommonJS rollup plugin
Ref: https://github.com/Turfjs/turf/issues/1161
2017-12-07 16:08:14 -05:00
Denis
505ad0ba5d internalize polygonize 2017-12-07 05:01:05 -05:00
Denis
10c01b7736 Add documentation yaml to turf main 2017-12-03 21:25:47 -05:00
Denis
6bcdaad5b9 Add browserify 2017-11-01 11:51:41 -04:00
Denis
7f60e77fcb Update buffer to jsts es modules 2017-10-17 02:05:40 -04:00
Denis
ab26bb5019 Refactor bench.js to ES modules (#1005)
* Refactor bench.js

* Revert isobands & isoline changes

* Replace grid-to-matrix
2017-10-06 13:30:18 -04:00
Denis
6a050e7b98 Remove parallel 2017-09-27 23:36:40 -04:00
Denis
d4827d4104 Update yarn lock files 2017-09-27 00:55:47 -04:00
Denis
7beb8b3aa3 Remove defaults 2017-09-27 00:44:22 -04:00
Denis
3867c67ba3 Add lerna prepublish 2017-09-27 00:25:30 -04:00
Denis
a5a5f9542b Update turf tests 2017-09-26 17:44:29 -04:00
Denis
9a05cea93b Update main package.json scripts 2017-09-26 16:28:49 -04:00
Denis
6ae26ca7db Update dependencies to 5.0.0-alpha 2017-09-26 13:14:49 -04:00
Denis
ccfe32027f Rename ES6 modules index to ".js" 2017-09-25 10:59:15 -04:00
Denis
11336348fc Order pretest before lint 2017-09-25 01:49:54 -04:00
Denis
6182533376 Fix documentation linting 2017-09-25 01:30:24 -04:00
Denis
6931fd85af Fix pretest - lerna bootstrap first item 2017-09-24 21:25:57 -04:00
Denis
a2f8c11d25 Update @turf/turf exports 2017-09-24 15:39:53 -04:00
Denis
0ae7e38c15 Solve default export for multi-modules 2017-09-24 15:05:21 -04:00
Denis
aee3f3a9bb Convert ES6 modules import/export 2017-09-23 13:19:02 -04:00
Denis
ceef6c6ae4 Drop tap test in favor of Lerna run test 2017-09-22 23:25:49 -04:00