diff --git a/README.md b/README.md index c6b8a80..48a171e 100644 --- a/README.md +++ b/README.md @@ -18,9 +18,7 @@ Pour générer le graphe par vous-même, vous devez au préalable avoir install git clone https://gitlab.com/matteodelabre/epenser-maze.git cd epenser-maze npm install -mkdir -p build -node explore build/maze.dot -dot build/maze.dot -Tsvg -o build/maze.svg +npm run build ``` ## Licence diff --git a/package.json b/package.json index 83adaa4..6c630bd 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,9 @@ "version": "0.2.0", "main": "src/index.js", "license": "CC0", + "scripts": { + "build": "mkdir -p build && node explore build/maze.dot && dot -Tsvg build/maze.dot -o build/maze.svg" + }, "dependencies": { "cheerio": "1.0.0-rc.3", "graph-data-structure": "^1.8.0",