-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #41 from zernonia/use-unbuild
chore: update bundler to unbuild
- Loading branch information
Showing
25 changed files
with
1,106 additions
and
1,900 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { resolve } from "path"; | ||
import { defineBuildConfig } from "unbuild"; | ||
|
||
export default defineBuildConfig({ | ||
entries: [ | ||
{ builder: "mkdist", input: "./src/" }, | ||
{ builder: "mkdist", input: "./src/", format: "cjs", ext: "js" }, | ||
], | ||
|
||
alias: { | ||
"@": resolve(__dirname, "./src"), | ||
}, | ||
|
||
declaration: true, | ||
clean: true, | ||
}); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
declare module "*.vue" { | ||
import { DefineComponent } from "vue"; | ||
const component: DefineComponent<{}, {}, any>; | ||
export default component; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import VueNotion from "vue3-notion" | ||
import { getPageBlocks, getPageTable } from "vue3-notion" | ||
import { defineNuxtPlugin } from "#app" | ||
import VueNotion from "vue3-notion"; | ||
import { getPageBlocks, getPageTable } from "vue3-notion"; | ||
import { defineNuxtPlugin } from "#app"; | ||
|
||
export default defineNuxtPlugin(({ vueApp }) => { | ||
const notion = { getPageBlocks, getPageTable } | ||
vueApp.use(VueNotion) | ||
const notion = { getPageBlocks, getPageTable }; | ||
vueApp.use(VueNotion); | ||
return { | ||
provide: { | ||
notion, | ||
}, | ||
} | ||
}) | ||
}; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<template> | ||
<div id="app"> | ||
<router-view :key="$route.params.id?.toString()"></router-view> | ||
</div> | ||
</template> |
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { createApp } from "vue"; | ||
import App from "./App.vue"; | ||
import { router } from "./router"; | ||
import "@/style.css"; | ||
|
||
createApp(App).use(router).mount("#app"); |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"extends": "../tsconfig.json", | ||
"compilerOptions": { | ||
"types": ["vite/client"] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import path from "path"; | ||
import { defineConfig } from "vite"; | ||
import vue from "@vitejs/plugin-vue"; | ||
|
||
// https://vitejs.dev/config/ | ||
export default defineConfig({ | ||
plugins: [vue()], | ||
resolve: { | ||
alias: { | ||
"@": path.resolve(__dirname, "../src"), | ||
}, | ||
}, | ||
}); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
import { App } from "vue" | ||
import * as components from "@/components/index" | ||
import { App } from "vue"; | ||
import * as components from "./components"; | ||
|
||
// Default export is library as a whole, registered via Vue.use() | ||
export default { | ||
install: (app: App) => { | ||
Object.entries(components).forEach(([componentName, component]) => { | ||
app.component(componentName, component) | ||
}) | ||
app.component(componentName, component); | ||
}); | ||
}, | ||
} | ||
}; | ||
|
||
// To allow individual component use, export components | ||
// each can be registered via Vue.component() | ||
export * from "@/components/index" | ||
export * from "./components"; | ||
|
||
// export additional js methods | ||
export * from "@/lib/api" | ||
export * from "./lib/api"; | ||
|
||
// export types | ||
export * from "@/lib/types" | ||
export * from "./lib/types"; | ||
|
||
// export composables | ||
export * from "@/lib/composables" | ||
export * from "./lib/composables"; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
4879d8a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
vue3-notion-preview – ./
vue3-notion-preview.vercel.app
vue3-notion-preview-zernonia.vercel.app
vue3-notion-preview-git-master-zernonia.vercel.app
4879d8a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
vue3-notion – ./demo/nuxt
vue3-notion.vercel.app
vue3-notion-git-master-zernonia.vercel.app
vue3-notion-zernonia.vercel.app