Explorar el Código

Updated UI image build commands from parcel → react-router/vite && Th… (#3827)

Signed-off-by: Ebad Shahid <ebad@ebad.dev>
Ebad hace 1 semana
padre
commit
dc15698a06
Se han modificado 1 ficheros con 5 adiciones y 4 borrados
  1. 5 4
      Tiltfile.opencost

+ 5 - 4
Tiltfile.opencost

@@ -78,9 +78,9 @@ def run_opencost(options):
     local_resource(
     local_resource(
         name='build-ui',
         name='build-ui',
         dir='../opencost-ui',
         dir='../opencost-ui',
-        cmd='npx parcel build src/index.html',
+        cmd='npm run build',
         deps=[
         deps=[
-            '../opencost-ui/src',
+            '../opencost-ui/app',
             '../opencost-ui/package.json',
             '../opencost-ui/package.json',
         ],
         ],
         allow_parallel=True,
         allow_parallel=True,
@@ -93,13 +93,14 @@ def run_opencost(options):
         context='../opencost-ui',
         context='../opencost-ui',
         dockerfile='../opencost-ui/Dockerfile.debug',
         dockerfile='../opencost-ui/Dockerfile.debug',
         only=[
         only=[
-            'dist',
+            'build/client',
             'nginx.conf',
             'nginx.conf',
             'default.nginx.conf.template',
             'default.nginx.conf.template',
             'docker-entrypoint.sh',
             'docker-entrypoint.sh',
+            'THIRD_PARTY_LICENSES.txt',
         ],
         ],
         live_update=[
         live_update=[
-            sync('../opencost-ui/dist', '/var/www'),
+            sync('../opencost-ui/build/client', '/var/www'),
         ],
         ],
     )
     )