Skip to content

Latest commit

 

History

History
84 lines (59 loc) · 1.65 KB

README.md

File metadata and controls

84 lines (59 loc) · 1.65 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:

  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