Skip to content

Commit

Permalink
Start from Scratch
Browse files Browse the repository at this point in the history
  • Loading branch information
Yeon Vinzenz Varapragasam authored and Yeon Vinzenz Varapragasam committed Nov 6, 2023
1 parent 2127113 commit 11e40ab
Show file tree
Hide file tree
Showing 123 changed files with 6,468 additions and 7,328 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ node_modules
.next
app
dist
out/
.DS_Store
41 changes: 36 additions & 5 deletions electron-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,42 @@ appId: com.blade.wled.manager
productName: WLED Manager
copyright: Copyright © 2021 YeonV aka Blade
directories:
output: dist
buildResources: resources
files:
- from: .
filter:
- package.json
- app
- '!**/.vscode/*'
- '!src/*'
- '!electron.vite.config.{js,ts,mjs,cjs}'
- '!{.eslintignore,.eslintrc.cjs,.prettierignore,.prettierrc.yaml,dev-app-update.yml,CHANGELOG.md,README.md}'
- '!{.env,.env.*,.npmrc,pnpm-lock.yaml}'
- '!{tsconfig.json,tsconfig.node.json,tsconfig.web.json}'
asarUnpack:
- 'resources/**'
win:
executableName: app
nsis:
artifactName: ${name}-${version}-setup.${ext}
shortcutName: ${productName}
uninstallDisplayName: ${productName}
createDesktopShortcut: always
mac:
entitlementsInherit: build/entitlements.mac.plist
icon: build/icon.png
extendInfo:
- NSCameraUsageDescription: Application requests access to the device's camera.
- NSMicrophoneUsageDescription: Application requests access to the device's microphone.
- NSDocumentsFolderUsageDescription: Application requests access to the user's Documents folder.
- NSDownloadsFolderUsageDescription: Application requests access to the user's Downloads folder.
notarize: false
dmg:
artifactName: ${name}-${version}.${ext}
linux:
target:
- AppImage
- snap
- deb
maintainer: electronjs.org
category: Utility
appImage:
artifactName: ${name}-${version}.${ext}
npmRebuild: false
publish: null
23 changes: 23 additions & 0 deletions electron.vite.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { resolve } from 'path'
import { defineConfig, externalizeDepsPlugin } from 'electron-vite'
import react from '@vitejs/plugin-react'

export default defineConfig({
main: {
plugins: [externalizeDepsPlugin()]
},
preload: {
plugins: [externalizeDepsPlugin()]
},
renderer: {
build: {
assetsInlineLimit: 0
},
resolve: {
alias: {
'@renderer': resolve('src/renderer/src')
}
},
plugins: [react()]
}
})
121 changes: 0 additions & 121 deletions main/background.ts

This file was deleted.

91 changes: 0 additions & 91 deletions main/helpers/create-window.ts

This file was deleted.

5 changes: 0 additions & 5 deletions main/helpers/index.ts

This file was deleted.

78 changes: 51 additions & 27 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,39 +1,63 @@
{
"private": true,
"name": "wled-manager",
"version": "0.2.0",
"description": "WLED Manager by Blade",
"version": "0.1.0",
"author": "YeonV aka Blade <https://github.com/YeonV>",
"main": "app/background.js",
"main": "./out/main/index.js",
"author": {
"name": "YeonV aka Blade <https://github.com/YeonV>",
"email": "dev@yeonv.com"
},
"homepage": "https://electron-vite.org",
"license": "MIT",
"scripts": {
"dev": "nextron",
"build": "nextron build",
"dist": "electron-builder -w zip -w portable -w nsis",
"postinstall": "electron-builder install-app-deps"
"format": "prettier --write .",
"lint": "eslint . --ext .js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix",
"typecheck:node": "tsc --noEmit -p tsconfig.node.json --composite false",
"typecheck:web": "tsc --noEmit -p tsconfig.web.json --composite false",
"typecheck": "npm run typecheck:node && npm run typecheck:web",
"start": "electron-vite preview",
"dev": "electron-vite dev",
"build": "npm run typecheck && electron-vite build",
"postinstall": "electron-builder install-app-deps",
"build:win": "npm run build && electron-builder --win --config",
"build:mac": "electron-vite build && electron-builder --mac --config",
"build:linux": "electron-vite build && electron-builder --linux --config"
},
"dependencies": {
"@types/bonjour": "^3.5.9",
"@electron-toolkit/preload": "^2.0.0",
"@electron-toolkit/utils": "^2.0.0",
"@emotion/react": "^11.11.1",
"@emotion/styled": "^11.11.0",
"@fontsource/roboto": "^5.0.8",
"@mui/icons-material": "^5.14.16",
"@mui/material": "^5.14.16",
"@mui/styles": "^5.14.16",
"bonjour": "^3.5.0",
"custom-electron-titlebar": "^3.2.7",
"custom-electron-titlebar": "^4.2.7",
"dgram-as-promised": "^5.0.1",
"electron-serve": "^1.1.0",
"electron-store": "^8.0.0",
"react-colorful": "^5.5.0",
"react-gcolor-picker": "^1.2.4",
"zustand": "^3.5.11"
"react-colorful": "^5.6.1",
"react-gcolor-picker": "^1.3.1",
"react-router-dom": "^6.18.0",
"zustand": "^4.4.6"
},
"devDependencies": {
"@material-ui/core": "^4.12.2",
"@material-ui/icons": "^4.11.2",
"@types/node": "^14.14.31",
"@types/react": "^16.9.49",
"electron": "^13.1.7",
"electron-builder": "^22.11.7",
"electron-devtools-installer": "^3.2.0",
"next": "^11.0.1",
"nextron": "^7.0.0",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"typescript": "^4.3.5"
"@electron-toolkit/eslint-config-prettier": "^1.0.1",
"@electron-toolkit/eslint-config-ts": "^1.0.0",
"@electron-toolkit/tsconfig": "^1.0.1",
"@types/bonjour": "^3.5.12",
"@types/node": "^20.8.10",
"@types/react": "^18.2.35",
"@types/react-dom": "^18.2.14",
"@vitejs/plugin-react": "^4.0.4",
"electron": "^27.0.3",
"electron-builder": "^24.6.3",
"electron-vite": "^1.0.27",
"eslint": "^8.53.0",
"eslint-plugin-react": "^7.33.2",
"prettier": "^3.0.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"typescript": "^5.1.6",
"vite": "^4.4.9"
}
}
Loading

0 comments on commit 11e40ab

Please sign in to comment.