docker-development-node-runner

0.0.6 • Public • Published

Docker development node runner

An opinionated helper script for running a node app in a container during development.

CircleCI

Features

  • Builds app and runs it
  • When files change the app is killed, rebuilt and restarted
  • If the app crashes the error is displayed and restarted when files change again
  • To speed up expensive processes (e.g. preprocessing) app source code is copied from docker volume to local docker fs when files change

Requirements

NodeJS 6+

Usage

Apps expose functionality via package.json's scripts key:

  • build: runs before the app is started and restarted
  • start: starts the app

/docker-development-node-runner/

    Package Sidebar

    Install

    npm i docker-development-node-runner

    Weekly Downloads

    6

    Version

    0.0.6

    License

    MIT

    Last publish

    Collaborators

    • possibilities