-
Notifications
You must be signed in to change notification settings - Fork 5
Starting tips for developpers
-
Create at the root of the repo a config.json file in which you add the content of config.dev.json.
-
yarn start (a postinstall script will be launch and install matrix-react-sdk subtree dependencies)
-
Translation strings are managed in this file : https://github.com/tchapgouv/tchap-web-v4/blob/develop_tchap/src/tchap/i18n/strings/tchap_translations.json
-
To check if everything is correct you can run
yarn i18n-tchap
, it will compare crawled and references file data.
Note : when editing this file, you need to relaunch yarn start
- To modify the Element code, you can either choose to change an entire file, and if you do so, you will be doing a customisation, ou just part of a file, and that is a patch. Under is an explanation on how to use both.
--
Patches now are only used for matrix-js-sdk. We use a subtree structure (linked-dependencies/matrix-react-sdk
) for direct customisation on the matrix-react-sdk
See readme here for more info on patches : https://github.com/tchapgouv/tchap-web-v4/blob/develop_tchap/patches/README.md
EDIT : customisations now are deprecated on Element, do not use them anymore
- Create a new file (if possible with the same name and path as the original file in /yarn-linked-dependencies, except this time it will be located in /src)
- In customisations.json, add the new path for the original path, so that it is read instead of the original file. Ex: { "src/components/views/dialogs/LogoutDialog.tsx": "src/components/views/dialogs/TchapLogoutDialog.tsx", // ... }
- We need to be able to update the forked libs (matrix react et matrix js + element web) and know what was modified and what might have been broken.
- We must remain independant and safe from too much maintenance.
- Write the least possible patches.