From b22755d59e1e1530dc6da0daca976b82fa381a4a Mon Sep 17 00:00:00 2001 From: Peter Singh Date: Wed, 1 Sep 2021 02:09:16 +0100 Subject: [PATCH] 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 --- examples/framework-multiple/astro.config.mjs | 2 +- examples/framework-multiple/package.json | 3 ++- examples/minimal/astro.config.mjs | 2 +- examples/snowpack/astro.config.mjs | 15 +++++++++++++-- examples/starter/astro.config.mjs | 9 ++++----- examples/with-markdown/astro.config.mjs | 13 +++++++++++++ 6 files changed, 34 insertions(+), 10 deletions(-) create mode 100644 examples/with-markdown/astro.config.mjs diff --git a/examples/framework-multiple/astro.config.mjs b/examples/framework-multiple/astro.config.mjs index b5fe6a073..d447844e8 100644 --- a/examples/framework-multiple/astro.config.mjs +++ b/examples/framework-multiple/astro.config.mjs @@ -9,5 +9,5 @@ // @ts-check export default /** @type {import('astro').AstroUserConfig} */ ({ // 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' ], }); diff --git a/examples/framework-multiple/package.json b/examples/framework-multiple/package.json index 306dde43c..47d39ab82 100644 --- a/examples/framework-multiple/package.json +++ b/examples/framework-multiple/package.json @@ -9,7 +9,8 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^0.20.3" + "astro": "^0.20.3", + "@astrojs/renderer-solid": "^0.1.0" }, "snowpack": { "workspaceRoot": "../.." diff --git a/examples/minimal/astro.config.mjs b/examples/minimal/astro.config.mjs index b6397b312..94846abde 100644 --- a/examples/minimal/astro.config.mjs +++ b/examples/minimal/astro.config.mjs @@ -8,6 +8,6 @@ // @ts-check 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: [], }); diff --git a/examples/snowpack/astro.config.mjs b/examples/snowpack/astro.config.mjs index b829c204f..ec76a97c8 100644 --- a/examples/snowpack/astro.config.mjs +++ b/examples/snowpack/astro.config.mjs @@ -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: '.', pages: './src/pages', dist: './dist', public: './public', + // Set "renderers" to "[]" to disable all default, builtin component support. renderers: [ '@astrojs/renderer-vue', '@astrojs/renderer-svelte', '@astrojs/renderer-preact', ], -}; +}); + diff --git a/examples/starter/astro.config.mjs b/examples/starter/astro.config.mjs index dc8566d60..dc1697323 100644 --- a/examples/starter/astro.config.mjs +++ b/examples/starter/astro.config.mjs @@ -7,8 +7,7 @@ // You can disable this by removing "@ts-check" and `@type` comments below. // @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: [], +}); diff --git a/examples/with-markdown/astro.config.mjs b/examples/with-markdown/astro.config.mjs new file mode 100644 index 000000000..dc1697323 --- /dev/null +++ b/examples/with-markdown/astro.config.mjs @@ -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: [], +});