From 1f2e65ddbf46b157cc98e684b0b6da4559cdad2c Mon Sep 17 00:00:00 2001
From: "Nek (Maxime Veber)" <nek.dev@gmail.com>
Date: Sat, 24 Feb 2018 15:05:45 +0100
Subject: [PATCH] Use npm script

This is more concise, and usable without docker
---
 Makefile     | 2 +-
 package.json | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 211cdee..a64c3a4 100644
--- a/Makefile
+++ b/Makefile
@@ -4,4 +4,4 @@ node_modules: yarn.lock package.json
 	$(NODE) node yarn install
 
 start_the_show: node_modules
-	$(NODE) -p $(LOCAL_PORT):8000 --name sflive node /bin/sh -c 'node_modules/reveal-md/bin/cli.js --port 8000 --theme=solarized'
+	$(NODE) -p $(LOCAL_PORT):8000 --name sflive node /bin/sh -c 'npm start'
diff --git a/package.json b/package.json
index 916cdb5..b4382a5 100644
--- a/package.json
+++ b/package.json
@@ -7,5 +7,8 @@
   "private": true,
   "dependencies": {
     "reveal-md": "^1.1.3"
+  },
+  "scripts": {
+      "start": "reveal-md --port 8000 --theme=solarized"
   }
 }
-- 
GitLab