1.5.0 • Published 6 years ago

build-contract v1.5.0

Weekly downloads
181
License
MIT
Repository
github
Last release
6 years ago

build-contract

Defines a successful build and test run for a microservice, from source to docker push

using locally

Invoke build-contract in current folder, use host's docker:

docker build --tag yolean/build-contract .
docker run -v /var/run/docker.sock:/var/run/docker.sock -v $(pwd)/:/source  --rm --name mybuild yolean/build-contract test

Or for monorepo:

docker run -v /var/run/docker.sock:/var/run/docker.sock -v $(pwd)/../:/source -w /source/$(basename $(pwd)) --rm --name mybuild yolean/build-contract test

Add -t for colors and Ctrl+C support.

There are automated builds solsson/build-contract.

Node.js monorepo support with `npm

Add scripts to package.json like so, and build contract will pick them up:

  "scripts": {
    "build-contract-predockerbuild": "./node_modules/.bin/build-contract-predockerbuild",
    "packagelock": "build-contract-packagelock",

Paths depend on your npm install situation.

1.5.0

6 years ago

1.4.0

6 years ago

1.3.0

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago