From 5adf72dcc1b3857911f3caaba70199bc1e54c11a Mon Sep 17 00:00:00 2001 From: jos Date: Wed, 13 Jul 2016 15:09:56 +0200 Subject: [PATCH] Some refactoring in the build scripts --- package.json | 4 ++-- public/index.html => src/develop.html | 0 {public => src}/jsoneditor.css | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename public/index.html => src/develop.html (100%) rename {public => src}/jsoneditor.css (100%) diff --git a/package.json b/package.json index 12b052a..1214e13 100644 --- a/package.json +++ b/package.json @@ -18,8 +18,8 @@ }, "bugs": "https://github.com/josdejong/jsoneditor/issues", "scripts": { - "build": "react-dev-server --build; uglifyjs public/bundle.js -o public/bundle.min.js", - "watch": "react-dev-server", + "build": "react-dev-server --static dist --build; mv dist/bundle.js dist/jsoneditor.js; uglifyjs dist/jsoneditor.js -o dist/jsoneditor.min.js; cp src/jsoneditor.css dist", + "watch": "react-dev-server --static src --index develop.html", "test": "mocha test" }, "dependencies": { diff --git a/public/index.html b/src/develop.html similarity index 100% rename from public/index.html rename to src/develop.html diff --git a/public/jsoneditor.css b/src/jsoneditor.css similarity index 100% rename from public/jsoneditor.css rename to src/jsoneditor.css