From 6a2f5870a6cb968cf3bae27a0888948bf77d1b80 Mon Sep 17 00:00:00 2001 From: Evren Ceyhan Date: Sat, 23 Dec 2023 21:36:28 +0100 Subject: [PATCH 1/4] disable ssr --- components/{AppParticles.client.vue => AppParticles.vue} | 0 .../project/{RepositoryList.client.vue => RepositoryList.vue} | 0 nuxt.config.ts | 1 + 3 files changed, 1 insertion(+) rename components/{AppParticles.client.vue => AppParticles.vue} (100%) rename components/project/{RepositoryList.client.vue => RepositoryList.vue} (100%) diff --git a/components/AppParticles.client.vue b/components/AppParticles.vue similarity index 100% rename from components/AppParticles.client.vue rename to components/AppParticles.vue diff --git a/components/project/RepositoryList.client.vue b/components/project/RepositoryList.vue similarity index 100% rename from components/project/RepositoryList.client.vue rename to components/project/RepositoryList.vue diff --git a/nuxt.config.ts b/nuxt.config.ts index 853e6e9..a5d8bac 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -1,5 +1,6 @@ // https://nuxt.com/docs/api/configuration/nuxt-config export default defineNuxtConfig({ + ssr: false, devtools: { enabled: true }, modules: ['@nuxtjs/tailwindcss', '@pinia/nuxt'], css: ['~/assets/css/main.css', 'bootstrap-icons/font/bootstrap-icons.css'], From 694634eda3b0ddd203417c5718cb72796103248f Mon Sep 17 00:00:00 2001 From: Evren Ceyhan Date: Sat, 23 Dec 2023 21:39:23 +0100 Subject: [PATCH 2/4] rename deploy script --- .github/workflows/{build-deploy.yml => deploy.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{build-deploy.yml => deploy.yml} (100%) diff --git a/.github/workflows/build-deploy.yml b/.github/workflows/deploy.yml similarity index 100% rename from .github/workflows/build-deploy.yml rename to .github/workflows/deploy.yml From 8457b4043cc92a304661991519fea96024abc43d Mon Sep 17 00:00:00 2001 From: Evren Ceyhan Date: Sat, 23 Dec 2023 21:47:57 +0100 Subject: [PATCH 3/4] update readme --- README.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index a11a0a6..3760db5 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ [![CodeQL](https://github.com/webceyhan/webceyhan.github.io/actions/workflows/github-code-scanning/codeql/badge.svg)](https://github.com/webceyhan/webceyhan.github.io/actions/workflows/github-code-scanning/codeql) -[![Build and Deploy](https://github.com/webceyhan/webceyhan.github.io/actions/workflows/build-deploy.yml/badge.svg)](https://github.com/webceyhan/webceyhan.github.io/actions/workflows/build-deploy.yml) +[![Build and Deploy](https://github.com/webceyhan/webceyhan.github.io/actions/workflows/deploy.yml/badge.svg)](https://github.com/webceyhan/webceyhan.github.io/actions/workflows/deploy.yml) @@ -26,7 +26,7 @@ Feel free to use it as your own landing page if you like. ## Requirements -You need to install the [Node.js](https://nodejs.dev/) and `npm` package manager first. +You need to install the [Bun](https://bun.sh/) first. > Recommended IDE: > [VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar) @@ -44,9 +44,9 @@ You need to install the [Node.js](https://nodejs.dev/) and `npm` package manager ```sh cd webceyhan.github.io ``` -3. Install NPM packages. +3. Install packages. ```sh - npm install + bun install ``` 4. Set your social link handles in .env file. ```sh @@ -74,9 +74,9 @@ You need to install the [Node.js](https://nodejs.dev/) and `npm` package manager You can use following commands to do various task with the project. ```sh -npm run dev # start development server -npm run build # build for production -npm run preview # preview built application +bun run dev # start development server +bun run build # build for production +bun run preview # preview built application ``` > Take a look at the other scripts in [`package.json`](./package.json) @@ -90,7 +90,7 @@ npm run preview # preview built application Start the development server to watch changes while you code. ```sh -npm run dev +bun run dev ```
@@ -101,13 +101,13 @@ npm run dev Build the application for production. ```sh -npm run build +bun run build ``` You can also preview the application after building it. ```sh -npm run preview +bun run preview ```
@@ -117,9 +117,9 @@ npm run preview A GitHub Action will automatically deploy the project to GitHub Pages on every push. -The workflow will build the project using npm and output the result to the `dist` folder which will be then pushed to the `gh-pages` branch. +The workflow will build the project using bun and output the result to the `dist` folder which will be then pushed to the `gh-pages` branch. -> See the details in [.github/workflows/build-and-deploy.yml](./.github/workflows/build-and-deploy.yml) +> See the details in [.github/workflows/deploy.yml](./.github/workflows/deploy.yml)
From 6a70b0f9764f3002a15a891dad79e7c0272fdedd Mon Sep 17 00:00:00 2001 From: Evren Ceyhan Date: Sat, 23 Dec 2023 22:38:49 +0100 Subject: [PATCH 4/4] restore ssr to true --- components/{AppParticles.vue => AppParticles.client.vue} | 0 .../project/{RepositoryList.vue => RepositoryList.client.vue} | 0 nuxt.config.ts | 1 - 3 files changed, 1 deletion(-) rename components/{AppParticles.vue => AppParticles.client.vue} (100%) rename components/project/{RepositoryList.vue => RepositoryList.client.vue} (100%) diff --git a/components/AppParticles.vue b/components/AppParticles.client.vue similarity index 100% rename from components/AppParticles.vue rename to components/AppParticles.client.vue diff --git a/components/project/RepositoryList.vue b/components/project/RepositoryList.client.vue similarity index 100% rename from components/project/RepositoryList.vue rename to components/project/RepositoryList.client.vue diff --git a/nuxt.config.ts b/nuxt.config.ts index a5d8bac..853e6e9 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -1,6 +1,5 @@ // https://nuxt.com/docs/api/configuration/nuxt-config export default defineNuxtConfig({ - ssr: false, devtools: { enabled: true }, modules: ['@nuxtjs/tailwindcss', '@pinia/nuxt'], css: ['~/assets/css/main.css', 'bootstrap-icons/font/bootstrap-icons.css'],