From 89dc101ab25a5b6da4843c96f8468f137fabb85c Mon Sep 17 00:00:00 2001 From: Frederic Heem Date: Sat, 30 Nov 2024 18:43:32 -0300 Subject: [PATCH] deploy frontend mentor projects --- bausaurus/example/bausaurus-doc/package.json | 4 +--- examples/bento-grid/package.json | 7 +++++-- examples/bento-grid/vite.config.js | 2 ++ examples/blog-preview-card/package.json | 5 ++++- examples/blog-preview-card/vite.config.js | 2 ++ examples/calculator/package.json | 11 +++++++---- examples/calculator/vite.config.js | 2 ++ examples/contact-form/package.json | 5 ++++- examples/contact-form/vite.config.js | 2 ++ examples/faq-accordion/package.json | 5 ++++- examples/faq-accordion/vite.config.js | 2 ++ examples/interactive-rating-component/package.json | 5 ++++- examples/interactive-rating-component/vite.config.js | 2 ++ examples/ip-address-tracker/package.json | 5 ++++- examples/ip-address-tracker/vite.config.js | 2 ++ examples/mortgage-repayment-calculator/package.json | 5 ++++- examples/mortgage-repayment-calculator/vite.config.js | 4 ++++ examples/product-list-cart/package.json | 5 ++++- examples/product-list-cart/vite.config.js | 4 ++++ examples/product-preview-card/package.json | 5 ++++- examples/product-preview-card/vite.config.js | 4 ++++ examples/recipePage/package.json | 5 ++++- examples/recipePage/vite.config.js | 4 ++++ examples/result-summary-component/package.json | 5 ++++- examples/result-summary-component/vite.config.js | 4 ++++ examples/social-link-profile/package.json | 5 ++++- examples/social-link-profile/vite.config.js | 4 ++++ 27 files changed, 95 insertions(+), 20 deletions(-) diff --git a/bausaurus/example/bausaurus-doc/package.json b/bausaurus/example/bausaurus-doc/package.json index a4222961..0db350d0 100644 --- a/bausaurus/example/bausaurus-doc/package.json +++ b/bausaurus/example/bausaurus-doc/package.json @@ -7,8 +7,7 @@ "scripts": { "dev": "bausaurus dev", "build": "bausaurus build", - "preview": "bausaurus preview", - "deploy": "gh-pages -d dist" + "preview": "bausaurus preview" }, "dependencies": { "@grucloud/bau": "^0.94.0", @@ -16,7 +15,6 @@ "@grucloud/bau-ui": "^0.94.0", "@grucloud/bausaurus-core": "^0.94.0", "@grucloud/bausaurus-theme-classic": "^0.94.0", - "gh-pages": "5.0.0", "rubico": "2.0.1" }, "devDependencies": { diff --git a/examples/bento-grid/package.json b/examples/bento-grid/package.json index b8a7493d..d1e14161 100644 --- a/examples/bento-grid/package.json +++ b/examples/bento-grid/package.json @@ -1,14 +1,17 @@ { - "name": "frontendmentor-bentogrid", + "name": "frontendmentor-bento-grid", + "homepage": "https://grucloud.github.io/bau/frontendmentor/bento-grid/", "private": true, "version": "0.94.0", "type": "module", "scripts": { "dev": "vite", "build": "vite build", - "preview": "vite preview" + "preview": "vite preview", + "deploy": "gh-pages -d ../../dist" }, "devDependencies": { + "gh-pages": "6.1.1", "vite": "^5.2.11" }, "dependencies": { diff --git a/examples/bento-grid/vite.config.js b/examples/bento-grid/vite.config.js index 41713bec..9142a9b8 100644 --- a/examples/bento-grid/vite.config.js +++ b/examples/bento-grid/vite.config.js @@ -2,6 +2,8 @@ import { defineConfig } from "vite"; export default defineConfig(({ command, mode, ssrBuild }) => { return { + base: "/bau/frontendmentor/bento-grid/", + build: { outDir: "../../dist/frontendmentor/bento-grid" }, server: { open: true, }, diff --git a/examples/blog-preview-card/package.json b/examples/blog-preview-card/package.json index ded262c3..deeeb324 100644 --- a/examples/blog-preview-card/package.json +++ b/examples/blog-preview-card/package.json @@ -1,14 +1,17 @@ { "name": "frontendmentor-blog-preview-card", + "homepage": "https://grucloud.github.io/bau/frontendmentor/blog-preview-card/", "private": true, "version": "0.94.0", "type": "module", "scripts": { "dev": "vite", "build": "tsc && vite build", - "preview": "vite preview" + "preview": "vite preview", + "deploy": "gh-pages -d ../../dist" }, "devDependencies": { + "gh-pages": "6.1.1", "typescript": "^5.0.2", "vite": "^5.2.11" }, diff --git a/examples/blog-preview-card/vite.config.js b/examples/blog-preview-card/vite.config.js index 41713bec..abc27f79 100644 --- a/examples/blog-preview-card/vite.config.js +++ b/examples/blog-preview-card/vite.config.js @@ -2,6 +2,8 @@ import { defineConfig } from "vite"; export default defineConfig(({ command, mode, ssrBuild }) => { return { + base: "/bau/frontendmentor/blog-preview-card/", + build: { outDir: "../../dist/frontendmentor/blog-preview-card" }, server: { open: true, }, diff --git a/examples/calculator/package.json b/examples/calculator/package.json index 8e507753..2a0105d6 100644 --- a/examples/calculator/package.json +++ b/examples/calculator/package.json @@ -1,5 +1,6 @@ { "name": "frontendmentor-calculator", + "homepage": "https://grucloud.github.io/bau/frontendmentor/calculator/", "private": true, "version": "0.94.0", "type": "module", @@ -7,17 +8,19 @@ "dev": "vite", "build": "tsc && vite build", "preview": "vite preview", - "test": "vitest" + "test": "vitest", + "deploy": "gh-pages -d ../../dist" }, "devDependencies": { + "gh-pages": "6.1.1", "typescript": "^5.0.2", - "vite": "^5.2.11" + "vite": "^5.2.11", + "vitest": "2.1.4" }, "dependencies": { "@grucloud/bau": "^0.94.0", "@grucloud/bau-css": "^0.94.0", "@grucloud/bau-ui": "^0.94.0", - "bignumber.js": "9.1.2", - "vitest": "2.1.4" + "bignumber.js": "9.1.2" } } diff --git a/examples/calculator/vite.config.js b/examples/calculator/vite.config.js index 41713bec..dff2e91f 100644 --- a/examples/calculator/vite.config.js +++ b/examples/calculator/vite.config.js @@ -2,6 +2,8 @@ import { defineConfig } from "vite"; export default defineConfig(({ command, mode, ssrBuild }) => { return { + base: "/bau/frontendmentor/calculator/", + build: { outDir: "../../dist/frontendmentor/calculator" }, server: { open: true, }, diff --git a/examples/contact-form/package.json b/examples/contact-form/package.json index 20a2177d..0837d24c 100644 --- a/examples/contact-form/package.json +++ b/examples/contact-form/package.json @@ -1,14 +1,17 @@ { "name": "frontendmentor-contact-form", + "homepage": "https://grucloud.github.io/bau/frontendmentor/contact-form/", "private": true, "version": "0.94.0", "type": "module", "scripts": { "dev": "vite", "build": "tsc && vite build", - "preview": "vite preview" + "preview": "vite preview", + "deploy": "gh-pages -d ../../dist" }, "devDependencies": { + "gh-pages": "6.1.1", "typescript": "^5.0.2", "vite": "^5.2.11" }, diff --git a/examples/contact-form/vite.config.js b/examples/contact-form/vite.config.js index 41713bec..9d4934f2 100644 --- a/examples/contact-form/vite.config.js +++ b/examples/contact-form/vite.config.js @@ -2,6 +2,8 @@ import { defineConfig } from "vite"; export default defineConfig(({ command, mode, ssrBuild }) => { return { + base: "/bau/frontendmentor/contact-form/", + build: { outDir: "../../dist/frontendmentor/contact-form" }, server: { open: true, }, diff --git a/examples/faq-accordion/package.json b/examples/faq-accordion/package.json index e06ec70d..f54940e4 100644 --- a/examples/faq-accordion/package.json +++ b/examples/faq-accordion/package.json @@ -1,14 +1,17 @@ { "name": "frontendmentor-faq-accordion", + "homepage": "https://grucloud.github.io/bau/frontendmentor/faq-accordion/", "private": true, "version": "0.94.0", "type": "module", "scripts": { "dev": "vite", "build": "tsc && vite build", - "preview": "vite preview" + "preview": "vite preview", + "deploy": "gh-pages -d ../../dist" }, "devDependencies": { + "gh-pages": "6.1.1", "typescript": "^5.0.2", "vite": "^5.2.11" }, diff --git a/examples/faq-accordion/vite.config.js b/examples/faq-accordion/vite.config.js index 41713bec..2fc65db8 100644 --- a/examples/faq-accordion/vite.config.js +++ b/examples/faq-accordion/vite.config.js @@ -2,6 +2,8 @@ import { defineConfig } from "vite"; export default defineConfig(({ command, mode, ssrBuild }) => { return { + base: "/bau/frontendmentor/faq-accordion/", + build: { outDir: "../../dist/frontendmentor/faq-accordion" }, server: { open: true, }, diff --git a/examples/interactive-rating-component/package.json b/examples/interactive-rating-component/package.json index bc1f10e0..ea0e5edc 100644 --- a/examples/interactive-rating-component/package.json +++ b/examples/interactive-rating-component/package.json @@ -1,14 +1,17 @@ { "name": "frontendmentor-interactive-rating-component", + "homepage": "https://grucloud.github.io/bau/frontendmentor/interactive-rating-component/", "private": true, "version": "0.94.0", "type": "module", "scripts": { "dev": "vite", "build": "tsc && vite build", - "preview": "vite preview" + "preview": "vite preview", + "deploy": "gh-pages -d ../../dist" }, "devDependencies": { + "gh-pages": "6.1.1", "typescript": "^5.0.2", "vite": "^5.2.11" }, diff --git a/examples/interactive-rating-component/vite.config.js b/examples/interactive-rating-component/vite.config.js index 41713bec..28b41f9e 100644 --- a/examples/interactive-rating-component/vite.config.js +++ b/examples/interactive-rating-component/vite.config.js @@ -2,6 +2,8 @@ import { defineConfig } from "vite"; export default defineConfig(({ command, mode, ssrBuild }) => { return { + base: "/bau/frontendmentor/interactive-rating-component/", + build: { outDir: "../../dist/frontendmentor/interactive-rating-component" }, server: { open: true, }, diff --git a/examples/ip-address-tracker/package.json b/examples/ip-address-tracker/package.json index 444066da..9297e4f0 100644 --- a/examples/ip-address-tracker/package.json +++ b/examples/ip-address-tracker/package.json @@ -1,14 +1,17 @@ { "name": "frontendmentor-ip-address-tracker", + "homepage": "https://grucloud.github.io/bau/frontendmentor/ip-address-tracker/", "private": true, "version": "0.94.0", "type": "module", "scripts": { "dev": "vite", "build": "vite build", - "preview": "vite preview" + "preview": "vite preview", + "deploy": "gh-pages -d ../../dist" }, "devDependencies": { + "gh-pages": "6.1.1", "vite": "^5.2.11" }, "dependencies": { diff --git a/examples/ip-address-tracker/vite.config.js b/examples/ip-address-tracker/vite.config.js index 41713bec..74cffd66 100644 --- a/examples/ip-address-tracker/vite.config.js +++ b/examples/ip-address-tracker/vite.config.js @@ -2,6 +2,8 @@ import { defineConfig } from "vite"; export default defineConfig(({ command, mode, ssrBuild }) => { return { + base: "/bau/frontendmentor/ip-address-tracker/", + build: { outDir: "../../dist/frontendmentor/ip-address-tracker" }, server: { open: true, }, diff --git a/examples/mortgage-repayment-calculator/package.json b/examples/mortgage-repayment-calculator/package.json index 0c181cb6..4752a0f4 100644 --- a/examples/mortgage-repayment-calculator/package.json +++ b/examples/mortgage-repayment-calculator/package.json @@ -1,14 +1,17 @@ { "name": "frontendmentor-mortgage-repayment-calculator", + "homepage": "https://grucloud.github.io/bau/frontendmentor/mortgage-repayment-calculator/", "private": true, "version": "0.94.0", "type": "module", "scripts": { "dev": "vite", "build": "tsc && vite build", - "preview": "vite preview" + "preview": "vite preview", + "deploy": "gh-pages -d ../../dist" }, "devDependencies": { + "gh-pages": "6.1.1", "typescript": "^5.0.2", "vite": "^5.2.11" }, diff --git a/examples/mortgage-repayment-calculator/vite.config.js b/examples/mortgage-repayment-calculator/vite.config.js index 41713bec..ab2dac6a 100644 --- a/examples/mortgage-repayment-calculator/vite.config.js +++ b/examples/mortgage-repayment-calculator/vite.config.js @@ -2,6 +2,10 @@ import { defineConfig } from "vite"; export default defineConfig(({ command, mode, ssrBuild }) => { return { + base: "/bau/frontendmentor/mortgage-repayment-calculator/", + build: { + outDir: "../../dist/frontendmentor/mortgage-repayment-calculator", + }, server: { open: true, }, diff --git a/examples/product-list-cart/package.json b/examples/product-list-cart/package.json index fc0146df..7afb2e7c 100644 --- a/examples/product-list-cart/package.json +++ b/examples/product-list-cart/package.json @@ -1,14 +1,17 @@ { "name": "frontendmentor-product-list-cart", + "homepage": "https://grucloud.github.io/bau/frontendmentor/product-list-cart/", "private": true, "version": "0.94.0", "type": "module", "scripts": { "dev": "vite", "build": "tsc && vite build", - "preview": "vite preview" + "preview": "vite preview", + "deploy": "gh-pages -d ../../dist" }, "devDependencies": { + "gh-pages": "6.1.1", "typescript": "^5.0.2", "vite": "^5.2.11" }, diff --git a/examples/product-list-cart/vite.config.js b/examples/product-list-cart/vite.config.js index 41713bec..5fc0a317 100644 --- a/examples/product-list-cart/vite.config.js +++ b/examples/product-list-cart/vite.config.js @@ -2,6 +2,10 @@ import { defineConfig } from "vite"; export default defineConfig(({ command, mode, ssrBuild }) => { return { + base: "/bau/frontendmentor/product-list-cart/", + build: { + outDir: "../../dist/frontendmentor/product-list-cart", + }, server: { open: true, }, diff --git a/examples/product-preview-card/package.json b/examples/product-preview-card/package.json index 1e9664ce..96be5667 100644 --- a/examples/product-preview-card/package.json +++ b/examples/product-preview-card/package.json @@ -1,14 +1,17 @@ { "name": "frontendmentor-product-preview-card", + "homepage": "https://grucloud.github.io/bau/frontendmentor/product-preview-card/", "private": true, "version": "0.94.0", "type": "module", "scripts": { "dev": "vite", "build": "tsc && vite build", - "preview": "vite preview" + "preview": "vite preview", + "deploy": "gh-pages -d ../../dist" }, "devDependencies": { + "gh-pages": "6.1.1", "typescript": "^5.0.2", "vite": "^5.2.11" }, diff --git a/examples/product-preview-card/vite.config.js b/examples/product-preview-card/vite.config.js index 41713bec..d7e1c04b 100644 --- a/examples/product-preview-card/vite.config.js +++ b/examples/product-preview-card/vite.config.js @@ -2,6 +2,10 @@ import { defineConfig } from "vite"; export default defineConfig(({ command, mode, ssrBuild }) => { return { + base: "/bau/frontendmentor/product-preview-card/", + build: { + outDir: "../../dist/frontendmentor/product-preview-card", + }, server: { open: true, }, diff --git a/examples/recipePage/package.json b/examples/recipePage/package.json index f15b1e4c..119eda73 100644 --- a/examples/recipePage/package.json +++ b/examples/recipePage/package.json @@ -1,14 +1,17 @@ { "name": "frontendmentor-recipe-page", + "homepage": "https://grucloud.github.io/bau/frontendmentor/recipePage/", "private": true, "version": "0.94.0", "type": "module", "scripts": { "dev": "vite", "build": "tsc && vite build", - "preview": "vite preview" + "preview": "vite preview", + "deploy": "gh-pages -d ../../dist" }, "devDependencies": { + "gh-pages": "6.1.1", "typescript": "^5.0.2", "vite": "^5.2.11" }, diff --git a/examples/recipePage/vite.config.js b/examples/recipePage/vite.config.js index 41713bec..5c9302a2 100644 --- a/examples/recipePage/vite.config.js +++ b/examples/recipePage/vite.config.js @@ -2,6 +2,10 @@ import { defineConfig } from "vite"; export default defineConfig(({ command, mode, ssrBuild }) => { return { + base: "/bau/frontendmentor/recipePage/", + build: { + outDir: "../../dist/frontendmentor/recipePage", + }, server: { open: true, }, diff --git a/examples/result-summary-component/package.json b/examples/result-summary-component/package.json index 0272246b..e9ca90e7 100644 --- a/examples/result-summary-component/package.json +++ b/examples/result-summary-component/package.json @@ -1,14 +1,17 @@ { "name": "frontendmentor-result-summary-component", + "homepage": "https://grucloud.github.io/bau/frontendmentor/result-summary-component/", "private": true, "version": "0.94.0", "type": "module", "scripts": { "dev": "vite", "build": "tsc && vite build", - "preview": "vite preview" + "preview": "vite preview", + "deploy": "gh-pages -d ../../dist" }, "devDependencies": { + "gh-pages": "6.1.1", "typescript": "^5.0.2", "vite": "^5.2.11" }, diff --git a/examples/result-summary-component/vite.config.js b/examples/result-summary-component/vite.config.js index 41713bec..32e5363e 100644 --- a/examples/result-summary-component/vite.config.js +++ b/examples/result-summary-component/vite.config.js @@ -2,6 +2,10 @@ import { defineConfig } from "vite"; export default defineConfig(({ command, mode, ssrBuild }) => { return { + base: "/bau/frontendmentor/result-summary-component/", + build: { + outDir: "../../dist/frontendmentor/result-summary-component", + }, server: { open: true, }, diff --git a/examples/social-link-profile/package.json b/examples/social-link-profile/package.json index 3bdf204f..e0810736 100644 --- a/examples/social-link-profile/package.json +++ b/examples/social-link-profile/package.json @@ -1,14 +1,17 @@ { "name": "frontendmentor-social-link-profile", + "homepage": "https://grucloud.github.io/bau/frontendmentor/social-link-profile/", "private": true, "version": "0.94.0", "type": "module", "scripts": { "dev": "vite", "build": "tsc && vite build", - "preview": "vite preview" + "preview": "vite preview", + "deploy": "gh-pages -d ../../dist" }, "devDependencies": { + "gh-pages": "6.1.1", "typescript": "^5.0.2", "vite": "^5.2.11" }, diff --git a/examples/social-link-profile/vite.config.js b/examples/social-link-profile/vite.config.js index 41713bec..e44bb773 100644 --- a/examples/social-link-profile/vite.config.js +++ b/examples/social-link-profile/vite.config.js @@ -2,6 +2,10 @@ import { defineConfig } from "vite"; export default defineConfig(({ command, mode, ssrBuild }) => { return { + base: "/bau/frontendmentor/social-link-profile/", + build: { + outDir: "../../dist/frontendmentor/social-link-profile", + }, server: { open: true, },