Skip to content
This repository was archived by the owner on Jun 4, 2023. It is now read-only.

Commit 9c254f7

Browse files
authoredJan 16, 2021
chore: upgrade dependencies (#545)
1 parent e1f88a8 commit 9c254f7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+2254
-2795
lines changed
 

‎.eslintrc.js

+1
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,6 @@ module.exports = {
1616
'@typescript-eslint/interface-name-prefix': 'off',
1717
'@typescript-eslint/no-var-requires': 'off',
1818
'@typescript-eslint/no-namespace': 'off',
19+
'@typescript-eslint/explicit-module-boundary-types': 'off',
1920
},
2021
};

‎docs/development.md

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Development
2+
3+
## IPC
4+
5+
Now, the preferred way to communicate between processes is to use [`@wexond/rpc-electron`](https://github.com/wexond/rpc) package.
6+
7+
Example:
8+
9+
Handling the IPC message in the main process:
10+
11+
[`src/main/network/network-service-handler.ts`](../src/main/network/network-service-handler.ts)
12+
13+
14+
Sending the IPC message to the main process:
15+
16+
```ts
17+
const { data } = await networkMainChannel.getInvoker().request('http://localhost');
18+
```
19+
20+
Common RPC interface
21+
22+
[`src/common/rpc/network.ts`](../src/common/rpc/network.ts)
23+
24+
## Remote module
25+
26+
As Electron will be deprecating the `remote` module, we are migrating to our RPC solution.
27+
28+
## Node integration
29+
30+
We are going to turn off `nodeIntegration`, enable `contextIsolation` and `sandbox` in the UI webContents,
31+
therefore we prefer not having requires to node.js built-in modules in renderers.
32+
33+
## Project structure
34+
35+
Common interfaces, constants etc. should land into the `common` directory.

0 commit comments

Comments
 (0)
This repository has been archived.