mirror of
https://github.com/embarklabs/embark-plasma.git
synced 2025-01-24 18:39:57 +00:00
2a8f0bd937
Add init, deposit, send console commands to interact with the Plasma chain Add plasma exit command and function working in embark and browser Remove browser codeAll browser code is now required through embarkjs-omg
32 lines
514 B
JavaScript
32 lines
514 B
JavaScript
/* global module require */
|
|
|
|
const cloneDeep = require('lodash.clonedeep');
|
|
|
|
module.exports = (api) => {
|
|
const env = api.env();
|
|
|
|
const base = {};
|
|
|
|
const browser = cloneDeep(base);
|
|
Object.assign(browser, {
|
|
ignore: [
|
|
'**/node.js'
|
|
]
|
|
});
|
|
|
|
const node = cloneDeep(base);
|
|
|
|
const nodeTest = cloneDeep(base);
|
|
|
|
switch (env) {
|
|
case 'browser':
|
|
return browser;
|
|
case 'node':
|
|
return node;
|
|
// case 'node:test':
|
|
// return nodeTest;
|
|
default:
|
|
return base;
|
|
}
|
|
};
|