Go to file
2019-05-28 11:31:40 +02:00
.vscode fix(core): update 2019-05-12 18:52:23 +02:00
assets fix(core): update 2019-05-21 17:35:36 +02:00
ts fix(core): update 2019-05-10 11:46:37 +02:00
.gitignore fix(core): update 2019-05-21 17:41:25 +02:00
.gitlab-ci.yml fix(core): update 2019-05-21 17:43:37 +02:00
cli.js fix(update to latest standards): update 2018-07-21 13:32:51 +02:00
cli.ts.js fix(update to latest standards): update 2018-07-21 13:32:51 +02:00
Dockerfile update 2017-10-13 17:50:31 +02:00
npmextra.json fix(core): update 2019-05-10 11:45:20 +02:00
package-lock.json 1.2.39 2019-05-28 11:31:40 +02:00
package.json 1.2.39 2019-05-28 11:31:40 +02:00
README.md fix(core): update 2019-05-10 11:46:37 +02:00
tslint.json fix(core): update 2019-05-10 11:45:20 +02:00

@gitzone/npmdocker

develop npm modules cross platform with docker

Status for master

build status coverage report npm downloads per month Known Vulnerabilities TypeScript node JavaScript Style Guide

Usage

Use TypeScript for best in class instellisense.

Why does this package exist?

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.

Where does it work

The npmdocker package works in everywhere where the docker cli is available. e.g.:

  • docker toolbox
  • native docker application
  • docker in docker
  • mounted docker.sock

How do I use it?

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

repo-footer