docs: update guidance on examples, usage

This commit is contained in:
Eric Liu 2020-09-13 13:39:36 -07:00
commit 18f0ea4b35
7 changed files with 151 additions and 15 deletions

View file

@ -2,6 +2,16 @@
> Example Rollup/TypeScript set-up scaffolded from the official [Svelte template](https://github.com/sveltejs/template).
## Getting started
Scaffold a new project using [degit](https://github.com/Rich-Harris/degit):
```sh
npx degit ibm/carbon-components-svelte#rollup-typescript svelte-app
cd svelte-app
yarn install
```
## Available scripts
### `yarn dev`

View file

@ -2,6 +2,16 @@
> Example set-up using [Rollup](https://github.com/rollup/rollup).
## Getting started
Scaffold a new project using [degit](https://github.com/Rich-Harris/degit):
```sh
npx degit ibm/carbon-components-svelte#rollup svelte-app
cd svelte-app
yarn install
```
## Available scripts
### `yarn dev`

View file

@ -2,6 +2,16 @@
> Example set-up using [Routify](https://github.com/roxiness/routify).
## Getting started
Scaffold a new project using [degit](https://github.com/Rich-Harris/degit):
```sh
npx degit ibm/carbon-components-svelte#routify svelte-app
cd svelte-app
yarn install
```
## Available scripts
### `yarn dev`

View file

@ -2,6 +2,16 @@
> 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`

View file

@ -2,6 +2,16 @@
> Example set-up using [svite](https://github.com/dominikg/svite).
## Getting started
Scaffold a new project using [degit](https://github.com/Rich-Harris/degit):
```sh
npx degit ibm/carbon-components-svelte#svite svelte-app
cd svelte-app
yarn install
```
## Available scripts
### `yarn dev`

View file

@ -2,6 +2,16 @@
> Example set-up using [webpack](https://github.com/webpack/webpack).
## Getting started
Scaffold a new project using [degit](https://github.com/Rich-Harris/degit):
```sh
npx degit ibm/carbon-components-svelte#webpack svelte-app
cd svelte-app
yarn install
```
## Available scripts
### `yarn dev`