question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Suggesting curators and CDN of most used Turf methods

See original GitHub issue

Hi, can I suggest here an issue for CDN users? Something as “Popular Turf modules CDN”, a Turf subset of most frequently used Turf modules.

The standard CDN for turf.min.js is a ~600kb file, so big for some applications… But ~300kb or less file is not so big… There are many Github, GitLab, etc. projects that use only a little subset of Turf… And supposed that is possible to build a commom subset that will be a suitable CDN for 50% of more of them.

Curatory statistcs: the curators need only to list a set of use cases (example), with lines of import _module_ from '@turf/_module_'

PS: another good starting point will be a statistics of a turf-builder.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:13 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
stebogitcommented, Jan 1, 2019

It look like on jsDelivr you can link any specific file inside a GitHub project.

I wouldn’t create a separate project, but I do like the idea of a “Truf-light” or “Turf-essentials”. We could simply build a production file for a subset of modules and define (i.e. officialize) new CDN links. We could even define other specific subset packages like, for instance, “Turf-transform” with the transform modules (and maybe some useful related ones, if that makes sense) for polygon transformation.

0reactions
morganherlockercommented, Feb 8, 2019

@ppKrauss This is a good suggestion, but not something we have bandwidth to support. Custom builds are possible to generate with well maintained tools outside Turf, which is the standard level of distribution support provided by most modules. This allows you to mix and match Turf modules however works best for you, providing maximum flexibility.

@ppKrauss well I don’t know either how exactly the .min files are created 😅

We have traditionally used the uglify module for generating minified distributions. Combined with browserify, you can create any type of distribution you need by following the docs on those tools.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Environmental and Health Impacts of Artificial Turf: A Review
ABSTRACT: With significant water savings and low main- tenance requirements, artificial turf is increasingly promoted as.
Read more >
untitled - 20141032.full
colony, and we used the minimum convex polygon method to estimate the territory size of each ... tories have a more diverse assemblage...
Read more >
Pocket: Home
Great recommendations — curated for you. We comb the internet and surface ... Discover and save the most interesting stories on the web....
Read more >
TROUBLING SPACE: THE SUMMER SESSIONS - Zabludowicz ...
Christoffersen and Natasha Marie Llorens, two curators based in New York, approaches the ... Troubling Space: The Summer Sessions was chosen from more....
Read more >
Access/liability | lukebennett13 - WordPress.com
Falls from height remain one of the most common types of accidents on construction ... My latest article is inspired in part by...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found