Giter Club home page Giter Club logo

Comments (8)

lesliecdubs avatar lesliecdubs commented on May 18, 2024 1

FYI in case this is useful, we already have some very basic heuristics set up in the app. As swyx mentioned, we only use them right now to detect a user's build command and publish folder in the "create a new site" flow once a repo is linked.

https://github.com/netlify/netlify-react-ui/blob/master/src/lib/heuristics/automation.js

from build.

erquhart avatar erquhart commented on May 18, 2024 1

Super late here, but good point @lesliecdubs. Ideally we wouldn't have two different implementations of the same logic. Want to start exploring CLI and UI parity and code reuse more.

from build.

swyxio avatar swyxio commented on May 18, 2024

yes, we can also use heuristics in the netlify UI (to suggest build command and publish folder when setting up a project for the first time). basically this has the most value as an independent project that others can use and contribute to for non netlify usecases as well.

@RaeesBhatti knows about the split-out detector todo issue from netlify dev.

netlify dev detectors currently encode way too much netlify dev specifics, we would do well to come up with a simple project detector format and some heuristics for resolving conflicts (example, every sapper project is also a svelte project, so we need to just pick sapper if it exists. or figure out what to do if for example both gatsby and jekyll are installed in repo)

from build.

DavidWells avatar DavidWells commented on May 18, 2024

Related #12

from build.

DavidWells avatar DavidWells commented on May 18, 2024

Related: https://twitter.com/alexander_bird/status/1180544954214432768

Functionality we could improve: if single html file in dist directory and we detect react/preact/angular/vue/etc as dep, and don't find SPA redirect, console.log "hey you might need this redirect http://direct-link-to-docs.com"

from build.

swyxio avatar swyxio commented on May 18, 2024

its probably too late at this point but i would strongly suggest making heuristics a launch feature.

from build.

RaeesBhatti avatar RaeesBhatti commented on May 18, 2024

I'm picking up this issue to start working on it.

from build.

verythorough avatar verythorough commented on May 18, 2024

Closing as done. Between the work linked above and the new https://github.com/netlify/framework-info library, I think we're effectively covered. If there are any outstanding tasks, please break them out into new issues.

from build.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.