From 9e4b996de217c827a8949290bca7f896dab26f46 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Sat, 3 Mar 2018 13:21:03 +0200 Subject: Start using parcel --- package.json | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'package.json') diff --git a/package.json b/package.json index 147a036..5f6c6db 100644 --- a/package.json +++ b/package.json @@ -4,11 +4,19 @@ "author": "Jan Tuomi ", "license": "MIT", "scripts": { - "build": "mkdir -p build && cp src/index.html src/style.css build/ && riot src build/bundle.js", - "start": "caddy" + "build": "riot src/components src/tags.js && parcel build --public-url=./ src/index.html", + "start": "yarn watch", + "watch": "yarn watch:riot & yarn watch:parcel", + "watch:riot": "riot -w src/components src/tags.js", + "watch:parcel": "parcel src/index.html" }, "dependencies": { "node-sass": "^4.7.2", "riot": "^3.7.4" + }, + "devDependencies": { + "babel-core": "^6.26.0", + "parcel-bundler": "^1.6.2", + "watch": "^1.0.2" } } -- cgit v1.3