Comments (8)
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.
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.
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.
Related #12
from build.
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.
its probably too late at this point but i would strongly suggest making heuristics a launch feature.
from build.
I'm picking up this issue to start working on it.
from build.
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)
- edge_functions failing validation when using documented properties HOT 3
- Bug: build-info framework detection wrong publish directory for gatsby
- build-info fix order of pnpm flags how they are passed
- Dependency Dashboard
- [Honeycomb] handle parent based sampling
- build-info support old nx workspace setups as well HOT 1
- ESLINT error: TypeError: (0 , import_module.createRequire) is not a function at open_api.js:4:
- Mark `module requires Go 1.19` errors as user errors HOT 1
- Add missing build tools
- Add light-mode logo for eleventy
- Type imports from `@netlify/build` fail with TS 4.x
- Plugin "@netlify/build" internal error HOT 2
- Create types for the OpenAPI specification based on the swagger.json
- @netlify/sdk issues on windows while creating example application. HOT 4
- baseRelDir cannot be set to false in new netlify sites or change to true from older sites HOT 5
- [build-info] Bugsnag error formatting is incorrect and noisy HOT 1
- Hide Netlify Build "Flags" information when `debug` is not true
- Unable to specify @netlify/build version in Netlify pipeline HOT 2
- Netlify app changes URL when a link is clicked, but takes a second click to actually load the page
- Netlify app changes URL when a link is clicked, but takes a second click to actually load the page
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from build.