File size: 375 Bytes
877add7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
"""UI helper backend entrypoint (optional)."""

from __future__ import annotations

import os
import subprocess


def run_frontend_dev() -> int:
    cwd = os.path.join(os.path.dirname(__file__), "frontend")
    proc = subprocess.run(["npm", "run", "dev"], cwd=cwd, check=False)
    return proc.returncode


if __name__ == "__main__":
    raise SystemExit(run_frontend_dev())