UI uses main contracts submodule

This commit is contained in:
rzadp 2019-05-21 09:26:16 +02:00
parent 7f303c08cf
commit 02d88951e5
2 changed files with 4 additions and 1 deletions

@ -10,6 +10,9 @@ COPY monitor/package.json ./monitor/
COPY contracts/package.json ./contracts/ COPY contracts/package.json ./contracts/
COPY ui/lib/web3-eth/index.js ./ui/lib/web3-eth/index.js COPY ui/lib/web3-eth/index.js ./ui/lib/web3-eth/index.js
COPY yarn.lock . COPY yarn.lock .
RUN yarn install RUN yarn install
COPY . . COPY . .
RUN yarn workspace ui run compile:contracts RUN yarn workspace ui run compile:contracts
RUN cd contracts/deploy && rm -f package-lock.json && npm install

@ -45,7 +45,7 @@
"eject": "react-app-rewired eject", "eject": "react-app-rewired eject",
"predeploy": "npm run build", "predeploy": "npm run build",
"deploy": "gh-pages -d build -o origin", "deploy": "gh-pages -d build -o origin",
"compile:contracts": "cd submodules/poa-bridge-contracts && npm install && npm run compile && cd ../../ && rm -r -f src/contracts && cp -r submodules/poa-bridge-contracts/build/contracts src/contracts", "compile:contracts": "rm -r -f src/contracts && cp -r ../contracts/build/contracts src/contracts",
"postinstall": "(cp lib/web3-eth/index.js ../node_modules/web3-eth/src || cp lib/web3-eth/index.js ./node_modules/web3-eth/src)" "postinstall": "(cp lib/web3-eth/index.js ../node_modules/web3-eth/src || cp lib/web3-eth/index.js ./node_modules/web3-eth/src)"
}, },
"devDependencies": { "devDependencies": {