edge-pack

0.2.0 • Public • Published

Edge Pack

A CLI tool for bundling currency plugins to React Native projects.

Usage

An entry file is required to tell webpack what currency plugins to bundle. You can also perform custom configurations in this entry file for certain plugin.

// ./pluginEntry.js

// WebPack bundles this thing up to give us our core plugins.
import 'core-js'
// Bitcoin related currencies
import 'edge-currency-accountbased/lib/index.js'
// Ethereum related currencies
import { setMemletConfig } from 'edge-currency-plugins'

setMemletConfig({
  maxMemoryUsage: 50 * 1024 * 1024 // 50MB
})

The CLI tool takes an argument representing the relative path to pluginEntry.js:

yarn pack <PATH_TO_ENTRY_FILE>

For example, if your entry file is located under the src folder, you'd run:

yarn pack src/pluginEntry.js

Package Sidebar

Install

npm i edge-pack

Weekly Downloads

1

Version

0.2.0

License

MIT

Unpacked Size

6.68 kB

Total Files

10

Last publish

Collaborators

  • goodluckh