From b81f789f271555529d39c2a65aedde638df7eb40 Mon Sep 17 00:00:00 2001 From: Wesley Bomar Date: Mon, 17 May 2021 15:44:54 -0500 Subject: [PATCH] GH-191: Add prewatch (same task as prebuild). --- package.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index a407678aa..c0881c9ab 100644 --- a/package.json +++ b/package.json @@ -4,10 +4,12 @@ "license": "MIT", "description": "The core CMS codebase for all new and updated TACC CMS sites.", "scripts": { - "prebuild": "python3 taccsite_cms/settings_to_json.py", + "prebuild": "npm run build:settings", + "prewatch": "npm run build:settings", "build": "npm run build:css", "build:css": "node postcss.js", - "watch": "npm-watch" + "watch": "npm-watch", + "build:settings": "python3 taccsite_cms/settings_to_json.py" }, "// scripts": { "prebuild": "Export Django settings to JSON (for Node to use)",