Merge pull request #624 from ethereum/fixBuild

don't build using minify and exorcist
pull/1/head
yann300 7 years ago committed by GitHub
commit 52b93b83dd
  1. 2
      package.json
  2. 1
      src/app/staticanalysis/modules/staticAnalysisCommon.js

@ -127,7 +127,7 @@
]
},
"scripts": {
"build": "browserify src/index.js -d | npm run minify --silent | npm run sourcemap",
"build": "browserify src/index.js -o build/app.js",
"browsertest": "sleep 5 && npm run nightwatch_local",
"csslint": "csslint --ignore=order-alphabetical --errors='errors,duplicate-properties,empty-rules' --exclude-list='assets/css/font-awesome.min.css' assets/css/",
"downloadsolc": "rimraf soljson.js; wget https://ethereum.github.io/solc-bin/soljson.js",

@ -240,6 +240,7 @@ function getDeclaredVariableName (varDeclNode) {
*/
function getStateVariableDeclarationsFormContractNode (contractNode) {
if (!isContractDefinition(contractNode)) throw new Error('staticAnalysisCommon.js: not an contract definition declaration')
if (!contractNode.children) return []
return contractNode.children.filter((el) => isVariableDeclaration(el))
}

Loading…
Cancel
Save