From 94f76a79a39a03049ed7e3d3144dfa2200875bf9 Mon Sep 17 00:00:00 2001 From: Frank Mendez Date: Fri, 19 Jul 2024 12:11:52 +0800 Subject: [PATCH] feat: test build --- .github/workflows/deploy.yml | 51 ---------------------- .gitignore | 1 + {dist/assets => assets}/index-eBw_4pxw.js | 0 {dist/assets => assets}/index-fNCE5DMw.css | 0 dist/index.html | 14 ------ index.html | 3 +- package-lock.json | 16 +++++++ package.json | 1 + vite.config.ts | 5 ++- dist/vite.svg => vite.svg | 0 10 files changed, 24 insertions(+), 67 deletions(-) delete mode 100644 .github/workflows/deploy.yml rename {dist/assets => assets}/index-eBw_4pxw.js (100%) rename {dist/assets => assets}/index-fNCE5DMw.css (100%) delete mode 100644 dist/index.html rename dist/vite.svg => vite.svg (100%) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml deleted file mode 100644 index dccf6fc..0000000 --- a/.github/workflows/deploy.yml +++ /dev/null @@ -1,51 +0,0 @@ -# Simple workflow for deploying static content to GitHub Pages -name: Deploy static content to Pages - -on: - # Runs on pushes targeting the default branch - push: - branches: ['main'] - - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: - -# Sets the GITHUB_TOKEN permissions to allow deployment to GitHub Pages -permissions: - contents: read - pages: write - id-token: write - -# Allow one concurrent deployment -concurrency: - group: 'pages' - cancel-in-progress: true - -jobs: - # Single deploy job since we're just deploying - deploy: - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Set up Node - uses: actions/setup-node@v4 - with: - node-version: 20 - cache: 'npm' - - name: Install dependencies - run: npm ci - - name: Build - run: npm run build - - name: Setup Pages - uses: actions/configure-pages@v4 - - name: Upload artifact - uses: actions/upload-pages-artifact@v3 - with: - # Upload dist folder - path: './dist' - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v4 \ No newline at end of file diff --git a/.gitignore b/.gitignore index aad7673..69260a8 100644 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,7 @@ pnpm-debug.log* lerna-debug.log* node_modules +dist dist-ssr *.local diff --git a/dist/assets/index-eBw_4pxw.js b/assets/index-eBw_4pxw.js similarity index 100% rename from dist/assets/index-eBw_4pxw.js rename to assets/index-eBw_4pxw.js diff --git a/dist/assets/index-fNCE5DMw.css b/assets/index-fNCE5DMw.css similarity index 100% rename from dist/assets/index-fNCE5DMw.css rename to assets/index-fNCE5DMw.css diff --git a/dist/index.html b/dist/index.html deleted file mode 100644 index 48b82f4..0000000 --- a/dist/index.html +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - Web Portfolio - - - - -
- - diff --git a/index.html b/index.html index a592fa4..48b82f4 100644 --- a/index.html +++ b/index.html @@ -5,9 +5,10 @@ Web Portfolio + +
- diff --git a/package-lock.json b/package-lock.json index 0ab9c71..049cd47 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,6 +12,7 @@ "react-dom": "^18.3.1" }, "devDependencies": { + "@types/node": "^20.14.11", "@types/react": "^18.3.3", "@types/react-dom": "^18.3.0", "@typescript-eslint/eslint-plugin": "^7.15.0", @@ -1311,6 +1312,15 @@ "integrity": "sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==", "dev": true }, + "node_modules/@types/node": { + "version": "20.14.11", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.14.11.tgz", + "integrity": "sha512-kprQpL8MMeszbz6ojB5/tU8PLN4kesnN8Gjzw349rDlNgsSzg90lAVj3llK99Dh7JON+t9AuscPPFW6mPbTnSA==", + "dev": true, + "dependencies": { + "undici-types": "~5.26.4" + } + }, "node_modules/@types/prop-types": { "version": "15.7.12", "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.12.tgz", @@ -3926,6 +3936,12 @@ "node": ">=14.17" } }, + "node_modules/undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", + "dev": true + }, "node_modules/update-browserslist-db": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.0.tgz", diff --git a/package.json b/package.json index 5fa347d..ce7936e 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "react-dom": "^18.3.1" }, "devDependencies": { + "@types/node": "^20.14.11", "@types/react": "^18.3.3", "@types/react-dom": "^18.3.0", "@typescript-eslint/eslint-plugin": "^7.15.0", diff --git a/vite.config.ts b/vite.config.ts index 2524324..ec120f4 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,8 +1,11 @@ import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' +import path from 'path' // https://vitejs.dev/config/ export default defineConfig({ plugins: [react()], - base: 'frank-mendez.github.io' + build: { + outDir: path.resolve(__dirname, '') + } }) diff --git a/dist/vite.svg b/vite.svg similarity index 100% rename from dist/vite.svg rename to vite.svg