From 08294018fcc84dd2f5f06bf9754a6b1a131145a4 Mon Sep 17 00:00:00 2001 From: Sebastian Wilzbach Date: Thu, 11 Oct 2018 14:29:56 +0200 Subject: [PATCH] npm run scripts: wait for the spawned process to finish Using `wait` is beneficial as (1) it shows the clear intention of running programs in parallel to the reader and (2) the CLI actually waits for the processes to finish and not suddenly dumps texts after a few seconds. See also: http://tldp.org/LDP/abs/html/x9644.html --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 4acbbfc..e0d409f 100644 --- a/package.json +++ b/package.json @@ -8,8 +8,8 @@ "build:js-dev": "webpack --mode development", "build:js": "webpack --mode production", "build:py": "node ./extract-meta src/lib/components > my_dash_component/metadata.json && copyfiles package.json my_dash_component && python -c \"import dash; dash.development.component_loader.generate_classes('my_dash_component', 'my_dash_component/metadata.json')\"", - "build:all": "npm run build:js & npm run build:py", - "build:all-dev": "npm run build:js-dev & npm run build:py" + "build:all": "npm run build:js & npm run build:py; wait", + "build:all-dev": "npm run build:js-dev & npm run build:py; wait" }, "author": "my-name my-email", "license": "my-license",