-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: move to electron-vite for build, clean up CI (#462)
* initial commit * fix: packaging * fix: split settings into two to fix broken directory stuff * chore: remove unneeded files * chore: cleanup * chore: cleanup * fix: remove preload stuff * ci: tweak pr workflows * ci: try to fix cache * build: re-add autoprefixer * fix: rmdir * chore: update some packages * fix: track description not showing * fix: toggle styling * build: bump react-markdown to v8 * fix: license link font size * build: fix generation of license file * ci: tweaks * refactor: change way third party licenses work * fix: update vite and electron-vite to fix bundling issue * chore: fix lint * chore: fix package-lock.json * fix: appdata
- Loading branch information
Showing
47 changed files
with
15,883 additions
and
30,529 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: PR Title | ||
name: PR Semantics | ||
on: | ||
pull_request_target: | ||
types: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { defineConfig } from 'electron-vite'; | ||
import path from 'path'; | ||
import ViteYaml from '@modyfi/vite-plugin-yaml'; | ||
import renderer from 'vite-plugin-electron-renderer'; | ||
|
||
const baseOptions = { | ||
resolve: { | ||
alias: { | ||
// TODO not need this (vite) | ||
simplebar: path.resolve(__dirname, './node_modules/simplebar-react/'), | ||
common: path.resolve(__dirname, './src/common/'), | ||
renderer: path.resolve(__dirname, './src/renderer/'), | ||
main: path.resolve(__dirname, './src/main/'), | ||
}, | ||
}, | ||
}; | ||
|
||
export default defineConfig({ | ||
main: { | ||
...baseOptions, | ||
}, | ||
renderer: { | ||
...baseOptions, | ||
plugins: [ViteYaml(), renderer()], | ||
}, | ||
}); |
Oops, something went wrong.