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.

Do you plan to publish pre-compiled packages

See original GitHub issue

In order to use your nice library with the create-react-app tool it would be nice if you could add pre-compiled packages.

See also: https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#npm-run-build-fails-to-minify

This is the case at least for modules that need the turf-jstsdependency.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:15 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
DenisCarrierecommented, Nov 28, 2017

🛌 time

1reaction
DenisCarrierecommented, Nov 28, 2017

@helllth 😡 … After many linting edits (50+ files had issues), I think I’ve got it!

I’ve added a script that will test create-react-app inside turf-jsts.

A few warning errors left, but it shouldn’t prevent you from doing a build:

$ npm run create-react-app

> turf-jsts@1.0.1 create-react-app /Users/mac/Github/turf-jsts
> react-scripts build

Creating an optimized production build...
Compiled with warnings.

./src/java/util/TreeMap.js
  Line 157:  Unexpected assignment within a 'while' statement  no-cond-assign
  Line 172:  Unexpected assignment within a 'while' statement  no-cond-assign

./src/org/locationtech/jts/geom/Coordinate.js
  Line 72:   Expected a default case          default-case
  Line 154:  Unexpected mix of '^' and '>>>'  no-mixed-operators
  Line 154:  Unexpected mix of '^' and '>>>'  no-mixed-operators

Search for the keywords to learn more about each warning.
To ignore, add // eslint-disable-next-line to the line before.

File sizes after gzip:

  84.03 KB (+18 B)  build/static/js/main.24996049.js

The project was built assuming it is hosted at the server root.
To override this, specify the homepage in your package.json.
For example, add this to build it for GitHub Pages:

  "homepage" : "http://myname.github.io/myapp",

The build folder is ready to be deployed.
You may serve it with a static server:

  yarn global add serve
  serve -s build

@helllth Let me know if it works on your side, I’ve published a new minor release v1.1.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

Precompiling Your Website (C#) - Microsoft Learn
This can be an unattractive option if you plan on selling the web application to customers who will install it on their web...
Read more >
How to Publish an Open-Source Python Package to PyPI
In this tutorial, you'll learn how to upload your own package to PyPI. Publishing your project is easier than it used to be....
Read more >
ASP .NET Precompilation | Publishing | Performance - YouTube
This video covers various aspects of publishing a web application and precompiling it, showing you the exact process through visual studio.
Read more >
Web Deployment Project: Publish without Precompilation
The crux of the matter is that VirtualPathProviders are not supported for precompiled applications. I have found a workaround for regular files here....
Read more >
Precompiling websites - Kentico
You can deploy Kentico web projects to your hosting server using the. (MSDeploy). Visual Studio Publish function. Decide whether to precompile the website ......
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