embark-solc
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -0,0 +0,0 @@ /*global require, module*/ |
@@ -29,2 +29,10 @@ const async = require('async'); | ||
} | ||
const solc = shelljs.which('solc'); | ||
if (!solc) { | ||
logger.warn('solc is not installed on your machine'); | ||
logger.info('You can install it by following the instructions on: http://solidity.readthedocs.io/en/latest/installing-solidity.html'); | ||
process.exit(); | ||
} | ||
logger.info("compiling solidity contracts with command line solc..."); | ||
@@ -39,4 +47,6 @@ let compiled_object = {}; | ||
let json = JSON.parse(compileString); | ||
let jsonStart = compileString.indexOf("\"contracts\":{"); | ||
let json = JSON.parse(compileString.substr(jsonStart - 1)); | ||
for (let contractFile in json.contracts) { | ||
@@ -43,0 +53,0 @@ let className = contractFile.substr( contractFile.indexOf(":") + 1); |
{ | ||
"name": "embark-solc", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "Solc plugin for Embark (uses command line)", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -1,5 +0,5 @@ | ||
Embark-Bamboo | ||
Embark-Solc | ||
====== | ||
Plugin for [Embark](https://github.com/embark-framework/embark) to compile contracts using solc command | ||
Plugin for [Embark](https://github.com/embark-framework/embark) to compile contracts using solc | ||
@@ -6,0 +6,0 @@ Installation |
3813
71