src/main.ts
, the script running at the main Electron process, orchestrating the whole application;src/rootWindow.ts
, the script that renders the UI of the root window, the app's main window;src/preload.ts
, which runs in a privileged mode to connect the app and the webviews rendering Rocket.Chat's web client.dependencies
and devDependencies
in package.json.
Like any other package depending project, only modules listed in dependencies
will be included in the distributable final app.servers.json
file will help define what servers the client will connect to. When specified, it will automatically populate the server list in the sidebar.servers.json
with the install package, the file should be located in the root of the project application (same level as the package.json
).servers.json
will only be checked if no other servers have already been added, even if you uninstall the app without removing older preferences, it will not be triggered again.servers.json
in the user preferences folder which will overwrite the packaged one. The file should be located in any of the directories listed below.~\Users\<username>\AppData\Roaming\Rocket.Chat\
~\Program Files\Rocket.Chat\Resources\
~/Users/<username>/Library/Application Support/Rocket.Chat/
~/Applications/Rocket.Chat.app/Contents/Resources/
/home/<username>/.config/Rocket.Chat/
/opt/Rocket.Chat/resources/
src
directory that match the glob pattern *.(spec|test).{js,ts,tsx}
performs tests on them.dist/
directory.