From 1e689cc3524b5544709b341dc7e1e4bc7c9e3e7f Mon Sep 17 00:00:00 2001 From: Marcelo Morgado Date: Tue, 22 Jan 2019 15:34:28 +0000 Subject: [PATCH] truffle-flattner script --- package.json | 3 ++- scripts/buildfull.sh | 11 +++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 scripts/buildfull.sh diff --git a/package.json b/package.json index de27a30..44248f4 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,8 @@ "eslint-plugin-promise": "^3.7.0", "eslint-plugin-standard": "^3.1.0", "ganache-cli": "^6.1.0", - "truffle": "^3.4.11" + "truffle": "^3.4.11", + "truffle-flattener": "^1.2.10" }, "scripts": { "test": "./scripts/test.sh", diff --git a/scripts/buildfull.sh b/scripts/buildfull.sh new file mode 100644 index 0000000..e59285c --- /dev/null +++ b/scripts/buildfull.sh @@ -0,0 +1,11 @@ +#! /bin/bash + +MANA_TOKEN=MANAToken.sol +MANA_CONTINUOUS_SALE=MANAContinuousSale.sol +MANA_CROWDSALE=MANACrowdsale.sol + +OUTPUT=full + +npx truffle-flattener contracts/$MANA_TOKEN > $OUTPUT/$MANA_TOKEN +npx truffle-flattener contracts/$MANA_CONTINUOUS_SALE > $OUTPUT/$MANA_CONTINUOUS_SALE +npx truffle-flattener contracts/$MANA_CROWDSALE > $OUTPUT/$MANA_CROWDSALE