0.7.3 • Published 4 years ago

@deriv/p2p v0.7.3

Weekly downloads
14
License
ISC
Repository
-
Last release
4 years ago

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