framework-info
framework-info copied to clipboard
feat: migrate from webpack to vite
Summary
Replaces webpack with vite to build.
Is far easier to configure and maintain.
Testing
cli
- Pull this branch, increment the version in
package.jsonof the package, and runnpm pack - In
build-infoproject, runnpm install <path to the .tgz> - install/npm link
build-infoglobally if you haven't already - run
build-info <project path>against a test project - if working correctly, frameworks should be detected (such as a 'Next.js' site)
UI
- do the same 1st step as for the cli
- do the 2nd step in
netlify-react-ui(rather thanbuild-info) - follow the steps to start the UI locally
- Start the flow of importing a site from a git repo
- If working correctly, the correct framework should be detected (such as a 'Next.js' site)
For us to review and ship your PR efficiently, please perform the following steps:
- [ ] Open a bug/issue before writing your code ๐งโ๐ป. This ensures we can discuss the changes and get feedback from everyone that should be involved. If you`re fixing a typo or something that`s on fire ๐ฅ (e.g. incident related), you can skip this step.
- [ ] Read the contribution guidelines ๐. This ensures your code follows our style guide and passes our tests.
- [ ] Update or add tests (if any source code was changed or added) ๐งช
- [ ] Update or add documentation (if features were changed or added) ๐
- [ ] Make sure the status checks below are successful โ
A picture of a cute animal (not mandatory, but encouraged)

Deploy Preview for framework-info ready!
| Name | Link |
|---|---|
| Latest commit | 877718b9320fb5c2726e8a84f393551d792996f9 |
| Latest deploy log | https://app.netlify.com/sites/framework-info/deploys/634811a9d358d50008de7f1a |
| Deploy Preview | https://deploy-preview-819--framework-info.netlify.app |
| Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site settings.
I ran build-info ../../oss/iamdeveloper.com for my blog (Eleventy) and it gave the expected output.
{
"frameworks": [
{
"id": "eleventy",
"name": "Eleventy",
"category": "static_site_generator",
"dev": {
"commands": ["npm run serve"],
"port": 8080,
"pollingStrategies": [
{
"name": "TCP"
},
{
"name": "HTTP"
}
]
},
"build": {
"commands": ["eleventy"],
"directory": "_site"
},
"env": {},
"logo": {
"default": "https://framework-info.netlify.app/logos/eleventy/default.svg",
"light": "https://framework-info.netlify.app/logos/eleventy/default.svg",
"dark": "https://framework-info.netlify.app/logos/eleventy/default.svg"
},
"plugins": []
}
]
}