Skip to content

Latest commit

Β 

History

History
81 lines (59 loc) Β· 1.54 KB

File metadata and controls

81 lines (59 loc) Β· 1.54 KB

@deriv/p2p

Index

  • General - Contains general philosophy and overview of this package
  • Modules docs - Contains implementation guides (i.e., scaffolding, code usage)

Requirements

  • node
  • npm

Editor helpers

πŸš€ Quick start

  1. Install your dependencies:

    npm ci
  2. To build publish file:

    npm run build
  3. Libary usage:

    import P2P from '@deriv/p2p';
    
    <P2P />
  4. 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
  1. Translations

Update translations in Crowdin and get new translations from Crowdin

Requirements:

  • Crowdin CLI
  • P2P_CROWDIN_API_KEY
  1. Run the script below
    sh scripts/update-translations.sh
  • Extracts new translations strings and pushes them to Crowdin
  • Fetches new translations strings from Crowdin
  1. Make a PR from the newly created branch p2p_translations to dev