Skip to content
This repository was archived by the owner on Sep 3, 2021. It is now read-only.
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.min.js
24 changes: 24 additions & 0 deletions AhMyth-Server/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
module.exports = {
env: {
browser: true,
commonjs: true,
es2020: true,
node: true,
},
extends: [
'airbnb-base',
],
parserOptions: {
ecmaVersion: 11,
},
rules: {
indent: ['error', 4],
quotes: ['error', 'single'],
},
globals: {
angulaer: 'writable',
electron: 'writable',
$appCtrl: 'writable',
logStatus: 'writable',
},
};
16 changes: 9 additions & 7 deletions AhMyth-Server/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"main": "./app/main.js",
"devDependencies": {
"electron": "1.6.11"
"electron": "1.6.11",
"eslint": "^7.7.0",
"eslint-config-airbnb-base": "^14.2.0",
"eslint-plugin-import": "^2.22.0"
},
"license": "GNU GPLv3",
"build": {
Expand All @@ -13,7 +16,9 @@
"asarUnpack": "**/app/Factory/**/*"
},
"scripts": {
"start": "electron ./app",
"start": "npx electron ./app",
"lint": "npx eslint ./app",
"lint:fix": "npx eslint ./app --fix --ignore-pattern *.min.*",
"clean": "rm -rf ./dist",
"pack": "npm run pack:linux32 && npm run pack:linux64 && npm run pack:win32 && npm run pack:win64",
"pack:linux32": "electron-packager ./app $npm_package_name --out=dist/ --platform=linux --arch=ia32 --electron-version=1.6.11 --overwrite",
Expand All @@ -24,10 +29,7 @@
"build:linux": "npm run build:linux32 && npm run build:linux64",
"build:linux32": "build --linux deb --ia32",
"build:linux64": "build --linux deb --x64",
"build:win": "npm run build:win32 && npm run build:win64",
"build:win32": "build --win --ia32",
"build:win64": "build --win --x64"

"build:win": "npm run build:win32 && npm run build:win64"
}

}
}