mirror of
https://github.com/getwax/bundler.git
synced 2026-01-09 23:57:58 -05:00
* Initial commit with lerna AA-4337 provider, bundler and helper contract * Initial CircleCI workflow * Initial commit for eslint task * Initial bundler class decomposition * Initial migration to commander.js * Transaction is sent by MethodHandler * Get transaction receipt by requestID * Create yarn script for Flows with Hardhat-node, Bundler as separate processes * Add server-side error handling to avoid unreadable errors (still WIP) * Add docker step * Added docker-compose.yml file * Enable depcheck task
23 lines
618 B
Bash
Executable File
23 lines
618 B
Bash
Executable File
#!/bin/bash -e
|
|
cd `cd \`dirname $0\`;pwd`
|
|
|
|
#need to preprocess first to have the Version.js
|
|
yarn preprocess
|
|
|
|
test -z "$VERSION" && VERSION=`node -e "console.log(require('../../packages/common/dist/src/Version.js').erc4337RuntimeVersion)"`
|
|
echo version=$VERSION
|
|
|
|
IMAGE=alexforshtat/erc4337bundler
|
|
|
|
#build docker image of bundler
|
|
#rebuild if there is a newer src file:
|
|
find ./dbuild.sh ../../packages/*/src/ -type f -newer dist/bundler.js 2>&1 | grep . && {
|
|
npx webpack
|
|
}
|
|
|
|
docker build -t $IMAGE .
|
|
docker tag $IMAGE $IMAGE:$VERSION
|
|
echo "== To publish"
|
|
echo " docker push $IMAGE:latest; docker push $IMAGE:$VERSION"
|
|
|