-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
chore: clean dead code #13591
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
Merged
Merged
chore: clean dead code #13591
Changes from all commits
Commits
Show all changes
66 commits
Select commit
Hold shift + click to select a range
c6063f2
feat: add knip
florian-lefebvre bd2ffaa
feat: clean alpine
florian-lefebvre 59e6f4d
feat: cloudflare
florian-lefebvre 093bf2a
chore: remove dependencies
florian-lefebvre 5026fe8
fix: cloudflare
florian-lefebvre e12c94f
chore: clean markdoc
florian-lefebvre 0d8b509
chore: clean mdx
florian-lefebvre 51a7341
feat: netlify
florian-lefebvre b3dc03a
feat: node
florian-lefebvre 223a807
feat: partytown
florian-lefebvre 2e1ab57
feat: preact
florian-lefebvre 2f271f7
feat: work on react
florian-lefebvre de2c739
feat: work on react
florian-lefebvre 07961d5
feat: react
florian-lefebvre 55cb900
feat: sitemap
florian-lefebvre 05ed518
feat: solid
florian-lefebvre fc334fd
feat: svelte
florian-lefebvre d6fb557
feat: vercel
florian-lefebvre 5c16133
feat: vue
florian-lefebvre 3d46cad
feat: web vitals
florian-lefebvre 91f5f9b
fix: ignore temp fixtures
florian-lefebvre b6195a4
feat: work on astro
florian-lefebvre 89633c9
feat: work on astro
florian-lefebvre 58c16a6
feat: work on astro
florian-lefebvre a18efbc
feat: astro
florian-lefebvre e10cc74
feat: reduce entry list
florian-lefebvre e80b220
feat: even better
florian-lefebvre 2cfc75f
chore: upgrade knip
florian-lefebvre ef2c0cf
fix: astro build
florian-lefebvre c1cd563
feat: simplify config
florian-lefebvre adc1565
feat: create-astro
florian-lefebvre b130d3f
feat: db
florian-lefebvre c97452f
feat: markdown/remark
florian-lefebvre 4c6f88b
feat: studio
florian-lefebvre 0eb9ab5
feat: last packages
florian-lefebvre 0ba51cb
chore: tweak config
florian-lefebvre e22e1cd
chore: upgrade knip
florian-lefebvre b4d2dd1
fix: vue build
florian-lefebvre a0096d9
fix: build commands
florian-lefebvre 6ad3834
Discard changes to packages/astro/test/units/teardown.js
florian-lefebvre a682892
fix: config
florian-lefebvre 6726e76
chore: upgrade knip
florian-lefebvre f66cb3f
feat: improve knip
florian-lefebvre 4c8261b
fix: build
florian-lefebvre 39770ac
chore: shorten
florian-lefebvre 3bb5a0b
fix: test
florian-lefebvre b96315c
Merge branch 'main' into feat/knip
florian-lefebvre 7bf6087
chore: update knip
florian-lefebvre 38c843b
fix
florian-lefebvre e498de3
feat: update lint commands
florian-lefebvre 4f8f919
chore: format
florian-lefebvre ec5cab2
fix: test image service
florian-lefebvre 7c9545a
chore: format
florian-lefebvre 76969fc
fix: test remote image service
florian-lefebvre 24dfbd3
test
florian-lefebvre a4f840e
test
florian-lefebvre 29f0ad6
test
florian-lefebvre fd1bc2b
ci fix
florian-lefebvre 612d49f
Merge branch 'main' into feat/knip
florian-lefebvre ea092db
feat: tsconfig update
florian-lefebvre 64fe201
feat: biome and eslint
florian-lefebvre 10b838f
chore: changeset
florian-lefebvre 2c96607
fix: test
florian-lefebvre 7d3a2cc
feat: config feedback
florian-lefebvre ca0f378
trigger ci
florian-lefebvre 70aa2e2
Merge branch 'main' into feat/knip
florian-lefebvre File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| --- | ||
| '@astrojs/cloudflare': patch | ||
| '@astrojs/web-vitals': patch | ||
| '@astrojs/alpinejs': patch | ||
| '@astrojs/markdoc': patch | ||
| '@astrojs/netlify': patch | ||
| '@astrojs/sitemap': patch | ||
| '@astrojs/underscore-redirects': patch | ||
| '@astrojs/preact': patch | ||
| '@astrojs/vercel': patch | ||
| '@astrojs/solid-js': patch | ||
| '@astrojs/node': patch | ||
| '@astrojs/mdx': patch | ||
| 'create-astro': patch | ||
| '@astrojs/telemetry': patch | ||
| '@astrojs/upgrade': patch | ||
| '@astrojs/studio': patch | ||
| 'astro': patch | ||
| '@astrojs/db': patch | ||
| --- | ||
|
|
||
| Removes unused code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,77 @@ | ||
| // @ts-check | ||
| const testEntry = 'test/**/*.test.js'; | ||
|
|
||
| /** @type {import('knip').KnipConfig} */ | ||
| export default { | ||
| ignore: ['**/test/**/{fixtures,_temp-fixtures}/**', '.github/scripts/**'], | ||
| tags: ['-lintignore'], | ||
| ignoreWorkspaces: [ | ||
| 'examples/**', | ||
| '**/{test,e2e}/**/{fixtures,_temp-fixtures}/**', | ||
| 'benchmark/**', | ||
| ], | ||
| workspaces: { | ||
| '.': { | ||
| ignoreDependencies: [ | ||
| '@astrojs/check', // Used by the build script but not as a standard module import | ||
| ], | ||
| // In smoke tests, we checkout to the docs repo so those binaries are not present in this project | ||
| ignoreBinaries: ['docgen', 'docgen:errors', 'playwright'], | ||
| }, | ||
| 'packages/*': { | ||
| entry: [testEntry], | ||
| }, | ||
| 'packages/astro': { | ||
| entry: [ | ||
| // Can't be detected automatically since it's only in package.json#files | ||
| 'templates/**/*', | ||
| testEntry, | ||
| 'test/types/**/*', | ||
| 'e2e/**/*.test.js', | ||
| 'test/units/teardown.js', | ||
| ], | ||
| ignore: ['**/e2e/**/{fixtures,_temp-fixtures}/**', 'performance/**/*'], | ||
| // Those deps are used in tests but only referenced as strings | ||
| ignoreDependencies: [ | ||
| 'rehype-autolink-headings', | ||
| 'rehype-slug', | ||
| 'rehype-toc', | ||
| 'remark-code-titles', | ||
| ], | ||
| }, | ||
| 'packages/integrations/*': { | ||
| entry: [testEntry], | ||
| }, | ||
| 'packages/integrations/cloudflare': { | ||
| entry: [testEntry], | ||
| // False positive because of cloudflare:workers | ||
| ignoreDependencies: ['cloudflare'], | ||
| }, | ||
| 'packages/integrations/mdx': { | ||
| entry: [testEntry], | ||
| // Required but not imported directly | ||
| ignoreDependencies: ['@types/*'], | ||
| }, | ||
| 'packages/integrations/netlify': { | ||
| entry: [testEntry], | ||
| ignore: ['test/hosted/**'], | ||
| }, | ||
| 'packages/integrations/solid': { | ||
| entry: [testEntry], | ||
| // It's an optional peer dep (triggers a warning) but it's fine in this case | ||
| ignoreDependencies: ['solid-devtools'], | ||
| }, | ||
| 'packages/integrations/vercel': { | ||
| entry: [testEntry, 'test/test-image-service.js'], | ||
| ignore: ['test/hosted/**'], | ||
| }, | ||
| 'packages/markdown/remark': { | ||
| entry: [testEntry], | ||
| // package.json#imports are not resolved at the moment | ||
| ignore: ['src/import-plugin-browser.ts'], | ||
| }, | ||
| 'packages/upgrade': { | ||
| entry: ['src/index.ts', testEntry], | ||
| }, | ||
| }, | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,6 @@ | ||
| export { CONTENT_FLAG, PROPAGATED_ASSET_FLAG } from './consts.js'; | ||
| export { attachContentServerListeners } from './server-listeners.js'; | ||
| export { createContentTypesGenerator } from './types-generator.js'; | ||
| export { contentObservable, getContentPaths, hasAssetPropagationFlag } from './utils.js'; | ||
| export { getContentPaths, hasAssetPropagationFlag } from './utils.js'; | ||
| export { astroContentAssetPropagationPlugin } from './vite-plugin-content-assets.js'; | ||
| export { astroContentImportPlugin } from './vite-plugin-content-imports.js'; | ||
| export { astroContentVirtualModPlugin } from './vite-plugin-content-virtual-mod.js'; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.