- node.js, version >= 6.0.0
- yarn
Run yarn
in project root
yarn run dev
- compile everything in 'dev' mode and run dev server on http://0.0.0.0:3000 (Linux) or http://127.0.0.0:3000 (other OSs)yarn run dist
- compile the release codeyarn run dist-abc
- compile the release code for Airbitz/airbitz-pluginsyarn run lint
- lint the codeyarn run test
- run tests using karma in 'single-run' modeyarn run test:watch
- run tests using karma in 'watch' modeyarn run ci
- run sequence ofyarn run lint
,yarn run test
,yarn run dist
You can access the API, which is available in the file
airbitz-core.js,
using one of these ways:
import 'airbitzPluginApi';
// do something
window.Airbitz.core.wallets();
or
import * as airbitz from 'airbitzPluginApi';
// do something
airbitz.core.wallets();
You can specify which bridge will be used using CLI parameter --env.platform
.
It can take one of these values:
web
- (by default) use airbitz-bridge-dev.jsios
- use airbitz-bridge-ios.jsandroid
- use airbitz-bridge-android.js
Therefore, you can use
yarn run dist -- --env.platform=web
oryarn run dist
in order to compile the application withairbitz-bridge-dev.js
yarn run dist -- --env.platform=ios
in order to compile the application withairbitz-bridge-ios.js
yarn run dist -- --env.platform=android
in order to compile the application withairbitz-bridge-android.js
There is directory $PROJECT_ROOT/config
which contains config files.
dev.js
contains configuration for development buildsprod.js
contains configuration for production buildsdefault.js
contains shared configuration
By default it uses this logic
yarn run dist
- use$PROJECT_ROOT/config/prod.js
- otherwise - use
$PROJECT_ROOT/config/dev.js
You can override this using CLI parameter --env.config=$CONFIG_KEY
.
For example,
- use
dev
configuration forproduction
build:yarn run dist -- --env.config=dev
- use
prod
configuration fordev
build:yarn run dev -- --env.config=prod
Update react-redux
Now the application uses `react-redux@4.4.6 due to incompatibility of
the latest react-redux-form with react-redux@5.*.
See this,
this and
this tickets