Skip to content

Commit

Permalink
feat: add local and google providers
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Feb 19, 2024
1 parent 180e442 commit ade031f
Show file tree
Hide file tree
Showing 14 changed files with 1,333 additions and 102 deletions.
1 change: 1 addition & 0 deletions .nuxtrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
typescript.tsConfig.compilerOptions.noUncheckedIndexedAccess=true
15 changes: 12 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
"dist"
],
"scripts": {
"prepack": "nuxt-module-build",
"prepack": "nuxt-module-build build",
"dev": "nuxi dev playground",
"dev:build": "nuxi build playground",
"dev:prepare": "nuxt-module-build --stub && nuxt-module-build prepare && nuxi prepare playground",
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
"release": "npm run lint && npm run test && npm run prepack && changelogen --release && npm publish && git push --follow-tags",
"lint": "eslint .",
"test": "vitest run",
Expand All @@ -30,17 +30,26 @@
},
"dependencies": {
"@nuxt/kit": "^3.10.2",
"fontaine": "^0.4.1"
"css-tree": "^2.3.1",
"fontaine": "^0.4.1",
"globby": "^14.0.1",
"magic-string": "^0.30.7",
"ofetch": "^1.3.3",
"pathe": "^1.1.2",
"ufo": "^1.4.0",
"unplugin": "^1.7.1"
},
"devDependencies": {
"@nuxt/devtools": "latest",
"@nuxt/eslint-config": "^0.2.0",
"@nuxt/module-builder": "^0.5.5",
"@nuxt/schema": "^3.10.2",
"@nuxt/test-utils": "^3.11.0",
"@types/css-tree": "^2.3.6",
"@vitest/coverage-v8": "^1.3.0",
"changelogen": "^0.5.5",
"eslint": "^8.56.0",
"nuxt": "^3.10.2",
"typescript": "^5.3.3",
"vitest": "^1.3.0",
"vue-tsc": "^1.8.27"
Expand Down
10 changes: 9 additions & 1 deletion playground/app.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
<template>
<div>
Nuxt module playground!
<span class="font-custom">Nuxt</span> module playground!
</div>
</template>

<style scoped>
@import '~/assets/test.css';
div {
font-family: 'Poppins', 'Custom Font', Raleway, sans-serif;
}
</style>
3 changes: 3 additions & 0 deletions playground/assets/test.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
:root {
font-family: 'Montserrat', sans-serif;
}
4 changes: 1 addition & 3 deletions playground/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
export default defineNuxtConfig({
devtools: { enabled: true },
modules: ['@nuxt/fonts'],
fonts: {},
modules: ['@nuxt/fonts', '@nuxtjs/tailwindcss'],
})
2 changes: 2 additions & 0 deletions playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
},
"dependencies": {
"@nuxt/fonts": "latest",
"@nuxtjs/tailwindcss": "latest",
"nuxt": "latest",
"tailwindcss": "^3.4.1",
"vue": "latest"
}
}
Binary file added playground/public/custom-font.woff2
Binary file not shown.
11 changes: 11 additions & 0 deletions playground/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/** @type {import('tailwindcss').Config} */
export default {
theme: {
extend: {
fontFamily: {
custom: ['Anton']
}
},
},
}

Loading

0 comments on commit ade031f

Please sign in to comment.