summaryrefslogtreecommitdiff
path: root/examples/framework-svelte
diff options
context:
space:
mode:
authorGravatar Fred K. Schott <fkschott@gmail.com> 2021-09-16 08:06:22 -0700
committerGravatar GitHub <noreply@github.com> 2021-09-16 08:06:22 -0700
commitcb7a957f413a9af0651266769b5a6a4a9996aafa (patch)
tree98aa0dbd5d19c8cc7787bf79c54f4dc1264e4636 /examples/framework-svelte
parentc4634e5ea6f2c0e86216251831525497c9821daa (diff)
downloadastro-cb7a957f413a9af0651266769b5a6a4a9996aafa.tar.gz
astro-cb7a957f413a9af0651266769b5a6a4a9996aafa.tar.zst
astro-cb7a957f413a9af0651266769b5a6a4a9996aafa.zip
update examples for stackblitz (#1379)
Diffstat (limited to 'examples/framework-svelte')
-rw-r--r--examples/framework-svelte/.stackblitzrc6
-rw-r--r--examples/framework-svelte/README.md37
2 files changed, 10 insertions, 33 deletions
diff --git a/examples/framework-svelte/.stackblitzrc b/examples/framework-svelte/.stackblitzrc
new file mode 100644
index 000000000..43798ecff
--- /dev/null
+++ b/examples/framework-svelte/.stackblitzrc
@@ -0,0 +1,6 @@
+{
+ "startCommand": "npm start",
+ "env": {
+ "ENABLE_CJS_IMPORTS": true
+ }
+} \ No newline at end of file
diff --git a/examples/framework-svelte/README.md b/examples/framework-svelte/README.md
index deaf1da76..96352495a 100644
--- a/examples/framework-svelte/README.md
+++ b/examples/framework-svelte/README.md
@@ -1,38 +1,9 @@
-# Using Svelte with Astro
+# Astro + Svelte Example
-This example showcases Astro's built-in support for [Svelte](https://svelte.dev/).
-
-## Installation
-
-### Automatic
-
-Bootstrap your Astro project with this template!
-
-```shell
+```
npm init astro -- --template framework-svelte
```
-### Manual
-
-To use Svelte components in your Astro project:
-
-1. Install `@astrojs/renderer-svelte`
-
- ```shell
- npm i @astrojs/renderer-svelte
- ```
-
-2. Add `"@astrojs/renderer-svelte"` to your `renderers` in `astro.config.mjs`.
-
- ```js
- export default {
- renderers: [
- "@astrojs/renderer-svelte",
- // optionally, others...
- ]
- }
- ```
-
-## Usage
+[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/snowpackjs/astro/tree/latest/examples/framework-svelte)
-Write your Svelte components as `.svelte` files in your project.
+This example showcases Astro working with [Svelte](https://svelte.dev/).