Skip to content

Commit

Permalink
Update nuxt 3 project
Browse files Browse the repository at this point in the history
  • Loading branch information
janniks committed Mar 26, 2023
1 parent 899835b commit a668ed5
Show file tree
Hide file tree
Showing 21 changed files with 3,051 additions and 4,345 deletions.
2 changes: 0 additions & 2 deletions dev/serve.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ import { NotionRenderer } from "@/entry";

const app = createApp(App);

console.log(app);

app.use(Vue3Katex);
app.component("NotionRenderer", NotionRenderer);

Expand Down
95 changes: 6 additions & 89 deletions example/.gitignore
Original file line number Diff line number Diff line change
@@ -1,92 +1,9 @@
# Created by .ignore support plugin (hsz.mobi)
### Node template
# Logs
/logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

# parcel-bundler cache (https://parceljs.org/)
.cache

# next.js build output
.next

# nuxt.js build output
node_modules
*.log*
.nuxt

# Nuxt generate
.nitro
.cache
.output
.env
dist

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless

# IDE / Editor
.idea

# Service worker
sw.*

# macOS
.DS_Store

# Vim swap files
*.swp

.output
2 changes: 2 additions & 0 deletions example/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
shamefully-hoist=true
strict-peer-dependencies=false
42 changes: 42 additions & 0 deletions example/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://nuxt.com/docs/getting-started/introduction) to learn more.

## Setup

Make sure to install the dependencies:

```bash
# yarn
yarn install

# npm
npm install

# pnpm
pnpm install
```

## 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
```

Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information.
4 changes: 3 additions & 1 deletion example/app.vue
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<template>
<NuxtPage />
<NuxtLayout>
<NuxtPage />
</NuxtLayout>
</template>
4 changes: 1 addition & 3 deletions example/layouts/default.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<template>
<div>
<Nuxt />
</div>
<slot />
</template>

<style>
Expand Down
4 changes: 3 additions & 1 deletion example/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// https://v3.nuxtjs.org/api/configuration/nuxt.config
export default defineNuxtConfig({
ssr: false,
build: {
transpile: ["vue-notion"],
},
telemetry: false,
// plugins: [{ src: "vue-notion/nuxt/plugin.js", mode: "client" }],
});
Loading

0 comments on commit a668ed5

Please sign in to comment.