develop npm modules cross platform with docker
Homepage Repository npm Download
develop npm modules cross platform with docker
Use TypeScript for best in class instellisense.
Sometimes you want a clean and fresh linux environment everytime you test your package. Usually this is the default i CI, but locally behaviour tends to defer.
The npmdocker package works in everywhere where the docker cli is available. e.g.:
create a npmextra.json in the project's root directory
{
"npmdocker": {
"baseImage": "hosttoday/ht-docker-node:npmts",
"command": "npmci test stable",
"dockerSock": false
}
}
option | description |
---|---|
baseImage | the base image that is the context for your project |
command | the cli command to run within the the project's directory inside the docker container |
dockersSock | wether or not the testcontainer will have access to the docker.sock of the host |
For further information read the linked docs at the top of this readme.
MIT licensed | © Lossless GmbH | By using this npm module you agree to our privacy policy