support versions on embark json config

This commit is contained in:
Iuri Matias 2018-03-31 19:35:20 -04:00
parent 94887f933d
commit 03f0b07d81
13 changed files with 26 additions and 28 deletions

View File

@ -18,6 +18,7 @@ var Config = function(options) {
this.plugins = options.plugins;
this.logger = options.logger;
this.events = options.events;
this.embarkConfig = {};
};
Config.prototype.loadConfigFiles = function(options) {
@ -92,7 +93,7 @@ Config.prototype.loadBlockchainConfigFile = function() {
Config.prototype.loadContractsConfigFile = function() {
var configObject = {
"default": {
"versions": {
"versions": this.embarkConfig.versions || {
"web3.js": "1.0.0-beta",
"solc": "0.4.17"
},
@ -120,7 +121,7 @@ Config.prototype.loadContractsConfigFile = function() {
Config.prototype.loadStorageConfigFile = function() {
var configObject = {
"default": {
"versions": {
"versions": this.embarkConfig.versions || {
"ipfs-api": "17.2.4"
},
"enabled": true,

View File

@ -1,9 +1,5 @@
{
"default": {
"versions": {
"web3.js": "1.0.0-beta",
"solc": "0.4.17"
},
"deployment": {
"host": "localhost",
"port": 8545,

View File

@ -1,8 +1,5 @@
{
"default": {
"versions": {
"ipfs-api": "17.2.4"
},
"enabled": true,
"ipfs_bin": "ipfs",
"provider": "ipfs",

View File

@ -8,5 +8,10 @@
},
"buildDir": "dist/",
"config": "config/",
"versions": {
"web3.js": "1.0.0-beta",
"solc": "0.4.17",
"ipfs-api": "17.2.4"
},
"plugins": {}
}

View File

@ -1,9 +1,5 @@
{
"default": {
"versions": {
"web3.js": "1.0.0-beta",
"solc": "0.4.17"
},
"deployment": {
"host": "localhost",
"port": 8545,

View File

@ -1,8 +1,5 @@
{
"default": {
"versions": {
"ipfs-api": "17.2.4"
},
"enabled": true,
"ipfs_bin": "ipfs",
"provider": "ipfs",

View File

@ -7,6 +7,11 @@
},
"buildDir": "dist/",
"config": "config/",
"versions": {
"web3.js": "1.0.0-beta",
"solc": "0.4.17",
"ipfs-api": "17.2.4"
},
"plugins": {
}
}

View File

@ -1,9 +1,5 @@
{
"default": {
"versions": {
"web3.js": "1.0.0-beta",
"solc": "0.4.17"
},
"deployment": {
"host": "localhost",
"port": 8545,

View File

@ -3,5 +3,8 @@
"app": {},
"buildDir": "build/",
"config": "./",
"versions": {
"solc": "0.4.17"
},
"plugins": {}
}

View File

@ -2,5 +2,9 @@
"contracts": ["contracts/**"],
"app": {},
"buildDir": "build/",
"config": "./"
"config": "./",
"versions": {
"web3.js": "1.0.0-beta",
"solc": "0.4.17"
}
}

View File

@ -1,9 +1,5 @@
{
"default": {
"versions": {
"web3.js": "1.0.0-beta.27",
"solc": "0.4.18"
},
"deployment": {
"host": "localhost",
"port": 8545,

View File

@ -1,8 +1,5 @@
{
"default": {
"versions": {
"ipfs-api": "17.2.6"
},
"enabled": true,
"available_providers": ["ipfs"],
"ipfs_bin": "ipfs",

View File

@ -14,6 +14,11 @@
},
"buildDir": "dist/",
"config": "config/",
"versions": {
"web3.js": "1.0.0-beta.27",
"solc": "0.4.18",
"ipfs-api": "17.2.6"
},
"plugins": {
"embark-service": {}
}