1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00

move ui & assets to package directory

This commit is contained in:
checktheroads
2020-02-24 09:06:07 -07:00
parent 6af79bda39
commit 65b1787ba7
64 changed files with 4 additions and 6 deletions

View File

Before

Width:  |  Height:  |  Size: 8.0 KiB

After

Width:  |  Height:  |  Size: 8.0 KiB

View File

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 23 KiB

View File

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

View File

Before

Width:  |  Height:  |  Size: 849 B

After

Width:  |  Height:  |  Size: 849 B

View File

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View File

Before

Width:  |  Height:  |  Size: 4.4 KiB

After

Width:  |  Height:  |  Size: 4.4 KiB

View File

Before

Width:  |  Height:  |  Size: 4.1 KiB

After

Width:  |  Height:  |  Size: 4.1 KiB

View File

Before

Width:  |  Height:  |  Size: 253 KiB

After

Width:  |  Height:  |  Size: 253 KiB

View File

Before

Width:  |  Height:  |  Size: 255 KiB

After

Width:  |  Height:  |  Size: 255 KiB

View File

Before

Width:  |  Height:  |  Size: 255 KiB

After

Width:  |  Height:  |  Size: 255 KiB

View File

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

View File

@@ -88,7 +88,7 @@ async def build_ui(app_path):
import asyncio
from pathlib import Path
ui_dir = Path(__file__).parent.parent / "ui"
ui_dir = Path(__file__).parent / "ui"
build_dir = app_path / "static" / "ui"
build_command = "node_modules/.bin/next build"
@@ -262,7 +262,7 @@ def migrate_static_assets(app_path):
from pathlib import Path
from filecmp import dircmp
asset_dir = Path(__file__).parent.parent / "images"
asset_dir = Path(__file__).parent / "images"
target_dir = app_path / "static" / "images"
target_exists = target_dir.exists()
@@ -302,7 +302,7 @@ async def check_node_modules():
"""
from pathlib import Path
ui_path = Path(__file__).parent.parent / "ui"
ui_path = Path(__file__).parent / "ui"
node_modules = ui_path / "node_modules"
exists = node_modules.exists()
@@ -327,7 +327,7 @@ async def node_initial(dev_mode=False):
import asyncio
from pathlib import Path
ui_path = Path(__file__).parent.parent / "ui"
ui_path = Path(__file__).parent / "ui"
mode = ""
if not dev_mode:

View File

@@ -11,8 +11,6 @@ readme = "README.md"
homepage = "https://hyperglass.io"
repository = "https://github.com/checktheroads/hyperglass"
license = "BSD-3-Clause-Clear"
packages = [{include = "images"}, {include = "ui"}]
include = ["images/**/*", "ui/**/*"]
[tool.poetry.scripts]
hyperglass = "hyperglass.console:CLI"