[PR #2880] [MERGED] :electron: Electron package Typescript starting point #30492

Closed
opened 2026-04-18 06:50:21 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/2880
Author: @MikesGlitch
Created: 6/14/2024
Status: Merged
Merged: 7/3/2024
Merged by: @MatissJanis

Base: masterHead: maintenance/ts-electron


📝 Commits (10+)

📊 Changes

8 files changed (+181 additions, -66 deletions)

View changed files

📝 .gitignore (+1 -0)
📝 packages/desktop-electron/bin/update-client (+7 -6)
📝 packages/desktop-electron/index.ts (+52 -46)
📝 packages/desktop-electron/menu.js (+3 -3)
📝 packages/desktop-electron/package.json (+11 -5)
packages/desktop-electron/tsconfig.dist.json (+14 -0)
upcoming-release-notes/2880.md (+6 -0)
📝 yarn.lock (+87 -6)

📄 Description

Sets up the desktop-electron package to use typescript. https://github.com/actualbudget/actual/issues/1483

Main changes:

  • Typescript build using tsc, builds to the "build" folder
  • client-build folder is moved to the "build" folder rather than the root
  • html needs copied manually into the build folder due to tsc only dealing with typescirpt/js - using copyfiles

I haven't typed everything - I'm putting in the starting point in this PR.

The next step is to go through the electron files and convert them to typescript.

  • Tested on Linux and Windows

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/actualbudget/actual/pull/2880 **Author:** [@MikesGlitch](https://github.com/MikesGlitch) **Created:** 6/14/2024 **Status:** ✅ Merged **Merged:** 7/3/2024 **Merged by:** [@MatissJanis](https://github.com/MatissJanis) **Base:** `master` ← **Head:** `maintenance/ts-electron` --- ### 📝 Commits (10+) - [`ba236c5`](https://github.com/actualbudget/actual/commit/ba236c57b9b4abdeeda4ae444182d5c031bb6c94) ts electron start - [`21bb9bc`](https://github.com/actualbudget/actual/commit/21bb9bc75404dee26fd73de6bfe1779a63e9fee1) bits - [`376efc6`](https://github.com/actualbudget/actual/commit/376efc61a6db25c2ccae0875499de7c862564957) remove comments - [`152a68f`](https://github.com/actualbudget/actual/commit/152a68f0418223144b3821fb8427f11259da6df2) it works now - [`f3ad072`](https://github.com/actualbudget/actual/commit/f3ad072cc2e33296b3d3a8b42099e77bf5870611) reverting some bits to minimise changes in this pr - [`feae66a`](https://github.com/actualbudget/actual/commit/feae66a3ecc1cf7efa2e84e04e6af2aa80de0d49) some types - [`da030a9`](https://github.com/actualbudget/actual/commit/da030a93cc11654cfe9b9ee9121b811ae2d899bf) updates - [`44cab82`](https://github.com/actualbudget/actual/commit/44cab82500facd339a0fcb9f28e71840da336181) add release notes - [`fe6ab8a`](https://github.com/actualbudget/actual/commit/fe6ab8a3ff3b8524da3626dd9936d18631979ed0) fix type - [`955e26d`](https://github.com/actualbudget/actual/commit/955e26dd31cee1748659f6f7149e26d3e5e7d157) ensuring the build is removed when cleaning ### 📊 Changes **8 files changed** (+181 additions, -66 deletions) <details> <summary>View changed files</summary> 📝 `.gitignore` (+1 -0) 📝 `packages/desktop-electron/bin/update-client` (+7 -6) 📝 `packages/desktop-electron/index.ts` (+52 -46) 📝 `packages/desktop-electron/menu.js` (+3 -3) 📝 `packages/desktop-electron/package.json` (+11 -5) ➕ `packages/desktop-electron/tsconfig.dist.json` (+14 -0) ➕ `upcoming-release-notes/2880.md` (+6 -0) 📝 `yarn.lock` (+87 -6) </details> ### 📄 Description <!-- Thank you for submitting a pull request! Make sure to follow the instructions to write release notes for your PR — it should only take a minute or two: https://github.com/actualbudget/docs#writing-good-release-notes --> Sets up the desktop-electron package to use typescript. https://github.com/actualbudget/actual/issues/1483 Main changes: - Typescript build using tsc, builds to the "build" folder - client-build folder is moved to the "build" folder rather than the root - html needs copied manually into the build folder due to tsc only dealing with typescirpt/js - using copyfiles I haven't typed everything - I'm putting in the starting point in this PR. The next step is to go through the electron files and convert them to typescript. - Tested on Linux and Windows --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-18 06:50:21 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#30492