Browse Source

feat: nuxt3 basic setup

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/2524/head
Pranav C 2 years ago
parent
commit
680dfc5309
  1. 8
      packages/nc-gui-v2/.gitignore
  2. 42
      packages/nc-gui-v2/README.md
  3. 5
      packages/nc-gui-v2/app.vue
  4. 9
      packages/nc-gui-v2/nuxt.config.ts
  5. 20881
      packages/nc-gui-v2/package-lock.json
  6. 14
      packages/nc-gui-v2/package.json
  7. 13
      packages/nc-gui-v2/pages/index.vue
  8. 8
      packages/nc-gui-v2/tailwind.config.js
  9. 4
      packages/nc-gui-v2/tsconfig.json

8
packages/nc-gui-v2/.gitignore vendored

@ -0,0 +1,8 @@
node_modules
*.log*
.nuxt
.nitro
.cache
.output
.env
dist

42
packages/nc-gui-v2/README.md

@ -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/guide/deploy/presets) for more information.

5
packages/nc-gui-v2/app.vue

@ -0,0 +1,5 @@
<template>
<div><!-- Markup shared across all pages, ex: NavBar -->
<NuxtPage />
</div>
</template>

9
packages/nc-gui-v2/nuxt.config.ts

@ -0,0 +1,9 @@
import {defineNuxtConfig} from 'nuxt'
// https://v3.nuxtjs.org/api/configuration/nuxt.config
export default defineNuxtConfig({
modules: ['@nuxtjs/tailwindcss'],
buildModules: [
'nuxt-vite'
]
})

20881
packages/nc-gui-v2/package-lock.json generated

File diff suppressed because it is too large Load Diff

14
packages/nc-gui-v2/package.json

@ -0,0 +1,14 @@
{
"private": true,
"scripts": {
"build": "nuxt build",
"dev": "nuxt dev",
"generate": "nuxt generate",
"preview": "nuxt preview"
},
"devDependencies": {
"@nuxtjs/tailwindcss": "^5.1.2",
"nuxt": "3.0.0-rc.3",
"nuxt-vite": "^0.3.5"
}
}

13
packages/nc-gui-v2/pages/index.vue

@ -0,0 +1,13 @@
<template>
<span>test</span>
</template>
<script>
export default {
name: "index"
}
</script>
<style scoped>
</style>

8
packages/nc-gui-v2/tailwind.config.js

@ -0,0 +1,8 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [],
theme: {
extend: {},
},
plugins: [],
}

4
packages/nc-gui-v2/tsconfig.json

@ -0,0 +1,4 @@
{
// https://v3.nuxtjs.org/concepts/typescript
"extends": "./.nuxt/tsconfig.json"
}
Loading…
Cancel
Save