feat: install electron-forge and define build process
This commit is contained in:
parent
f2d3d7bd1b
commit
61b4bf2cdb
|
@ -11,7 +11,7 @@
|
||||||
},
|
},
|
||||||
"rules": {
|
"rules": {
|
||||||
"no-shadow": "warn",
|
"no-shadow": "warn",
|
||||||
"no-magic-numbers": "warn",
|
"no-magic-numbers": ["warn", { "ignore": [0, 1, -1] }],
|
||||||
"no-param-reassign": "warn"
|
"no-param-reassign": "warn"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,8 +2,12 @@
|
||||||
node_modules
|
node_modules
|
||||||
|
|
||||||
# generated code
|
# generated code
|
||||||
dist
|
/dist
|
||||||
frontend
|
/frontend
|
||||||
|
|
||||||
# databases
|
# managed by application
|
||||||
database
|
/database
|
||||||
|
/store
|
||||||
|
|
||||||
|
# built app
|
||||||
|
/out
|
||||||
|
|
|
@ -0,0 +1,33 @@
|
||||||
|
const ignoreList = [
|
||||||
|
/^\/\.idea($|\/)/,
|
||||||
|
/^\/\.vscode($|\/)/,
|
||||||
|
/^\/database($|\/)/,
|
||||||
|
/^\/node_modules\/\.cache($|\/)/,
|
||||||
|
/^\/src($|\/)/,
|
||||||
|
/^\/store($|\/)/,
|
||||||
|
/^\/\.editorconfig/,
|
||||||
|
/^\/\.eslintignore/,
|
||||||
|
/^\/\.eslintrc\.json/,
|
||||||
|
/^\/\.gitignore/,
|
||||||
|
/^\/\.prettierrc\.yml/,
|
||||||
|
/^\/forge.config\.js/,
|
||||||
|
/^\/gulpfile\.js/,
|
||||||
|
/^\/tsconfig\.json/,
|
||||||
|
/^\/tslint\.json/,
|
||||||
|
/^\/webpack\.config\.js/,
|
||||||
|
];
|
||||||
|
|
||||||
|
module.exports = {
|
||||||
|
packagerConfig: {
|
||||||
|
icon: 'resources/icon',
|
||||||
|
ignore: ignoreList,
|
||||||
|
},
|
||||||
|
electronRebuildConfig: {
|
||||||
|
force: true,
|
||||||
|
},
|
||||||
|
makers: [
|
||||||
|
{
|
||||||
|
name: '@electron-forge/maker-squirrel',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
};
|
File diff suppressed because it is too large
Load Diff
40
package.json
40
package.json
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "renai",
|
"name": "renai",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": ".",
|
"description": "Hentai Library Thingy",
|
||||||
"private": true,
|
"private": true,
|
||||||
"author": "Xymorot",
|
"author": "Xymorot",
|
||||||
"main": "dist/main.js",
|
"main": "dist/main.js",
|
||||||
|
@ -19,38 +19,44 @@
|
||||||
"tslint-check": "tslint-config-prettier-check ./tslint.json",
|
"tslint-check": "tslint-config-prettier-check ./tslint.json",
|
||||||
"tslint": "tslint -t stylish -c tslint.json -p tsconfig.json",
|
"tslint": "tslint -t stylish -c tslint.json -p tsconfig.json",
|
||||||
"prettier": "prettier --ignore-path .gitignore -c **/*.{html,json,{c,sc,sa,le}ss,yml,svelte,md,ts,js}",
|
"prettier": "prettier --ignore-path .gitignore -c **/*.{html,json,{c,sc,sa,le}ss,yml,svelte,md,ts,js}",
|
||||||
"prettier:write": "prettier --ignore-path .gitignore --write **/*.{html,json,{c,sc,sa,le}ss,yml,svelte,md,ts,js}"
|
"prettier:write": "prettier --ignore-path .gitignore --write **/*.{html,json,{c,sc,sa,le}ss,yml,svelte,md,ts,js}",
|
||||||
|
"forge:start": "electron-forge start",
|
||||||
|
"forge:make": "electron-forge --platform win32 --arch x64 make"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"jsdom": "^15.1.1",
|
||||||
|
"node-fetch": "^2.6.0",
|
||||||
|
"sqlite3": "^4.0.9",
|
||||||
|
"typeorm": "^0.2.18"
|
||||||
},
|
},
|
||||||
"dependencies": {},
|
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@electron-forge/cli": "^6.0.0-beta.43",
|
||||||
|
"@electron-forge/maker-squirrel": "^6.0.0-beta.43",
|
||||||
"@types/jsdom": "latest",
|
"@types/jsdom": "latest",
|
||||||
"@types/node-fetch": "latest",
|
"@types/node-fetch": "^2.5.0",
|
||||||
"@types/tough-cookie": "latest",
|
"@types/webpack": "^4.32.1",
|
||||||
"@types/webpack": "latest",
|
"electron": "^5.0.8",
|
||||||
"electron": "^5.0.6",
|
|
||||||
"electron-rebuild": "^1.8.5",
|
"electron-rebuild": "^1.8.5",
|
||||||
"eslint": "latest",
|
"eslint": "^6.1.0",
|
||||||
"eslint-config-prettier": "latest",
|
"eslint-config-prettier": "latest",
|
||||||
"eslint-plugin-prettier": "latest",
|
"eslint-plugin-prettier": "latest",
|
||||||
"gulp": "^4.0.2",
|
"gulp": "^4.0.2",
|
||||||
"gulp-cli": "^2.2.0",
|
"gulp-cli": "^2.2.0",
|
||||||
"gulp-sourcemaps": "^2.6.5",
|
"gulp-sourcemaps": "^2.6.5",
|
||||||
"gulp-typescript": "^5.0.1",
|
"gulp-typescript": "^5.0.1",
|
||||||
"jsdom": "^15.1.1",
|
|
||||||
"node-fetch": "^2.6.0",
|
|
||||||
"prettier": "latest",
|
"prettier": "latest",
|
||||||
"sqlite3": "^4.0.9",
|
"svelte": "^3.6.9",
|
||||||
"svelte": "^3.6.3",
|
"svelte-loader": "^2.13.5",
|
||||||
"svelte-loader": "^2.13.4",
|
|
||||||
"tough-cookie": "^3.0.1",
|
|
||||||
"ts-loader": "^6.0.4",
|
"ts-loader": "^6.0.4",
|
||||||
"tslint": "latest",
|
"tslint": "latest",
|
||||||
"tslint-config-prettier": "latest",
|
"tslint-config-prettier": "latest",
|
||||||
"tslint-plugin-prettier": "latest",
|
"tslint-plugin-prettier": "latest",
|
||||||
"typeorm": "^0.2.18",
|
"typescript": "^3.5.3",
|
||||||
"typescript": "^3.5.2",
|
|
||||||
"typescript-tslint-plugin": "latest",
|
"typescript-tslint-plugin": "latest",
|
||||||
"webpack": "^4.35.2",
|
"webpack": "^4.38.0",
|
||||||
"webpack-cli": "^3.3.5"
|
"webpack-cli": "^3.3.5"
|
||||||
|
},
|
||||||
|
"config": {
|
||||||
|
"forge": "forge.config.js"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue