-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: add support for nuxt 3/nuxt bridge (#94)
* refactor: use @nuxt/kit * feat: support `vue-meta` and `@vueuse/head` * feat: use nitro publicAssets * chore: update lock files * fix: add semicolon * chore: use yarn * chore: add playground * fix: parse fonts on head * test: update using `@nuxt/test-utils` * test: don't rely on nuxt context to get rootDir * chore: run vitest only once * chore: upgrade nuxt to rc6 * test: add package.json stubs for windows nuxt/module-builder#22 * test: simplify Co-authored-by: Daniel Roe <[email protected]>
- Loading branch information
1 parent
0e2e2f5
commit fbe5d77
Showing
29 changed files
with
4,223 additions
and
9,416 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
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 |
---|---|---|
|
@@ -9,4 +9,5 @@ coverage | |
dist | ||
sw.* | ||
.env | ||
.output | ||
test/fixture/download/assets |
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.
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,43 +1,49 @@ | ||
{ | ||
"name": "@nuxtjs/google-fonts", | ||
"version": "2.0.0", | ||
"description": "Google Fonts module for NuxtJS", | ||
"description": "Google Fonts module for Nuxt", | ||
"repository": "nuxt-community/google-fonts", | ||
"license": "MIT", | ||
"contributors": [ | ||
"Ricardo Gobbo de Souza <[email protected]>" | ||
], | ||
"main": "./dist/module.js", | ||
"types": "./dist/module.d.ts", | ||
"type": "module", | ||
"sideEffects": false, | ||
"exports": { | ||
".": { | ||
"require": "./dist/module.cjs", | ||
"import": "./dist/module.mjs" | ||
} | ||
}, | ||
"main": "./dist/module.cjs", | ||
"types": "./dist/types.d.ts", | ||
"files": [ | ||
"dist" | ||
], | ||
"scripts": { | ||
"build": "siroc build", | ||
"prepublishOnly": "yarn build", | ||
"dev": "nuxt dev test/fixture/basic", | ||
"lint": "eslint --ext .js,.ts,.vue .", | ||
"release": "yarn test && yarn build && standard-version && git push --follow-tags && npm publish", | ||
"test": "yarn lint && yarn jest" | ||
"build": "nuxt-module-build", | ||
"dev:prepare": "nuxt-module-build --stub && nuxi prepare playground", | ||
"dev": "nuxt dev playground", | ||
"lint": "eslint --ext .js,.ts,.vue", | ||
"prepack": "yarn build", | ||
"release": "yarn test && standard-version && git push --follow-tags && npm publish", | ||
"test": "yarn lint && nuxi test --coverage" | ||
}, | ||
"dependencies": { | ||
"consola": "^2.15.3", | ||
"defu": "^6.0.0", | ||
"google-fonts-helper": "^2.0.1" | ||
"@nuxt/kit": "^3.0.0-rc.6", | ||
"google-fonts-helper": "^3.1.0", | ||
"pathe": "^0.3.2" | ||
}, | ||
"devDependencies": { | ||
"@babel/preset-typescript": "latest", | ||
"@nuxt/test-utils": "latest", | ||
"@nuxt/types": "latest", | ||
"@nuxt/module-builder": "latest", | ||
"@nuxt/test-utils": "^3.0.0-rc.6", | ||
"@nuxtjs/eslint-config-typescript": "latest", | ||
"@types/jest": "latest", | ||
"@types/node": "latest", | ||
"c8": "latest", | ||
"del": "latest", | ||
"eslint": "latest", | ||
"jest": "latest", | ||
"nuxt": "latest", | ||
"siroc": "latest", | ||
"standard-version": "latest" | ||
"nuxt": "^3.0.0-rc.6", | ||
"standard-version": "latest", | ||
"vitest": "latest" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
|
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,12 @@ | ||
|
||
<template> | ||
<div> | ||
<h1>Google Fonts</h1> | ||
<div style="font-family: 'Roboto';"> | ||
Roboto | ||
</div> | ||
<div style="font-family: 'Mulish';"> | ||
Mulish | ||
</div> | ||
</div> | ||
</template> |
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,14 @@ | ||
import { defineNuxtConfig } from 'nuxt' | ||
import GoogleFontsModule from '..' | ||
|
||
export default defineNuxtConfig({ | ||
modules: [ | ||
GoogleFontsModule | ||
], | ||
googleFonts: { | ||
families: { | ||
Roboto: true, | ||
Mulish: true | ||
} | ||
} | ||
}) |
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,3 @@ | ||
{ | ||
"name": "@nuxtjs/google-fonts-playground" | ||
} |
Oops, something went wrong.