Skip to content

Commit 90e0f5a

Browse files
committed
Initial Commit
0 parents  commit 90e0f5a

37 files changed

+15649
-0
lines changed

.eslintrc.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"es6": true,
5+
"node": true
6+
},
7+
"extends": [
8+
"eslint:recommended",
9+
"plugin:@typescript-eslint/eslint-recommended",
10+
"plugin:@typescript-eslint/recommended",
11+
"plugin:import/recommended",
12+
"plugin:import/electron",
13+
"plugin:import/typescript"
14+
],
15+
"parser": "@typescript-eslint/parser"
16+
}

.gitignore

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
lerna-debug.log*
8+
9+
# Diagnostic reports (https://nodejs.org/api/report.html)
10+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
11+
12+
# Runtime data
13+
pids
14+
*.pid
15+
*.seed
16+
*.pid.lock
17+
.DS_Store
18+
19+
# Directory for instrumented libs generated by jscoverage/JSCover
20+
lib-cov
21+
22+
# Coverage directory used by tools like istanbul
23+
coverage
24+
*.lcov
25+
26+
# nyc test coverage
27+
.nyc_output
28+
29+
# node-waf configuration
30+
.lock-wscript
31+
32+
# Compiled binary addons (https://nodejs.org/api/addons.html)
33+
build/Release
34+
35+
# Dependency directories
36+
node_modules/
37+
jspm_packages/
38+
39+
# TypeScript v1 declaration files
40+
typings/
41+
42+
# TypeScript cache
43+
*.tsbuildinfo
44+
45+
# Optional npm cache directory
46+
.npm
47+
48+
# Optional eslint cache
49+
.eslintcache
50+
51+
# Optional REPL history
52+
.node_repl_history
53+
54+
# Output of 'npm pack'
55+
*.tgz
56+
57+
# Yarn Integrity file
58+
.yarn-integrity
59+
60+
# dotenv environment variables file
61+
.env
62+
.env.test
63+
64+
# parcel-bundler cache (https://parceljs.org/)
65+
.cache
66+
67+
# next.js build output
68+
.next
69+
70+
# nuxt.js build output
71+
.nuxt
72+
73+
# vuepress build output
74+
.vuepress/dist
75+
76+
# Serverless directories
77+
.serverless/
78+
79+
# FuseBox cache
80+
.fusebox/
81+
82+
# DynamoDB Local files
83+
.dynamodb/
84+
85+
# Webpack
86+
.webpack/
87+
88+
# Vite
89+
.vite/
90+
91+
# Electron-Forge
92+
out/
93+
94+
database

README.MD

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# 🚧 Work In Progress
2+
3+
This project is currently **under development**.
4+
5+
Check back soon for updates! ✨

forge.config.ts

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
import type { ForgeConfig } from '@electron-forge/shared-types';
2+
import { MakerSquirrel } from '@electron-forge/maker-squirrel';
3+
import { MakerZIP } from '@electron-forge/maker-zip';
4+
import { MakerDeb } from '@electron-forge/maker-deb';
5+
import { MakerRpm } from '@electron-forge/maker-rpm';
6+
import { AutoUnpackNativesPlugin } from '@electron-forge/plugin-auto-unpack-natives';
7+
import { WebpackPlugin } from '@electron-forge/plugin-webpack';
8+
import { FusesPlugin } from '@electron-forge/plugin-fuses';
9+
import { FuseV1Options, FuseVersion } from '@electron/fuses';
10+
import path from 'path';
11+
import { mainConfig } from './webpack.main.config';
12+
import { rendererConfig } from './webpack.renderer.config';
13+
14+
const config: ForgeConfig = {
15+
packagerConfig: {
16+
asar: true,
17+
},
18+
rebuildConfig: {},
19+
makers: [
20+
new MakerSquirrel({}),
21+
new MakerZIP({}, ['darwin']),
22+
new MakerRpm({}),
23+
new MakerDeb({}),
24+
],
25+
plugins: [
26+
new AutoUnpackNativesPlugin({}),
27+
new WebpackPlugin({
28+
mainConfig,
29+
renderer: {
30+
config: rendererConfig,
31+
entryPoints: [
32+
{
33+
html: './src/index.html',
34+
js: './src/renderer.ts',
35+
name: 'main_window',
36+
preload: {
37+
js: './src/preload.ts',
38+
},
39+
},
40+
],
41+
},
42+
devContentSecurityPolicy:
43+
"default-src 'self' 'unsafe-inline' static:; script-src 'self' 'unsafe-eval' 'unsafe-inline';",
44+
}),
45+
// Fuses are used to enable/disable various Electron functionality
46+
// at package time, before code signing the application
47+
new FusesPlugin({
48+
version: FuseVersion.V1,
49+
[FuseV1Options.RunAsNode]: false,
50+
[FuseV1Options.EnableCookieEncryption]: true,
51+
[FuseV1Options.EnableNodeOptionsEnvironmentVariable]: false,
52+
[FuseV1Options.EnableNodeCliInspectArguments]: false,
53+
[FuseV1Options.EnableEmbeddedAsarIntegrityValidation]: true,
54+
[FuseV1Options.OnlyLoadAppFromAsar]: true,
55+
}),
56+
],
57+
};
58+
59+
export default config;

0 commit comments

Comments
 (0)