- General - Contains general philosophy and overview of this package
- Modules docs - Contains implementation guides (i.e., scaffolding, code usage)
- node
- npm
- Prettier setup in your editor https://prettier.io/
- Stylelint setup in your editor https://stylelint.io/
- Eslint setup in your editor https://eslint.org/
-
Install your dependencies:
npm ci
-
To build publish file:
npm run build
-
Libary usage:
import P2P from '@deriv/p2p'; <P2P />
-
File Structure
src
βββ components/
β βββ ads/
β β βββ ads.js
β β βββ ads.scss
β βββ orders/
β β βββ orders.js
β β βββ orders.scss
β βββ ...
β βββ app.jsx
βββ utils/
β βββ timer.js // TODO
β βββ ...
βββ index.js
index.js // publish file
webpack.config.js
package.json
- Translations
Update translations in Crowdin and get new translations from Crowdin
Requirements:
- Crowdin CLI
- P2P_CROWDIN_API_KEY
- Run the script below
sh scripts/update-translations.sh- Extracts new translations strings and pushes them to Crowdin
- Fetches new translations strings from Crowdin
- Make a PR from the newly created branch
p2p_translationsto dev