Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions examples/vite/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

# misc
.generated
28 changes: 28 additions & 0 deletions examples/vite/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# `@krutoo/showcase` + Vite

This template provides a minimal setup to get `@krutoo/showcase` working in Vite.

## Usage

First of all you need to build `@krutoo/showcase` in **repo root**:

```shell
# install deps
npm i

# build && pack
npm run build && npm pack
```

Now in this example folder you need to run:

```shell
# install deps
npm i

# install local version of `@krutoo/showcase`
npm run preparing

# run locally
npm run dev
```
13 changes: 13 additions & 0 deletions examples/vite/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>showcase-example-vite</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/showcase.tsx"></script>
</body>
</html>
Loading