Skip to content

Commit 6c5adbc

Browse files
committed
chore: use nuxt module playground
1 parent 93d54ad commit 6c5adbc

File tree

16 files changed

+81
-264
lines changed

16 files changed

+81
-264
lines changed

nuxt-playground/.gitignore

Lines changed: 0 additions & 8 deletions
This file was deleted.

nuxt-playground/README.md

Lines changed: 0 additions & 42 deletions
This file was deleted.

nuxt-playground/nuxt.config.ts

Lines changed: 0 additions & 10 deletions
This file was deleted.

nuxt-playground/package.json

Lines changed: 0 additions & 14 deletions
This file was deleted.

nuxt-playground/tsconfig.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

packages/nuxt/.eslintrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,18 @@
33
"@nuxtjs/eslint-config-typescript"
44
],
55
"rules": {
6+
// TS already checks this
7+
"no-use-before-define": "off",
68
"@typescript-eslint/no-unused-vars": [
79
"off"
10+
],
11+
"space-before-function-paren": [
12+
"error",
13+
"never"
14+
],
15+
"comma-dangle": [
16+
"error",
17+
"always-multiline"
818
]
919
}
1020
}

packages/nuxt/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,13 @@
3030
"@nuxt/kit": "^3.0.0-rc.12"
3131
},
3232
"devDependencies": {
33+
"@firebase/app-types": "^0.8.0",
3334
"@nuxt/module-builder": "^0.2.0",
3435
"@nuxt/schema": "^3.0.0-rc.12",
3536
"@nuxtjs/eslint-config-typescript": "^11.0.0",
3637
"eslint": "^8.26.0",
37-
"nuxt": "^3.0.0-rc.12"
38+
"firebase": "^9.12.1",
39+
"nuxt": "^3.0.0-rc.12",
40+
"vuefire": "workspace:*"
3841
}
3942
}

packages/nuxt/playground/app.vue

Lines changed: 0 additions & 8 deletions
This file was deleted.
Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
1+
import { fileURLToPath } from 'node:url'
12
import { defineNuxtConfig } from 'nuxt/config'
2-
import MyModule from '..'
3+
import VueFire from '..'
34

45
export default defineNuxtConfig({
5-
modules: [MyModule],
6-
myModule: {
7-
addPlugin: true,
6+
pageTransition: null,
7+
layoutTransition: null,
8+
alias: {
9+
vuefire: fileURLToPath(new URL('../src/index.ts', import.meta.url)),
10+
'nuxt-vuefire': fileURLToPath(
11+
new URL('../packages/nuxt/src/module.ts', import.meta.url)
12+
),
813
},
14+
modules: [VueFire],
915
})

0 commit comments

Comments
 (0)