mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
docs: add Bun install command
This commit is contained in:
parent
61eeb37a74
commit
5be3da2722
2 changed files with 18 additions and 9 deletions
22
README.md
22
README.md
|
@ -28,17 +28,18 @@ Other forms of documentation are auto-generated:
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
Install `carbon-components-svelte` as a development dependency.
|
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
# Yarn
|
|
||||||
yarn add carbon-components-svelte
|
|
||||||
|
|
||||||
# npm
|
# npm
|
||||||
npm i carbon-components-svelte
|
npm i carbon-components-svelte
|
||||||
|
|
||||||
# pnpm
|
# pnpm
|
||||||
pnpm i carbon-components-svelte
|
pnpm i carbon-components-svelte
|
||||||
|
|
||||||
|
# Yarn
|
||||||
|
yarn add carbon-components-svelte
|
||||||
|
|
||||||
|
# Bun
|
||||||
|
bun add carbon-components-svelte
|
||||||
```
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
@ -146,17 +147,20 @@ Import components from `carbon-components-svelte` in the `script` tag of your Sv
|
||||||
[carbon-preprocess-svelte](https://github.com/carbon-design-system/carbon-preprocess-svelte) is a collection of Svelte preprocessors for Carbon.
|
[carbon-preprocess-svelte](https://github.com/carbon-design-system/carbon-preprocess-svelte) is a collection of Svelte preprocessors for Carbon.
|
||||||
|
|
||||||
> [!NOTE]
|
> [!NOTE]
|
||||||
> Using `carbon-preprocess-svelte` is optional and not a prerequisite for this library.
|
> Using `carbon-preprocess-svelte` is optional and not a prerequisite for this library. It should be installed as a development dependency.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
# Yarn
|
|
||||||
yarn add -D carbon-preprocess-svelte
|
|
||||||
|
|
||||||
# npm
|
# npm
|
||||||
npm i -D carbon-preprocess-svelte
|
npm i -D carbon-preprocess-svelte
|
||||||
|
|
||||||
# pnpm
|
# pnpm
|
||||||
pnpm i -D carbon-preprocess-svelte
|
pnpm i -D carbon-preprocess-svelte
|
||||||
|
|
||||||
|
# Yarn
|
||||||
|
yarn add -D carbon-preprocess-svelte
|
||||||
|
|
||||||
|
# Bun
|
||||||
|
bun add -D carbon-preprocess-svelte
|
||||||
```
|
```
|
||||||
|
|
||||||
### `optimizeImports`
|
### `optimizeImports`
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
const installNpm = "npm i carbon-components-svelte";
|
const installNpm = "npm i carbon-components-svelte";
|
||||||
const installPnpm = "pnpm i carbon-components-svelte";
|
const installPnpm = "pnpm i carbon-components-svelte";
|
||||||
const installYarn = "yarn add carbon-components-svelte";
|
const installYarn = "yarn add carbon-components-svelte";
|
||||||
|
const installBun = "bun add carbon-components-svelte";
|
||||||
const themes = {
|
const themes = {
|
||||||
white: "White",
|
white: "White",
|
||||||
g10: "Gray 10",
|
g10: "Gray 10",
|
||||||
|
@ -88,6 +89,7 @@
|
||||||
<Tab label="NPM" />
|
<Tab label="NPM" />
|
||||||
<Tab label="pnpm" />
|
<Tab label="pnpm" />
|
||||||
<Tab label="Yarn" />
|
<Tab label="Yarn" />
|
||||||
|
<Tab label="Bun" />
|
||||||
<div slot="content" style="margin: 1rem -1rem">
|
<div slot="content" style="margin: 1rem -1rem">
|
||||||
<TabContent>
|
<TabContent>
|
||||||
<CodeSnippet code="{installNpm}" />
|
<CodeSnippet code="{installNpm}" />
|
||||||
|
@ -98,6 +100,9 @@
|
||||||
<TabContent>
|
<TabContent>
|
||||||
<CodeSnippet code="{installYarn}" />
|
<CodeSnippet code="{installYarn}" />
|
||||||
</TabContent>
|
</TabContent>
|
||||||
|
<TabContent>
|
||||||
|
<CodeSnippet code="{installBun}" />
|
||||||
|
</TabContent>
|
||||||
</div>
|
</div>
|
||||||
</Tabs>
|
</Tabs>
|
||||||
</Column>
|
</Column>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue