luka1199 / run-time-information-gathering

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Master Mind - Work Package 3

Installation

Docker

Install Docker. https://docs.docker.com/install/

Build Docker image

Clone this repository and then run:

./build/build.sh

This will build an image called master-mind-wp3 on your local machine.

Usage

Get runtime information from one JS file

Run the docker container mounting your file on /tmp/file.js.

docker run \
	-v ABS_PATH_TO_YOUR_FILE:/tmp/file.js  \
	master-mind-wp3

The runtime information will be printed to stdout.

Example

docker run -v $(pwd)/tests/calculator/calculator.js:/tmp/calculator.js master-mind-wp3 /tmp/calculator.js

Blacklisted node modules

You can specify a JSON file that contains an array of blacklisted node modules which you don't want to instrument.

docker run \
	-v $(pwd)/tests/calculator/calculator.js:/tmp/calculator.js \
	-v PATH_TO_BLACKLIST.json:/tmp/blacklist.json
	master-mind-wp3 \
	/tmp/calculator.js
	/tmp/blacklist.json

example-blacklist.json:

[
	"lodash"
]

About

License:MIT License


Languages

Language:JavaScript 89.4%Language:Shell 10.1%Language:HTML 0.3%Language:Dockerfile 0.2%