Skip to content

Commit

Permalink
Add sample Vuejs (Nuxt) project for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmcroft committed Sep 27, 2023
1 parent 731559d commit 36e16fe
Show file tree
Hide file tree
Showing 12 changed files with 12,209 additions and 0 deletions.
24 changes: 24 additions & 0 deletions samples/vuejs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Nuxt dev/build outputs
.output
.data
.nuxt
.nitro
.cache
dist

# Node dependencies
node_modules

# Logs
logs
*.log

# Misc
.DS_Store
.fleet
.idea

# Local env files
.env
.env.*
!.env.example
2 changes: 2 additions & 0 deletions samples/vuejs/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
shamefully-hoist=true
strict-peer-dependencies=false
63 changes: 63 additions & 0 deletions samples/vuejs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# Nuxt 3 Minimal Starter

Look at the [Nuxt 3 documentation](https://nuxt.com/docs/getting-started/introduction) to learn more.

## Setup

Make sure to install the dependencies:

```bash
# npm
npm install

# pnpm
pnpm install

# yarn
yarn install
```

## Development Server

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

```bash
# npm
npm run dev

# pnpm
pnpm run dev

# yarn
yarn dev
```

## Production

Build the application for production:

```bash
# npm
npm run build

# pnpm
pnpm run build

# yarn
yarn build
```

Locally preview production build:

```bash
# npm
npm run preview

# pnpm
pnpm run preview

# yarn
yarn preview
```

Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information.
5 changes: 5 additions & 0 deletions samples/vuejs/app.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<template>
<div>
<NuxtPage />
</div>
</template>
11 changes: 11 additions & 0 deletions samples/vuejs/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
css: [
"primeicons/primeicons.css",
"primeflex/primeflex.css",
"primevue/resources/themes/lara-light-blue/theme.css"
],
build: {
transpile: ["primevue"]
},
})
Loading

0 comments on commit 36e16fe

Please sign in to comment.