-
Notifications
You must be signed in to change notification settings - Fork 53
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
[Moved https://github.com/netlify/build/issues/39] Improve heuristics detection #12
Comments
we need to split out netlify dev detectors asap. cc @RaeesBhatti i can probably do it but just fyi |
The new built repo will likely be a mono repo with individual packages Heuristics lib will probably live in there |
could we brainstorm the output needed from the heuristics?
to get even better customizability, we might need to pass in options to the heuristics that are then run by the project, which then impact the output above. this flow is best owned by the heuristic lib. eg, i want to run gatsby on port 6969, i pass it in to to heuristics lib, it actually runs it with the right flag e.g. |
Yeah for sure. The heuristics are used in two (many more in future) places:
It would parse the project and try and make it's best guess on what the src code, ENV vars, and netlify config tells it. So all the existing fields we have but with some additions like:
Not sure on all the fields yet. Open to whatever The other changes to the lib will likely be:
|
Related: #39 |
Closing in favor of #39, which is also now closed. |
Fix missing dependency resolve and add a dep test
In an effort to speed up build times, we need to trim down the build image used as much as possible.
Having advanced heuristics of what the projects needs to run should help.
There are a couple of different methods we can use for this:
env
variables.We could also run the first build with the
kitchen-sink
image and use ML to optimize the image on the next runThe text was updated successfully, but these errors were encountered: