From 6ec9a6fc1d43c8d2a1495e147157dc545175b129 Mon Sep 17 00:00:00 2001 From: Joris Guyonvarch Date: Sat, 27 Jun 2015 01:04:51 +0200 Subject: Generate static pages with a watcher and serve files with a simple http server --- package.json | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) (limited to 'package.json') diff --git a/package.json b/package.json index 656665a..3bdedd1 100644 --- a/package.json +++ b/package.json @@ -1,13 +1,22 @@ { - "name": "makeup", + "name": "makeup", + "license": "GPL-3.0", + "description": "MakeUp website", - "dependencies": { - "pandoc-bin": "0.1.2" + "repository": { + "type": "git", + "url": "git://github.com/guyonvarch/makeup.git" }, - "scripts": { - "build": "./gen.sh" + "dependencies": { + "pandoc-bin": "0.1.2", + "http-server": "0.8.0", + "watch": "0.16.0" }, - "license": "GPL-3" + "scripts": { + "watch": "watch ./gen.sh ./Markdown ./Fragments & npm run serve", + "serve": "npm run kill-server && http-server -p 8000", + "kill-server": "fuser -k 8000/tcp || true" + } } -- cgit v1.2.3