Skip to content

Commit

Permalink
chore: add playground
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Jun 19, 2023
1 parent d918d5e commit 0011a96
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"scripts": {
"build": "unbuild",
"build:stub": "unbuild --stub",
"dev": "nuxi-ng dev ./playground",
"nuxi-ng": "JITI_ESM_RESOLVE=1 jiti ./src/cli-run.ts",
"dev": "pnpm run nuxi-ng dev ./playground",
"lint": "eslint . && prettier --check src",
"lint:fix": "eslint --fix . && prettier --write src",
"prepack": "unbuild",
Expand Down
10 changes: 10 additions & 0 deletions playground/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
node_modules
*.log*
.nuxt
.nitro
.cache
.output
.env
dist

pnpm-lock.yaml
5 changes: 5 additions & 0 deletions playground/app.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<template>
<div>
Hi!
</div>
</template>
2 changes: 2 additions & 0 deletions playground/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({})
7 changes: 7 additions & 0 deletions playground/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "nuxt-cli-playground",
"private": true,
"version": "1.0.0",
"devDependencies": {
}
}
4 changes: 4 additions & 0 deletions playground/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
// https://nuxt.com/docs/guide/concepts/typescript
"extends": "./.nuxt/tsconfig.json"
}

0 comments on commit 0011a96

Please sign in to comment.