patractlabs / redspot

Redspot is an Substrate pallet-contracts (ink!) development environment. Compile your contracts and run them on a different networks. Redspot's core forks from Hardhat but changed a lot to suit substrate.
https://redspot.patract.io/
Other
67 stars 22 forks source link

Allow to specify single target-dir, e.g. export CARGO_TARGET_DIR=/cache/target #167

Closed sventime closed 2 years ago

sventime commented 2 years ago

We're using redspot in our projects, and it's great, but sometimes, during smart contract build, we want to specify the single target directory (e.g. CARGO_TARGET_DIR=/cache/target), for example, to optimize disk space and build time when running CI on remote servers.

The condition in compilerInput.ts doesn't allow to do this. We created a small PR to fix it: #160 Please, take a look at it, or resolve it in another way.

Thanks a lot!

ii-ii-ii commented 2 years ago

0.13.3 has been released