I’m totally not sure, since I do not use edeliver at all, none of my projects got thus far
But I’d guess you need to do roughly this diff:
# prepare something
mkdir -p priv/static # required by the phoenix.digest task
+pushd assets
npm install
./node_modules/brunch/bin/brunch build --production
+popd
# run your custom task