Skip to content

Commit

Permalink
chore: convert playground to minimal starter
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Mar 31, 2022
1 parent bbfb798 commit 281784d
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 51 deletions.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
"lint:docs": "./node_modules/.bin/markdownlint ./",
"nuxi": "./node_modules/.bin/nuxi",
"nuxt": "./node_modules/.bin/nuxi",
"play": "yarn run nuxi dev playground",
"play": "echo use yarn dev && exit 1",
"dev": "yarn run nuxi dev playground",
"dev:build": "yarn run nuxi build playground",
"release": "yarn && yarn lint && FORCE_COLOR=1 lerna publish -m \"chore: release\" && yarn stub",
"stub": "lerna run prepack -- --stub",
"test:fixtures": "yarn nuxi prepare test/fixtures/basic && JITI_ESM_RESOLVE=1 vitest --dir test",
Expand Down
30 changes: 6 additions & 24 deletions playground/app.vue
Original file line number Diff line number Diff line change
@@ -1,30 +1,12 @@
<script setup lang="ts">
</script>

<template>
<div class="app">
<img src="~/assets/logo.svg" class="h-20 mb-4">
<h1 class="greeting">
{{ hello }}, <br>Nuxt 3!
</h1>
<!-- Edit this file to play around with Nuxt but never commit changes! -->
<div>
Nuxt 3 Playground
</div>
</template>

<script setup>
const greetings = [
'Hello',
'Hi',
'Salut',
'こんにちは',
'你好'
]
const hello = useState('hello', () => greetings[Math.random() * greetings.length | 0])
</script>

<style scoped>
.app {
font-family: Avenir, Helvetica, Arial, sans-serif;
padding: 1rem 1.5rem;
}
.greeting {
font-size: 4em;
font-weight: 400;
}
</style>
18 changes: 0 additions & 18 deletions playground/assets/logo.svg

This file was deleted.

6 changes: 0 additions & 6 deletions playground/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
import { defineNuxtConfig } from 'nuxt3'

export default defineNuxtConfig({
modules: [
'@nuxt/ui'
],
experimental: {
viteNode: true
}
})
1 change: 0 additions & 1 deletion playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"name": "nuxt-playground",
"private": true,
"devDependencies": {
"@nuxt/ui": "npm:@nuxt/ui-edge@latest",
"nuxt3": "latest"
},
"scripts": {
Expand Down
1 change: 0 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -15460,7 +15460,6 @@ __metadata:
version: 0.0.0-use.local
resolution: "nuxt-playground@workspace:playground"
dependencies:
"@nuxt/ui": "npm:@nuxt/ui-edge@latest"
nuxt3: latest
languageName: unknown
linkType: soft
Expand Down

0 comments on commit 281784d

Please sign in to comment.