Skip to content

Commit

Permalink
🎉 initial: created nuxt3 example with yarn v3
Browse files Browse the repository at this point in the history
  • Loading branch information
torish14 committed Apr 20, 2022
0 parents commit 8cf4065
Show file tree
Hide file tree
Showing 8 changed files with 6,563 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
node_modules
*.log*
.nuxt
.nitro
.cache
.output
.env
.yarn/
!.yarn/release/*
2 changes: 2 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
yarnPath: .yarn/release/yarn-3.0.0.cjs
nodeLinker: node-modules
42 changes: 42 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Nuxt 3 Minimal Starter

Look at the [nuxt 3 documentation](https://v3.nuxtjs.org) to learn more.

## Setup

Make sure to install the dependencies:

```bash
# yarn
yarn install

# npm
npm install

# pnpm
pnpm install --shamefully-hoist
```

## Development Server

Start the development server on http://localhost:3000

```bash
npm run dev
```

## Production

Build the application for production:

```bash
npm run build
```

Locally preview production build:

```bash
npm run preview
```

Checkout the [deployment documentation](https://v3.nuxtjs.org/docs/deployment) for more information.
18 changes: 18 additions & 0 deletions app.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<script setup>
const version = 3
</script>

<template>
<div class="hello-world">
Hello Nuxt {{ version }}!
</div>
</template>

<style scoped>
.hello-world {
font-family: Arial, Helvetica, sans-serif;
font-size: 3rem;
color: #00dc82;
padding: 10rem;
}
</style>
6 changes: 6 additions & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { defineNuxtConfig } from 'nuxt'

// https://v3.nuxtjs.org/api/configuration/nuxt.config
export default defineNuxtConfig({

})
12 changes: 12 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"private": true,
"scripts": {
"build": "nuxi build",
"dev": "nuxi dev",
"generate": "nuxi generate",
"preview": "nuxi preview"
},
"devDependencies": {
"nuxt": "3.0.0-rc.0"
}
}
4 changes: 4 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
// https://v3.nuxtjs.org/concepts/typescript
"extends": "./.nuxt/tsconfig.json"
}
Loading

0 comments on commit 8cf4065

Please sign in to comment.