Skip to content

Commit

Permalink
feat: enable to deploy on github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
alan890104 committed Apr 29, 2023
1 parent aaf435f commit de9d7ca
Show file tree
Hide file tree
Showing 4 changed files with 395 additions and 340 deletions.
13 changes: 10 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,15 @@
"name": "sharex",
"version": "0.0.1",
"description": "Share files with ShareX",
"homepage": "https://solratic.github.io/sharex-interface/",
"repository": {
"type": "git",
"url": "https://github.com/Solratic/sharex-interface"
},
"scripts": {
"dev": "yarn compile && vite",
"build": "yarn compile && vite build",
"serve": "yarn compile && vite preview",
"preview": "vite preview",
"compile": "typechain --target ethers-v5 --out-dir src/types contract/*.json"
},
"dependencies": {
Expand All @@ -14,22 +19,24 @@
"jszip": "^3.10.1",
"notyf": "^3.10.0",
"pinia": "^2.0.0-rc.6",
"uuid": "^9.0.0",
"vue": "^3.2.4",
"vue-connect-wallet": "^0.1.7",
"vue-router": "^4.0.10"
},
"devDependencies": {
"@iconify/json": "^1.1.390",
"@typechain/ethers-v5": "^10.2.0",
"@types/uuid": "^9.0.1",
"@vitejs/plugin-vue": "^1.4.0",
"@vue/compiler-sfc": "^3.2.4",
"sass": "^1.35.2",
"typechain": "^8.1.1",
"typescript": "^5.0.4",
"unplugin-icons": "^0.11.3",
"unplugin-vue-components": "^0.15.2",
"vite": "^2.5.0",
"vite": "^4.3.3",
"vite-plugin-fonts": "^0.2.2",
"vite-plugin-pwa": "^0.8.2"
"vite-plugin-pwa": "^0.14.7"
}
}
5 changes: 3 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"src/*"
]
},
"module": "esnext",
"module": "ES2022",
"moduleResolution": "node",
"allowSyntheticDefaultImports": true,
"forceConsistentCasingInFileNames": true,
Expand All @@ -17,6 +17,7 @@
"allowJs": true,
},
"include": [
"src/**/*"
"src/**/*",
"vite.config.ts",
]
}
8 changes: 4 additions & 4 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ export default defineConfig({
},
},
build: {
target: "esnext",
target: "es2022",
},
base: "/sharex-interface/",
optimizeDeps: {
esbuildOptions: {
target: "esnext",
target: "es2022",
define: {
global: 'globalThis'
},
Expand All @@ -41,8 +41,8 @@ export default defineConfig({
registerType: 'autoUpdate',
includeAssets: ['/favicon.svg'],
manifest: {
name: "Sharex - Instant File Sharing",
short_name: "Sharex",
name: "ShaRex - Instant File Sharing",
short_name: "ShaRex",
description: "Instant File Sharing powered by IPFS Protocol",
theme_color: "#212121",
icons: [
Expand Down
Loading

0 comments on commit de9d7ca

Please sign in to comment.