Files
gnatdashboard/webui/create_webui_thirdparty.py
Adrien Boulanger e4f9554a45 T416-023: Update webui to python3
Remove node-sass which is not yet compatible with python3
(need to wait for the 5+ release) => replace it by dart-sass.
Remove angular-cli which is expecting node-sass.
Update node-gyp to a version using python3.
Update the packaging script via 2to3.

Change-Id: Ie4c659253ffa4d2f942c4b4a9cfcda802e47a7b2
2020-09-21 17:44:47 +02:00

14 lines
356 B
Python
Executable File

#!/usr/bin/env python
import time
from subprocess import call
DATETIME = time.strftime('%Y-%m-%d-%H-%M-%S')
NODE_MODULE_PATH = './node_modules/'
TAR_NAME = 'webui_node_modules_' + DATETIME + '.tar.gz '
TAR_CMD = "tar -zcf " + TAR_NAME + NODE_MODULE_PATH
print("Executing : " + TAR_CMD)
print("Can take a little bit of time...")
call(TAR_CMD.split(' '))