From 63d7ff3ed62bd5d331720fdd266aea67a4c5f5c9 Mon Sep 17 00:00:00 2001 From: David Baker Date: Fri, 10 Jul 2015 18:09:30 +0100 Subject: [PATCH] Build the logic too into the same hierarchy as it is unbuilt so it can be used either processed or unprocessed. Does involve having a dir called 'src' in the built products directory, and abusing jsx as a cross-platform version of cp (there is no jsx in the src dir). --- package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index ea7d2bf9..1b55cbef 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,9 @@ "main": "src/index.js", "style": "bundle.css", "scripts": { - "build:js": "jsx skins/base/views/ build", + "build:skins": "jsx skins build/skins", + "build:logic": "jsx src build/src", + "build:js": "npm run build:skins && npm run build:logic", "start:js": "jsx -w skins/base/views/ build --source-map-inline", "build:css": "catw 'skins/base/css/**/*.css' -o bundle.css -c uglifycss --no-watch", "start:css": "catw 'skins/base/css/**/*.css' -o bundle.css -v",