Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
Aetherinox committed Jul 24, 2024
1 parent 83ebf54 commit 5b7afdb
Show file tree
Hide file tree
Showing 7 changed files with 654 additions and 913 deletions.
37 changes: 37 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"plugins": ["prettier"],
"extends": [
"semistandard"
],
"env": {
"node": true,
"jest": true
},
"rules": {
"space-before-function-paren": 0,
"no-control-regex": 0,
"no-console": 1,
"no-var": 2,
"prefer-const": 1,
"no-prototype-builtins": 0,
"no-useless-escape": 1,
"comma-dangle": 0,
"keyword-spacing": ["error", { "before": true, "after": true }],
"comma-spacing": ["error", { "before": false, "after": true }],
"indent": 0,
"prefer-spread": 1,
"no-mixed-operators": 1,
"prettier/prettier": 1,
"camelcase": ["error", {
"allow": ["^UNSAFE_"],
"properties": "never",
"ignoreGlobals": true
}],
"quotes": [
"error", "single", {
"avoidEscape": true,
"allowTemplateLiterals": true
}
],
}
}
193 changes: 45 additions & 148 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,31 @@
/*

# ----------------------------------------
# [WL]: NodeJS > Electron
# [WL]: Git Base Folders/Files
# ----------------------------------------
!/.github
!/.gitea
!*README.md
!*LICENSE.md
!*LICENSE
!*CHANGELOG.md
!*CONTRIBUTE.md
!*CONTRIBUTING.md
!*CODE_OF_CONDUCT.md
!*DECISION_FLOW.md

# ----------------------------------------
# [WL]: Electron
# ----------------------------------------
!/electron

# ----------------------------------------
# [WL]: Visual Studio
# [WL]: Tests
# ----------------------------------------
!/Classes
!/Controls
!/Forms
!/Materials
!/Properties
!*app.*
!*csproj*
!*sln*
!/Tests
!/test
!/example
!*playwright.config.js

# ----------------------------------------
# [WL]: Manifest Folders
Expand All @@ -31,167 +41,54 @@
!/Tools

# ----------------------------------------
# [WL]: Gitignore File
# [WL]: vendor
# ----------------------------------------
!*.gitignore
!/vendor

# ----------------------------------------
# [WL]: Docs / assets
# [WL]: assets
# ----------------------------------------
!/docs
!/assets
!/pages

# ----------------------------------------
# [WL]: Source Folder
# ----------------------------------------
!/src
!/source
!/target
!/lib
!/notifiers

# ----------------------------------------
# [WL]: Dist Folder
# [WL]: Gitignore File
# ----------------------------------------
!/bin
!/release
!.gitignore

# ----------------------------------------
# [WL]: Test Folder
# [WL]: Docs Folder
# ----------------------------------------
!/Tests
!/Test
!/example
!*playwright.config.js
!/docs
!/pages

# ----------------------------------------
# [WL]: Util / vendor
# [WL]: Source Folder
# ----------------------------------------
!/util
!/vendor
!/src
!/lib
!/notifiers

# ----------------------------------------
# [WL]: Base Files
# ----------------------------------------
!*.prettierrc
!*.prettierignore
!*.eslintrc
!*.npmignore
!*.all-contributorsrc
!*.editorconfig
!*ntfy.js
!*index.js
!*manifest.json
!*versions.json
!*styles.css

# ----------------------------------------
# [WL]: npm release
# ----------------------------------------
!*package*.json
!*attribution.js
!*jsconfig.json
!*postcss.config.js
!*webpack.config.js

# ----------------------------------------
# [WL]: Git Base Folders/Files
# ----------------------------------------
!*.md
!/.github
!/.gitea
!*LICENSE*
!*README*
!*CHANGELOG*
!*CONTRIBUTE*
!*CONTRIBUTING*
!*CODE_OF_CONDUCT*
!*DEPS-LICENSE*
!*DECISION_FLOW*
!*SECURITY*
!tree*
!*release-notes

# ----------------------------------------
# [WL]: Misc
# ----------------------------------------
!*.js
!*.ts
!*.css
!*.sh
!*.tgz
!*.ico
!*.conf
!*.bat
!*.xml
!*.html

# ----------------------------------------
# [WL]: NodeJS > NPM
# ----------------------------------------
!.nvmrc
!.nvmrc
!.node-version
!.npmignore

# ----------------------------------------
# [WL]: NodeJS > Babel
# ----------------------------------------
!*.babelrc
!*.babel*

# ----------------------------------------
# [WL]: NodeJS > Eslint
# ----------------------------------------
!*eslint.config.js
!*eslintrc.*
!*.eslintrc*

# ----------------------------------------
# [WL]: NodeJS > Prettier
# ----------------------------------------
!*.prettierignore
!*.prettierrc
!*prettier.config.js

# ----------------------------------------
# [WL]: NodeJS > Grunt
# ----------------------------------------
!*gruntfile.*
!*grunt.*
!*Gruntfile*

# ----------------------------------------
# [WL]: NodeJS > Jest
# ----------------------------------------
!*jest.config.js

# ----------------------------------------
# [WL]: NodeJS > Wrangler
# ----------------------------------------
!*wrangler.toml

# ----------------------------------------
# [WL]: NodeJS > Typescript
# ----------------------------------------
!*typescript.js
!*tsconfig.json
vitest.workspace.ts

# ----------------------------------------
# [WL]: NodeJS > Rollup
# ----------------------------------------
!*package.json
!*package-lock.json
!*rollup.config.js
!*rollup.config.mjs

# ----------------------------------------
# [WL]: Github > Development Actions
# ----------------------------------------
!*action.yml

# ----------------------------------------
# [WL]: VSC
# ----------------------------------------
!*jsconfig.json

# ----------------------------------------
# [WL]: Signing
# ----------------------------------------
!*tsconfig.json
!*versions.json
!sign.bat
!*SHA*.asc
!*SHA*.sig
!*styles.css
!*.sh
!*.bat
2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ useTabs: false
# @default : true
# @ref : https://prettier.io/docs/en/options.html#semicolons
# --------------------------------------------------------------------------------------
semi: false
semi: true

# --------------------------------------------------------------------------------------
# Use single quotes instead of double quotes.
Expand Down
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ FileDescription='ntfy desktop client with Electron wrapper'
ProductName='ntfy desktop'
OriginalFilename='ntfy-desktop.exe'
CompanyName='https://github.com/xdpirate/ntfy-electron'
IgnorePattern='(^/${dir_dist}|^/${dir_build}|^/.github*|/test-*|/tests*|^/playwright*|.all-contributorsrc|.editorconfig|.eslintrc|^/.git*|^.git*|.npm*|.prettier*|CONTRIBUTING.md|CODE_OF_CONDUCT.md|README|README.md|readme.md|LICENSE|license|LICENSE.md|CHANGELOG|CHANGELOG.md)"'
IgnorePattern='(^/!dir_dist!|^/!dir_build!|^/.github*|/test-*|/tests*|^/playwright*|.all-contributorsrc|.editorconfig|.eslintrc|^/.git*|^.git*|.npm*|.prettier*|CONTRIBUTING.md|CODE_OF_CONDUCT.md|README|README.md|readme.md|LICENSE|license|LICENSE.md|CHANGELOG|CHANGELOG.md)"'
IconWindows='assets/icons/ntfy.ico'
IconLinux='assets/icons/ntfy.png'
IconMacOS='assets/icons/ntfy.icns'
Expand Down
Loading

0 comments on commit 5b7afdb

Please sign in to comment.