From 6227746d2524f981c8d5bcf6b20fd4c8d4a811e3 Mon Sep 17 00:00:00 2001 From: "alpha2phi@gmail.com" Date: Mon, 30 Sep 2024 14:19:01 +0800 Subject: [PATCH] refactor: layout --- .../azure-static-web-apps-gentle-bush-0a37d5800.yml | 11 +---------- .gitignore => frontend/.gitignore | 0 README.md => frontend/README.md | 0 eslint.config.js => frontend/eslint.config.js | 0 index.html => frontend/index.html | 0 package.json => frontend/package.json | 0 pnpm-lock.yaml => frontend/pnpm-lock.yaml | 0 {public => frontend/public}/vite.svg | 0 {src => frontend/src}/App.css | 0 {src => frontend/src}/App.tsx | 0 {src => frontend/src}/assets/react.svg | 0 {src => frontend/src}/index.css | 0 {src => frontend/src}/main.tsx | 0 {src => frontend/src}/vite-env.d.ts | 0 .../staticwebapp.config.json | 0 tsconfig.app.json => frontend/tsconfig.app.json | 0 tsconfig.json => frontend/tsconfig.json | 0 tsconfig.node.json => frontend/tsconfig.node.json | 0 vite.config.ts => frontend/vite.config.ts | 0 19 files changed, 1 insertion(+), 10 deletions(-) rename .gitignore => frontend/.gitignore (100%) rename README.md => frontend/README.md (100%) rename eslint.config.js => frontend/eslint.config.js (100%) rename index.html => frontend/index.html (100%) rename package.json => frontend/package.json (100%) rename pnpm-lock.yaml => frontend/pnpm-lock.yaml (100%) rename {public => frontend/public}/vite.svg (100%) rename {src => frontend/src}/App.css (100%) rename {src => frontend/src}/App.tsx (100%) rename {src => frontend/src}/assets/react.svg (100%) rename {src => frontend/src}/index.css (100%) rename {src => frontend/src}/main.tsx (100%) rename {src => frontend/src}/vite-env.d.ts (100%) rename staticwebapp.config.json => frontend/staticwebapp.config.json (100%) rename tsconfig.app.json => frontend/tsconfig.app.json (100%) rename tsconfig.json => frontend/tsconfig.json (100%) rename tsconfig.node.json => frontend/tsconfig.node.json (100%) rename vite.config.ts => frontend/vite.config.ts (100%) diff --git a/.github/workflows/azure-static-web-apps-gentle-bush-0a37d5800.yml b/.github/workflows/azure-static-web-apps-gentle-bush-0a37d5800.yml index 3ac7b99..abede69 100644 --- a/.github/workflows/azure-static-web-apps-gentle-bush-0a37d5800.yml +++ b/.github/workflows/azure-static-web-apps-gentle-bush-0a37d5800.yml @@ -25,15 +25,6 @@ jobs: with: node-version: 'lts/*' # Specify your node version - # - name: Install pnpm - # run: npm install -g pnpm - - # - name: Install dependencies - # run: pnpm install - - # - name: Build project - # run: pnpm run build - - name: Build And Deploy id: builddeploy uses: Azure/static-web-apps-deploy@v1 @@ -43,7 +34,7 @@ jobs: action: "upload" ###### Repository/Build Configurations - These values can be configured to match your app requirements. ###### # For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig - app_location: "/" # App source code path + app_location: "/frontend" # App source code path api_location: "" # Api source code path - optional output_location: "dist" # Built app content directory - optional app_build_command: "npm install -g pnpm && pnpm install && pnpm run build" diff --git a/.gitignore b/frontend/.gitignore similarity index 100% rename from .gitignore rename to frontend/.gitignore diff --git a/README.md b/frontend/README.md similarity index 100% rename from README.md rename to frontend/README.md diff --git a/eslint.config.js b/frontend/eslint.config.js similarity index 100% rename from eslint.config.js rename to frontend/eslint.config.js diff --git a/index.html b/frontend/index.html similarity index 100% rename from index.html rename to frontend/index.html diff --git a/package.json b/frontend/package.json similarity index 100% rename from package.json rename to frontend/package.json diff --git a/pnpm-lock.yaml b/frontend/pnpm-lock.yaml similarity index 100% rename from pnpm-lock.yaml rename to frontend/pnpm-lock.yaml diff --git a/public/vite.svg b/frontend/public/vite.svg similarity index 100% rename from public/vite.svg rename to frontend/public/vite.svg diff --git a/src/App.css b/frontend/src/App.css similarity index 100% rename from src/App.css rename to frontend/src/App.css diff --git a/src/App.tsx b/frontend/src/App.tsx similarity index 100% rename from src/App.tsx rename to frontend/src/App.tsx diff --git a/src/assets/react.svg b/frontend/src/assets/react.svg similarity index 100% rename from src/assets/react.svg rename to frontend/src/assets/react.svg diff --git a/src/index.css b/frontend/src/index.css similarity index 100% rename from src/index.css rename to frontend/src/index.css diff --git a/src/main.tsx b/frontend/src/main.tsx similarity index 100% rename from src/main.tsx rename to frontend/src/main.tsx diff --git a/src/vite-env.d.ts b/frontend/src/vite-env.d.ts similarity index 100% rename from src/vite-env.d.ts rename to frontend/src/vite-env.d.ts diff --git a/staticwebapp.config.json b/frontend/staticwebapp.config.json similarity index 100% rename from staticwebapp.config.json rename to frontend/staticwebapp.config.json diff --git a/tsconfig.app.json b/frontend/tsconfig.app.json similarity index 100% rename from tsconfig.app.json rename to frontend/tsconfig.app.json diff --git a/tsconfig.json b/frontend/tsconfig.json similarity index 100% rename from tsconfig.json rename to frontend/tsconfig.json diff --git a/tsconfig.node.json b/frontend/tsconfig.node.json similarity index 100% rename from tsconfig.node.json rename to frontend/tsconfig.node.json diff --git a/vite.config.ts b/frontend/vite.config.ts similarity index 100% rename from vite.config.ts rename to frontend/vite.config.ts