mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-09 21:35:58 +00:00
1aeb6fd83b
This commit enables new `beforeDeploy` deployment hooks. With this change it's possible to add `beforeDeploy` to either `contracts: {}` within the contracts configuration, or an individual contract. For example: ``` contracts: { SimpleStorage: { beforeDeploy: async (context) => { } } } ``` Runs the hook before `SimpleStorage` will be deployed. Whereas ``` contracts: { ... beforeDeploy: async () => { } } will be executed before *all* Smart Contracts will be deployed.