Skip to content

Instantly share code, notes, and snippets.

@Kostanos
Last active September 17, 2017 21:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kostanos/5e86e5e3f0f13fa76b65e18f6192bec7 to your computer and use it in GitHub Desktop.
Save Kostanos/5e86e5e3f0f13fa76b65e18f6192bec7 to your computer and use it in GitHub Desktop.
debugColorsTest
# to run the test, just run:
# docker-compose up --build test
version: '2'
services:
test:
build:
context: .
container_name: test
environment:
- DEBUG=*
volumes:
- ./:/root/app
logging:
driver: json-file
tty: true
FROM node:8-alpine
WORKDIR /root/app
CMD npm start
var debug = require('debug')('test');
debug('This is my test for colors');
{
"name": "debugcolortest",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "npm install; node index",
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"dependencies": {
"debug": "^3.0.1"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment