feat: install electron-forge and define build process

This commit is contained in:
Xymorot 2019-07-26 22:28:22 +02:00
parent f2d3d7bd1b
commit 61b4bf2cdb
5 changed files with 2220 additions and 1008 deletions

View File

@ -11,7 +11,7 @@
},
"rules": {
"no-shadow": "warn",
"no-magic-numbers": "warn",
"no-magic-numbers": ["warn", { "ignore": [0, 1, -1] }],
"no-param-reassign": "warn"
}
}

12
.gitignore vendored
View File

@ -2,8 +2,12 @@
node_modules
# generated code
dist
frontend
/dist
/frontend
# databases
database
# managed by application
/database
/store
# built app
/out

33
forge.config.js Normal file
View File

@ -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',
},
],
};

3141
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,7 @@
{
"name": "renai",
"version": "1.0.0",
"description": ".",
"description": "Hentai Library Thingy",
"private": true,
"author": "Xymorot",
"main": "dist/main.js",
@ -19,38 +19,44 @@
"tslint-check": "tslint-config-prettier-check ./tslint.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: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": {
"@electron-forge/cli": "^6.0.0-beta.43",
"@electron-forge/maker-squirrel": "^6.0.0-beta.43",
"@types/jsdom": "latest",
"@types/node-fetch": "latest",
"@types/tough-cookie": "latest",
"@types/webpack": "latest",
"electron": "^5.0.6",
"@types/node-fetch": "^2.5.0",
"@types/webpack": "^4.32.1",
"electron": "^5.0.8",
"electron-rebuild": "^1.8.5",
"eslint": "latest",
"eslint": "^6.1.0",
"eslint-config-prettier": "latest",
"eslint-plugin-prettier": "latest",
"gulp": "^4.0.2",
"gulp-cli": "^2.2.0",
"gulp-sourcemaps": "^2.6.5",
"gulp-typescript": "^5.0.1",
"jsdom": "^15.1.1",
"node-fetch": "^2.6.0",
"prettier": "latest",
"sqlite3": "^4.0.9",
"svelte": "^3.6.3",
"svelte-loader": "^2.13.4",
"tough-cookie": "^3.0.1",
"svelte": "^3.6.9",
"svelte-loader": "^2.13.5",
"ts-loader": "^6.0.4",
"tslint": "latest",
"tslint-config-prettier": "latest",
"tslint-plugin-prettier": "latest",
"typeorm": "^0.2.18",
"typescript": "^3.5.2",
"typescript": "^3.5.3",
"typescript-tslint-plugin": "latest",
"webpack": "^4.35.2",
"webpack": "^4.38.0",
"webpack-cli": "^3.3.5"
},
"config": {
"forge": "forge.config.js"
}
}