0.2.0 • Published 2 years ago

edge-pack v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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