feat: polir delight editorial no site público (MAN-139) #6

Open
manoel-freitas wants to merge 4 commits from feat/man-139-public-delight-polish into main
4 changed files with 19 additions and 3 deletions
Showing only changes of commit 8965a7c2fd - Show all commits

11
package-lock.json generated
View File

@@ -5,6 +5,7 @@
"packages": {
"": {
"devDependencies": {
"@fontsource/eb-garamond": "^5.2.7",
"@tailwindcss/vite": "^4.0.0",
"concurrently": "^9.0.1",
"daisyui": "^5.7.16",
@@ -49,6 +50,16 @@
"tslib": "^2.4.0"
}
},
"node_modules/@fontsource/eb-garamond": {
"version": "5.3.0",
"resolved": "https://registry.npmjs.org/@fontsource/eb-garamond/-/eb-garamond-5.3.0.tgz",
"integrity": "sha512-VplwHpB8FLuzl+4G5LDci1b3Z4SghiuXH8XEgaxjnOb5aue5mEt1njmDKeO6iyLeGa73LffU7PC7hzncLRx0ZA==",
"dev": true,
"license": "OFL-1.1",
"funding": {
"url": "https://github.com/sponsors/ayuhito"
}
},
"node_modules/@jridgewell/gen-mapping": {
"version": "0.3.13",
"resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz",

View File

@@ -8,6 +8,7 @@
"prepare": "husky"
},
"devDependencies": {
"@fontsource/eb-garamond": "^5.2.7",
"@tailwindcss/vite": "^4.0.0",
"concurrently": "^9.0.1",
"daisyui": "^5.7.16",

View File

@@ -72,7 +72,9 @@ class HeritageEditorialTokensTest extends TestCase
{
$vite = (string) file_get_contents(base_path('vite.config.js'));
$this->assertStringContainsString("bunny('EB Garamond'", $vite);
$this->assertStringContainsString("fontsource('EB Garamond'", $vite);
$this->assertStringNotContainsString("bunny(", $vite);
$this->assertStringNotContainsString('google(', $vite);
$this->assertStringNotContainsString('Instrument Sans', $vite);
}

View File

@@ -1,6 +1,6 @@
import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';
import { bunny } from 'laravel-vite-plugin/fonts';
import { fontsource } from 'laravel-vite-plugin/fonts';
import tailwindcss from '@tailwindcss/vite';
/**
@@ -76,7 +76,9 @@ export default defineConfig({
],
refresh: true,
fonts: [
bunny('EB Garamond', {
// fontsource reads node_modules so `vite build` stays offline.
// bunny() timed out on fonts.bunny.net in CI (run 31, job feature).
fontsource('EB Garamond', {
weights: [400, 500, 600],
}),
],