Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added initial implementation of nuxt-pdf #1

Merged
merged 8 commits into from
Jan 31, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added missing npm scripts
  • Loading branch information
zoey-kaiser committed Jan 30, 2023
commit a162e830a705fb142ec6b87647f344e8d8739b21
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
dist
node_modules
docs
1 change: 1 addition & 0 deletions docs/app.config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-ignore
export default defineAppConfig({
docus: {
title: 'My Docs'
Expand Down
7 changes: 0 additions & 7 deletions docs/tokens.config.ts

This file was deleted.

7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@
"prepack": "nuxt-module-build",
"dev": "nuxi dev playground",
"dev:build": "nuxi build playground",
"dev:prepare": "nuxt-module-build --stub && nuxi prepare playground"
"dev:prepare": "nuxt-module-build --stub && nuxi prepare playground",
"lint": "eslint . --max-warnings=0",
"types": "tsc --noEmit",
"build:module": "nuxi build",
"build:playground": "nuxi build playground",
"start:playground": "node playground/.output/server/index.mjs"
},
"dependencies": {
"@nuxt/kit": "^3.0.0",
Expand Down
5 changes: 1 addition & 4 deletions playground/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,5 @@ import nuxtPdf from '..'
export default defineNuxtConfig({
modules: [
nuxtPdf
],
nuxtPdf: {
addPlugin: true
}
]
})
6 changes: 1 addition & 5 deletions src/module.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
import { fileURLToPath } from 'url'
import { defineNuxtModule, addPlugin, createResolver } from '@nuxt/kit'

export interface ModuleOptions {
addPlugin: boolean | number
}

export default defineNuxtModule<ModuleOptions>({
export default defineNuxtModule({
meta: {
name: 'nuxt-pdf',
configKey: 'nuxtPdf'
Expand Down