mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 18:31:06 +00:00
31 lines
561 B
Markdown
31 lines
561 B
Markdown
# svite
|
|
|
|
> Example set-up using [Sapper](https://github.com/sveltejs/sapper).
|
|
|
|
## Getting started
|
|
|
|
Scaffold a new project using [degit](https://github.com/Rich-Harris/degit):
|
|
|
|
```sh
|
|
npx degit ibm/carbon-components-svelte#sapper svelte-app
|
|
cd svelte-app
|
|
yarn install
|
|
```
|
|
|
|
## Available scripts
|
|
|
|
### `yarn dev`
|
|
|
|
Runs the app in development mode.
|
|
|
|
### `yarn build`
|
|
|
|
Builds the app for production (SSR).
|
|
|
|
### `yarn export`
|
|
|
|
Builds the app for production and statically exports the app.
|
|
|
|
### `yarn start`
|
|
|
|
Runs the app in production (`yarn build` must be run first).
|