-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactored WebUI to use Parcel as packer
- Loading branch information
1 parent
17ab7ce
commit e07f926
Showing
33 changed files
with
10,272 additions
and
884 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,7 @@ | |
.vscode/launch.json | ||
.vscode/ipch | ||
src/webui/*.gzip | ||
webui/.cache | ||
webui/dist | ||
webui/node_modules | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,6 +61,7 @@ | |
"license-header-manager.excludeExtensions": [ | ||
".js", | ||
".css", | ||
".py" | ||
".py", | ||
".vue" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
from shutil import copyfile | ||
from subprocess import check_output, CalledProcessError | ||
import sys | ||
import os | ||
import platform | ||
import subprocess | ||
|
||
Import("env") | ||
|
||
def is_tool(name): | ||
cmd = "where" if platform.system() == "Windows" else "which" | ||
try: | ||
check_output([cmd, name]) | ||
return True | ||
except: | ||
return False | ||
|
||
def build_web(): | ||
if is_tool("npm"): | ||
os.chdir("webui") | ||
print("Attempting to build webpage...") | ||
try: | ||
if platform.system() == "Windows": | ||
print(check_output(["npm.cmd", "run", "build"])) | ||
else: | ||
print(check_output(["npm", "run", "build"])) | ||
finally: | ||
os.chdir(".."); | ||
|
||
build_web() |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.