mirror of
https://github.com/withastro/astro.git
synced 2025-01-27 22:19:04 -05:00
Checked the astro configs for the templates, (#1282)
* Checked the astro configs for the templates, * Update astro.config.mjs * Update package.json Co-authored-by: Fred K. Schott <fkschott@gmail.com>
This commit is contained in:
parent
66734b75f1
commit
b22755d59e
6 changed files with 34 additions and 10 deletions
|
@ -9,5 +9,5 @@
|
||||||
// @ts-check
|
// @ts-check
|
||||||
export default /** @type {import('astro').AstroUserConfig} */ ({
|
export default /** @type {import('astro').AstroUserConfig} */ ({
|
||||||
// Enable many renderers to support all different kinds of components.
|
// 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'],
|
renderers: ['@astrojs/renderer-preact', '@astrojs/renderer-react', '@astrojs/renderer-svelte', '@astrojs/renderer-vue','@astrojs/renderer-solid' ],
|
||||||
});
|
});
|
||||||
|
|
|
@ -9,7 +9,8 @@
|
||||||
"preview": "astro preview"
|
"preview": "astro preview"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"astro": "^0.20.3"
|
"astro": "^0.20.3",
|
||||||
|
"@astrojs/renderer-solid": "^0.1.0"
|
||||||
},
|
},
|
||||||
"snowpack": {
|
"snowpack": {
|
||||||
"workspaceRoot": "../.."
|
"workspaceRoot": "../.."
|
||||||
|
|
|
@ -8,6 +8,6 @@
|
||||||
|
|
||||||
// @ts-check
|
// @ts-check
|
||||||
export default /** @type {import('astro').AstroUserConfig} */ ({
|
export default /** @type {import('astro').AstroUserConfig} */ ({
|
||||||
// Set "renderers" to "[]" to disable all default, builtin component support.
|
// Comment out "renderers: []" to enable Astro's default component support.
|
||||||
renderers: [],
|
renderers: [],
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,11 +1,22 @@
|
||||||
export default {
|
// Full Astro Configuration API Documentation:
|
||||||
|
// https://docs.astro.build/reference/configuration-reference
|
||||||
|
|
||||||
|
// @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} */ ({
|
||||||
projectRoot: '.',
|
projectRoot: '.',
|
||||||
pages: './src/pages',
|
pages: './src/pages',
|
||||||
dist: './dist',
|
dist: './dist',
|
||||||
public: './public',
|
public: './public',
|
||||||
|
// Set "renderers" to "[]" to disable all default, builtin component support.
|
||||||
renderers: [
|
renderers: [
|
||||||
'@astrojs/renderer-vue',
|
'@astrojs/renderer-vue',
|
||||||
'@astrojs/renderer-svelte',
|
'@astrojs/renderer-svelte',
|
||||||
'@astrojs/renderer-preact',
|
'@astrojs/renderer-preact',
|
||||||
],
|
],
|
||||||
};
|
});
|
||||||
|
|
||||||
|
|
|
@ -7,8 +7,7 @@
|
||||||
// You can disable this by removing "@ts-check" and `@type` comments below.
|
// You can disable this by removing "@ts-check" and `@type` comments below.
|
||||||
|
|
||||||
// @ts-check
|
// @ts-check
|
||||||
export default /** @type {import('astro').AstroUserConfig} */ (
|
export default /** @type {import('astro').AstroUserConfig} */ ({
|
||||||
{
|
// Set "renderers" to "[]" to disable all default, builtin component support.
|
||||||
// ...
|
// renderers: [],
|
||||||
}
|
});
|
||||||
);
|
|
||||||
|
|
13
examples/with-markdown/astro.config.mjs
Normal file
13
examples/with-markdown/astro.config.mjs
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
// Full Astro Configuration API Documentation:
|
||||||
|
// https://docs.astro.build/reference/configuration-reference
|
||||||
|
|
||||||
|
// @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} */ ({
|
||||||
|
// Set "renderers" to "[]" to disable all default, builtin component support.
|
||||||
|
// renderers: [],
|
||||||
|
});
|
Loading…
Add table
Reference in a new issue