Skip to content

Commit

Permalink
chore: setup playground
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasdiez committed Oct 30, 2022
1 parent 3a8fed2 commit 75188bf
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 11 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -18,6 +18,7 @@ Then you can start developing your unplugin 🔥

To test your plugin, run: `pnpm run dev`
To release a new version, run: `pnpm run release`
To run playground, use `pnpm play`.

## Install

Expand Down
7 changes: 7 additions & 0 deletions playground/Test.stories.vue
@@ -0,0 +1,7 @@
<template>
<Stories>
<Story title="Primary">
<span>test</span>
</Story>
</Stories>
</template>
25 changes: 15 additions & 10 deletions playground/index.html
@@ -1,13 +1,18 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<div id="app"></div>
<a href="/__inspect/module?id=./main.ts&index=2" target="_blank" style="text-decoration: none; margin-top:10px; display: block;">visit /__inspect/ to inspect the intermediate state</a>
<script type="module" src="./main.ts"></script>
</body>
<head>
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
</head>
<body>
<div id="app"></div>
<a
href="/__inspect/module?id=./Test.stories.vue&index=2"
target="_blank"
style="text-decoration: none; margin-top: 10px; display: block"
>visit /__inspect/ to inspect the intermediate state</a
>
<script type="module" src="./Test.stories.vue"></script>
</body>
</html>
1 change: 0 additions & 1 deletion playground/main.ts

This file was deleted.

2 changes: 2 additions & 0 deletions playground/vite.config.ts
@@ -1,10 +1,12 @@
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import Inspect from 'vite-plugin-inspect'
import Unplugin from '../src/vite'

export default defineConfig({
plugins: [
Inspect(),
Unplugin(),
vue(),
],
})

0 comments on commit 75188bf

Please sign in to comment.