-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update packages to electron 32 (#182)
* Remove minor TS warnings * Temporarily remove eslint from dependencies It has some sort of node requirement which prevents upgrading anything else. * Upgrade all packages to latest * Update date-fns calls to new version * Remove asset loading in main process WebPack config The main process should have no assets. * Downgrade webpack-asset-relocator-loader to 1.7.3 See electron/forge#3600 * Fix calls to formatDistanceToNow by fixing definitions of timestamps updatedAt and gitnewsSeenAt are quite different and their types were wrong. * Install octokit * Update tests to remove chai and sinon * Remove chai and sinon * Set node version in GH actions * Fix TS errors in middleware * Remove octokit * Add semver types * Downgrade electron-store to 8.2 This prevents the issue described here: sindresorhus/electron-store#276 The recommended solution that issue is to convert the entire project to ESM, which I've attempted in #183, but it doesn't seem to work because of incompatibilities between Webpack and Electron Forge that I haven't been able to resolve. So for now I'm just going to downgrade. (The app works fine with or without the errors.) * Ignore extras directory
- Loading branch information
1 parent
9fc1809
commit 7fe279a
Showing
21 changed files
with
3,966 additions
and
5,551 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
.env | ||
extras | ||
node_modules | ||
dist | ||
icon-experiments | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
yarn lint-staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,116 +1,91 @@ | ||
{ | ||
"name": "gitnews-menubar", | ||
"version": "1.9.0", | ||
"description": "GitHub notifications in your menu bar", | ||
"productName": "Gitnews", | ||
"main": ".webpack/main", | ||
"scripts": { | ||
"start": "electron-forge start", | ||
"dist-clean": "rm -rf dist && rm -rf node_modules", | ||
"prepare-release": "npm run dist-clean && npm run build", | ||
"build": "yarn && yarn make", | ||
"test": "jest", | ||
"typecheck": "yarn tsc --noEmit", | ||
"package": "electron-forge package", | ||
"make": "electron-forge make" | ||
}, | ||
"keywords": [ | ||
"menu", | ||
"github", | ||
"notifications" | ||
], | ||
"author": "Payton Swick <[email protected]>", | ||
"license": "MIT", | ||
"dependencies": { | ||
"@typescript-eslint/eslint-plugin": "^5.47.0", | ||
"@typescript-eslint/parser": "^5.47.0", | ||
"date-fns": "^1.30.1", | ||
"debug": "^4.3.1", | ||
"dotenv": "^16.0.3", | ||
"easy-auto-launch": "^6.0.2", | ||
"electron-debug": "^3.1.0", | ||
"electron-is-dev": "^1.2.0", | ||
"electron-log": "^4.4.8", | ||
"electron-squirrel-startup": "^1.0.0", | ||
"electron-store": "^8.1.0", | ||
"electron-unhandled": "^4.0.1", | ||
"eslint-config-react-typescript": "^1.0.10", | ||
"eslint-plugin-import": "^2.26.0", | ||
"gitnews": "^3.1.3", | ||
"gridicons": "^3.3.1", | ||
"jest": "^29.3.1", | ||
"jest-environment-jsdom": "^29.3.1", | ||
"menubar": "^9.2.3", | ||
"react": "^16.13.1", | ||
"react-dom": "^16.13.1", | ||
"react-redux": "^5.1.2", | ||
"redux": "^4.0.5", | ||
"redux-logger": "^3.0.6", | ||
"redux-persist": "^6.0.0", | ||
"semver": "^7.5.2", | ||
"source-map-support": "^0.5.19" | ||
}, | ||
"devDependencies": { | ||
"@babel/plugin-proposal-class-properties": "^7.18.6", | ||
"@babel/plugin-transform-runtime": "^7.19.6", | ||
"@babel/preset-react": "^7.18.6", | ||
"@babel/preset-typescript": "^7.18.6", | ||
"@electron-forge/cli": "^6.0.4", | ||
"@electron-forge/maker-deb": "^6.0.4", | ||
"@electron-forge/maker-rpm": "^6.0.4", | ||
"@electron-forge/maker-squirrel": "^6.0.4", | ||
"@electron-forge/maker-zip": "^6.0.4", | ||
"@electron-forge/plugin-webpack": "^6.0.4", | ||
"@types/debug": "^4.1.7", | ||
"@types/react": "^18.0.26", | ||
"@types/react-dom": "^18.0.9", | ||
"@types/react-redux": "^7.1.24", | ||
"@types/redux-logger": "^3.0.9", | ||
"@vercel/webpack-asset-relocator-loader": "1.7.3", | ||
"chai": "^4.0.0", | ||
"chai-sinon": "^2.8.1", | ||
"copy-webpack-plugin": "^11.0.0", | ||
"electron": "^22.3.25", | ||
"electron-react-devtools": "^0.5.3", | ||
"electron-webpack": "^2.8.2", | ||
"eslint": "^8.30.0", | ||
"eslint-config-prettier": "^6.11.0", | ||
"eslint-config-wpcalypso": "^4.0.1", | ||
"eslint-plugin-prettier": "^3.1.4", | ||
"eslint-plugin-react": "^7.20.5", | ||
"eslint-plugin-react-hooks": "^2.5.1", | ||
"eslint-plugin-wpcalypso": "^4.1.0", | ||
"husky": "^4.2.5", | ||
"lint-staged": "^10.2.11", | ||
"node-loader": "^2.0.0", | ||
"prettier": "^2.8.1", | ||
"sinon": "^7.5.0", | ||
"ts-loader": "^9.4.2", | ||
"typescript": "^4.9.4", | ||
"webpack": "^5.94.0" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/sirbrillig/gitnews-menubar.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/sirbrillig/gitnews-menubar/issues" | ||
}, | ||
"homepage": "https://github.com/sirbrillig/gitnews-menubar#readme", | ||
"electronWebpack": { | ||
"renderer": { | ||
"template": "src/renderer/index.html" | ||
} | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "lint-staged" | ||
} | ||
}, | ||
"lint-staged": { | ||
"*.{js,ts,tsx}": [ | ||
"eslint --fix", | ||
"prettier --write" | ||
] | ||
} | ||
"name": "gitnews-menubar", | ||
"version": "1.9.0", | ||
"description": "GitHub notifications in your menu bar", | ||
"productName": "Gitnews", | ||
"main": ".webpack/main", | ||
"scripts": { | ||
"start": "electron-forge start", | ||
"dist-clean": "rm -rf dist && rm -rf node_modules", | ||
"prepare-release": "npm run dist-clean && npm run build", | ||
"build": "yarn && yarn make", | ||
"test": "jest", | ||
"typecheck": "yarn tsc --noEmit", | ||
"package": "electron-forge package", | ||
"make": "electron-forge make" | ||
}, | ||
"keywords": ["menu", "github", "notifications"], | ||
"author": "Payton Swick <[email protected]>", | ||
"license": "MIT", | ||
"dependencies": { | ||
"@types/semver": "^7.5.8", | ||
"date-fns": "^3.6.0", | ||
"debug": "^4.3.7", | ||
"dotenv": "^16.4.5", | ||
"easy-auto-launch": "^6.0.2", | ||
"electron-debug": "^4.0.1", | ||
"electron-is-dev": "^3.0.1", | ||
"electron-log": "^5.2.0", | ||
"electron-squirrel-startup": "^1.0.1", | ||
"electron-store": "^8.2.0", | ||
"electron-unhandled": "^5.0.0", | ||
"gitnews": "^3.1.3", | ||
"gridicons": "^3.4.2", | ||
"jest": "^29.7.0", | ||
"jest-environment-jsdom": "^29.7.0", | ||
"menubar": "^9.5.0", | ||
"react": "^18.3.1", | ||
"react-dom": "^18.3.1", | ||
"react-redux": "^9.1.2", | ||
"redux": "^5.0.1", | ||
"redux-logger": "^3.0.6", | ||
"redux-persist": "^6.0.0", | ||
"semver": "^7.6.3", | ||
"source-map-support": "^0.5.19" | ||
}, | ||
"devDependencies": { | ||
"@babel/plugin-proposal-class-properties": "^7.18.6", | ||
"@babel/plugin-transform-runtime": "^7.25.4", | ||
"@babel/preset-react": "^7.24.7", | ||
"@babel/preset-typescript": "^7.24.7", | ||
"@electron-forge/cli": "^7.4.0", | ||
"@electron-forge/maker-deb": "^7.4.0", | ||
"@electron-forge/maker-rpm": "^7.4.0", | ||
"@electron-forge/maker-squirrel": "^7.4.0", | ||
"@electron-forge/maker-zip": "^7.4.0", | ||
"@electron-forge/plugin-webpack": "^7.4.0", | ||
"@types/debug": "^4.1.12", | ||
"@types/react": "^18.3.5", | ||
"@types/react-dom": "^18.3.0", | ||
"@types/react-redux": "^7.1.33", | ||
"@types/redux-logger": "^3.0.13", | ||
"@vercel/webpack-asset-relocator-loader": "1.7.3", | ||
"copy-webpack-plugin": "^12.0.2", | ||
"electron": "^32.0.2", | ||
"electron-react-devtools": "^0.5.3", | ||
"electron-webpack": "^2.8.2", | ||
"husky": "^9.1.5", | ||
"lint-staged": "^15.2.10", | ||
"node-loader": "^2.0.0", | ||
"prettier": "^3.3.3", | ||
"ts-loader": "^9.5.1", | ||
"typescript": "^5.5.4", | ||
"webpack": "^5.94.0" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/sirbrillig/gitnews-menubar.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/sirbrillig/gitnews-menubar/issues" | ||
}, | ||
"homepage": "https://github.com/sirbrillig/gitnews-menubar#readme", | ||
"electronWebpack": { | ||
"renderer": { | ||
"template": "src/renderer/index.html" | ||
} | ||
}, | ||
"lint-staged": { | ||
"*.{js,ts,tsx}": ["prettier --write"] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.