From 968e96d2fdce34e25d3297a4ca42c8fdd5ba1487 Mon Sep 17 00:00:00 2001 From: ndom91 Date: Sun, 5 Sep 2021 00:07:16 +0200 Subject: [PATCH] feat: cleanup dev script output --- netbox/project-static/develop.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/netbox/project-static/develop.js b/netbox/project-static/develop.js index 67785981a..7b952caa0 100644 --- a/netbox/project-static/develop.js +++ b/netbox/project-static/develop.js @@ -5,30 +5,30 @@ const sassWatcher = chokidar.watch('styles/**/*.scss') const tsWatcher = chokidar.watch('src/**/*.ts') const collectStatic = (type) => { - console.log('bundling...') + console.log('[*] bundling...') let args = "" if (type === 'style') args += "--styles" if (type === 'script') args += "--scripts" execSync(`node bundle.js ${args}`) - console.log('collecting...') + console.log('[*] collecting...') exec("../../venv/bin/python3 ../manage.py collectstatic --no-input", (err, stdout, stderr) => { err && console.error(err) - stdout && console.log(stdout) - stderr && console.log('python err:',stderr) - console.log('waiting...') + stdout && console.log(`[*] ${stdout.trim()}`) + stderr && console.log('[**] Python Err:',stderr) + console.log('[*] waiting...\n') }) } sassWatcher .on('change', path => { - console.log(`Sass file ${path} has changed`) + console.log(`[*] '${path}' has changed`) collectStatic('style') }) tsWatcher .on('change', path => { - console.log(`TS file ${path} has changed`) + console.log(`[*] '${path}' has changed`) collectStatic('script') })