- 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: https://support.crowdin.com/cli-tool/#installation
CROWDIN_API_KEY
environment variables to your~/.bash_profile
- 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_translations
to dev