-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add astro/config entrypoint * chore: update examples to use `defineConfig` util * chore: prettier fix * chore: add changeset
- Loading branch information
1 parent
2d95541
commit 2b76ee8
Showing
29 changed files
with
101 additions
and
205 deletions.
There are no files selected for viewing
This file contains 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,15 @@ | ||
--- | ||
'astro': patch | ||
--- | ||
|
||
Add an `astro/config` entrypoint with a `defineConfig` utility. | ||
|
||
Config files can now be easily benefit from Intellisense using the following approach: | ||
|
||
```js | ||
import { defineConfig } from 'astro/config'; | ||
|
||
export default defineConfig({ | ||
renderers: [] | ||
}) | ||
``` |
This file contains 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,13 +1,7 @@ | ||
// Full Astro Configuration API Documentation: | ||
// https://docs.astro.build/reference/configuration-reference | ||
import { defineConfig } from 'astro/config'; | ||
|
||
// @type-check enabled! | ||
// VSCode and other TypeScript-enabled text editors will provide auto-completion, | ||
// helpful tooltips, and warnings if your exported object is invalid. | ||
// You can disable this by removing "@ts-check" and `@type` comments below. | ||
|
||
// @ts-check | ||
export default /** @type {import('astro').AstroUserConfig} */ ({ | ||
// https://astro.build/config | ||
export default defineConfig({ | ||
// Enable the Preact renderer to support Preact JSX components. | ||
renderers: ['@astrojs/renderer-preact'], | ||
}); |
This file contains 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 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,13 +1,7 @@ | ||
// Full Astro Configuration API Documentation: | ||
// https://docs.astro.build/reference/configuration-reference | ||
import { defineConfig } from 'astro/config'; | ||
|
||
// @type-check enabled! | ||
// VSCode and other TypeScript-enabled text editors will provide auto-completion, | ||
// helpful tooltips, and warnings if your exported object is invalid. | ||
// You can disable this by removing "@ts-check" and `@type` comments below. | ||
|
||
// @ts-check | ||
export default /** @type {import('astro').AstroUserConfig} */ ({ | ||
// https://astro.build/config | ||
export default defineConfig({ | ||
// Comment out "renderers: []" to enable Astro's default component support. | ||
renderers: [], | ||
}); |
This file contains 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 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,8 +1,6 @@ | ||
// Full Astro Configuration API Documentation: | ||
// https://docs.astro.build/reference/configuration-reference | ||
import { defineConfig } from 'astro/config'; | ||
|
||
// @ts-check | ||
export default /** @type {import('astro').AstroUserConfig} */ ({ | ||
// Comment out "renderers: []" to enable Astro's default component support. | ||
// https://astro.build/config | ||
export default defineConfig({ | ||
renderers: [], | ||
}); |
This file contains 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,13 +1,7 @@ | ||
// Full Astro Configuration API Documentation: | ||
// https://docs.astro.build/reference/configuration-reference | ||
import { defineConfig } from 'astro/config'; | ||
|
||
// @type-check enabled! | ||
// VSCode and other TypeScript-enabled text editors will provide auto-completion, | ||
// helpful tooltips, and warnings if your exported object is invalid. | ||
// You can disable this by removing "@ts-check" and `@type` comments below. | ||
|
||
// @ts-check | ||
export default /** @type {import('astro').AstroUserConfig} */ ({ | ||
// https://astro.build/config | ||
export default defineConfig({ | ||
// No renderers are needed for AlpineJS support, just use Astro components! | ||
renderers: [], | ||
}); |
This file contains 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,13 +1,7 @@ | ||
// Full Astro Configuration API Documentation: | ||
// https://docs.astro.build/reference/configuration-reference | ||
import { defineConfig } from 'astro/config'; | ||
|
||
// @type-check enabled! | ||
// VSCode and other TypeScript-enabled text editors will provide auto-completion, | ||
// helpful tooltips, and warnings if your exported object is invalid. | ||
// You can disable this by removing "@ts-check" and `@type` comments below. | ||
|
||
// @ts-check | ||
export default /** @type {import('astro').AstroUserConfig} */ ({ | ||
// https://astro.build/config | ||
export default defineConfig({ | ||
// Enable the lit renderer to support LitHTML components and templates. | ||
renderers: ['@astrojs/renderer-lit'], | ||
}); |
This file contains 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,13 +1,7 @@ | ||
// Full Astro Configuration API Documentation: | ||
// https://docs.astro.build/reference/configuration-reference | ||
import { defineConfig } from 'astro/config'; | ||
|
||
// @type-check enabled! | ||
// VSCode and other TypeScript-enabled text editors will provide auto-completion, | ||
// helpful tooltips, and warnings if your exported object is invalid. | ||
// You can disable this by removing "@ts-check" and `@type` comments below. | ||
|
||
// @ts-check | ||
export default /** @type {import('astro').AstroUserConfig} */ ({ | ||
// https://astro.build/config | ||
export default defineConfig({ | ||
// Enable many renderers to support all different kinds of components. | ||
renderers: ['@astrojs/renderer-preact', '@astrojs/renderer-react', '@astrojs/renderer-svelte', '@astrojs/renderer-vue', '@astrojs/renderer-solid'], | ||
}); |
This file contains 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,13 +1,7 @@ | ||
// Full Astro Configuration API Documentation: | ||
// https://docs.astro.build/reference/configuration-reference | ||
import { defineConfig } from 'astro/config'; | ||
|
||
// @type-check enabled! | ||
// VSCode and other TypeScript-enabled text editors will provide auto-completion, | ||
// helpful tooltips, and warnings if your exported object is invalid. | ||
// You can disable this by removing "@ts-check" and `@type` comments below. | ||
|
||
// @ts-check | ||
export default /** @type {import('astro').AstroUserConfig} */ ({ | ||
// https://astro.build/config | ||
export default defineConfig({ | ||
// Enable the Preact renderer to support Preact JSX components. | ||
renderers: ['@astrojs/renderer-preact'], | ||
}); |
This file contains 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,13 +1,7 @@ | ||
// Full Astro Configuration API Documentation: | ||
// https://docs.astro.build/reference/configuration-reference | ||
import { defineConfig } from 'astro/config'; | ||
|
||
// @type-check enabled! | ||
// VSCode and other TypeScript-enabled text editors will provide auto-completion, | ||
// helpful tooltips, and warnings if your exported object is invalid. | ||
// You can disable this by removing "@ts-check" and `@type` comments below. | ||
|
||
// @ts-check | ||
export default /** @type {import('astro').AstroUserConfig} */ ({ | ||
// https://astro.build/config | ||
export default defineConfig({ | ||
// Enable the React renderer to support React JSX components. | ||
renderers: ['@astrojs/renderer-react'], | ||
}); |
This file contains 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,13 +1,7 @@ | ||
// Full Astro Configuration API Documentation: | ||
// https://docs.astro.build/reference/configuration-reference | ||
import { defineConfig } from 'astro/config'; | ||
|
||
// @type-check enabled! | ||
// VSCode and other TypeScript-enabled text editors will provide auto-completion, | ||
// helpful tooltips, and warnings if your exported object is invalid. | ||
// You can disable this by removing "@ts-check" and `@type` comments below. | ||
|
||
// @ts-check | ||
export default /** @type {import('astro').AstroUserConfig} */ ({ | ||
// https://astro.build/config | ||
export default defineConfig({ | ||
// Enable the Solid renderer to support Solid JSX components. | ||
renderers: ['@astrojs/renderer-solid'], | ||
}); |
This file contains 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,13 +1,7 @@ | ||
// Full Astro Configuration API Documentation: | ||
// https://docs.astro.build/reference/configuration-reference | ||
import { defineConfig } from 'astro/config'; | ||
|
||
// @type-check enabled! | ||
// VSCode and other TypeScript-enabled text editors will provide auto-completion, | ||
// helpful tooltips, and warnings if your exported object is invalid. | ||
// You can disable this by removing "@ts-check" and `@type` comments below. | ||
|
||
// @ts-check | ||
export default /** @type {import('astro').AstroUserConfig} */ ({ | ||
// https://astro.build/config | ||
export default defineConfig({ | ||
// Enable the Svelte renderer to support Svelte components. | ||
renderers: ['@astrojs/renderer-svelte'], | ||
}); |
This file contains 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,13 +1,7 @@ | ||
// Full Astro Configuration API Documentation: | ||
// https://docs.astro.build/reference/configuration-reference | ||
import { defineConfig } from 'astro/config'; | ||
|
||
// @type-check enabled! | ||
// VSCode and other TypeScript-enabled text editors will provide auto-completion, | ||
// helpful tooltips, and warnings if your exported object is invalid. | ||
// You can disable this by removing "@ts-check" and `@type` comments below. | ||
|
||
// @ts-check | ||
export default /** @type {import('astro').AstroUserConfig} */ ({ | ||
// https://astro.build/config | ||
export default defineConfig({ | ||
// Enable the Vue renderer to support Vue components. | ||
renderers: ['@astrojs/renderer-vue'], | ||
}); |
This file contains 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,8 +1,7 @@ | ||
// Full Astro Configuration API Documentation: | ||
// https://docs.astro.build/reference/configuration-reference | ||
import { defineConfig } from 'astro/config'; | ||
|
||
// @ts-check | ||
export default /** @type {import('astro').AstroUserConfig} */ ({ | ||
// https://astro.build/config | ||
export default defineConfig({ | ||
// Comment out "renderers: []" to enable Astro's default component support. | ||
renderers: [], | ||
}); |
This file contains 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,8 +1,7 @@ | ||
// Full Astro Configuration API Documentation: | ||
// https://docs.astro.build/reference/configuration-reference | ||
import { defineConfig } from 'astro/config'; | ||
|
||
// @ts-check | ||
export default /** @type {import('astro').AstroUserConfig} */ ({ | ||
// https://astro.build/config | ||
export default defineConfig({ | ||
// Comment out "renderers: []" to enable Astro's default component support. | ||
renderers: [], | ||
}); |
This file contains 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,13 +1,7 @@ | ||
// Full Astro Configuration API Documentation: | ||
// https://docs.astro.build/reference/configuration-reference | ||
import { defineConfig } from 'astro/config'; | ||
|
||
// @type-check enabled! | ||
// VSCode and other TypeScript-enabled text editors will provide auto-completion, | ||
// helpful tooltips, and warnings if your exported object is invalid. | ||
// You can disable this by removing "@ts-check" and `@type` comments below. | ||
|
||
// @ts-check | ||
export default /** @type {import('astro').AstroUserConfig} */ ({ | ||
// https://astro.build/config | ||
export default defineConfig({ | ||
// Enable the Preact renderer to support Preact JSX components. | ||
renderers: ['@astrojs/renderer-preact'], | ||
}); |
This file contains 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 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,13 +1,7 @@ | ||
// Full Astro Configuration API Documentation: | ||
// https://docs.astro.build/reference/configuration-reference | ||
import { defineConfig } from 'astro/config'; | ||
|
||
// @type-check enabled! | ||
// VSCode and other TypeScript-enabled text editors will provide auto-completion, | ||
// helpful tooltips, and warnings if your exported object is invalid. | ||
// You can disable this by removing "@ts-check" and `@type` comments below. | ||
|
||
// @ts-check | ||
export default /** @type {import('astro').AstroUserConfig} */ ({ | ||
// https://astro.build/config | ||
export default defineConfig({ | ||
// Set "renderers" to "[]" to disable all default, builtin component support. | ||
renderers: [], | ||
}); |
This file contains 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 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 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 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,12 +1,6 @@ | ||
// Full Astro Configuration API Documentation: | ||
// https://docs.astro.build/reference/configuration-reference | ||
import { defineConfig } from 'astro/config'; | ||
|
||
// @type-check enabled! | ||
// VSCode and other TypeScript-enabled text editors will provide auto-completion, | ||
// helpful tooltips, and warnings if your exported object is invalid. | ||
// You can disable this by removing "@ts-check" and `@type` comments below. | ||
|
||
// @ts-check | ||
export default /** @type {import('astro').AstroUserConfig} */ ({ | ||
// https://astro.build/config | ||
export default defineConfig({ | ||
renderers: ['@astrojs/renderer-preact', '@astrojs/renderer-react', '@astrojs/renderer-svelte', '@astrojs/renderer-vue'], | ||
}); |
This file contains 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,13 +1,7 @@ | ||
// Full Astro Configuration API Documentation: | ||
// https://docs.astro.build/reference/configuration-reference | ||
import { defineConfig } from 'astro/config'; | ||
|
||
// @type-check enabled! | ||
// VSCode and other TypeScript-enabled text editors will provide auto-completion, | ||
// helpful tooltips, and warnings if your exported object is invalid. | ||
// You can disable this by removing "@ts-check" and `@type` comments below. | ||
|
||
// @ts-check | ||
export default /** @type {import('astro').AstroUserConfig} */ ({ | ||
// https://astro.build/config | ||
export default defineConfig({ | ||
// Enable many renderers to support all different kinds of components. | ||
renderers: ['@astrojs/renderer-preact', '@astrojs/renderer-react', '@astrojs/renderer-svelte', '@astrojs/renderer-vue', '@astrojs/renderer-solid'], | ||
}); |
Oops, something went wrong.