dotnet / tye

Tye is a tool that makes developing, testing, and deploying microservices and distributed applications easier. Project Tye includes a local orchestrator to make developing microservices easier and the ability to deploy microservices to Kubernetes with minimal configuration.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

esproj support

rolfik-mycronic opened this issue · comments

Could esproj javascript projects be supported in service project value of tye.yaml?

We have backend csproj services which work fine with tye.

We have also UI vue frontends.
It would be nice to execute the whole system with tye.
To do it we would just add vue esproj services like project: ui.esproj.
I can add them now with executable service types:

services:
- name: ui
  executable: '%PROGRAMFILES%\nodejs\npm.cmd'
  args: run serve -- --port #
  bindings:
  - port: #
    protocol: http

Executable with args is also defined in esproj:

<Project Sdk="Microsoft.VisualStudio.JavaScript.Sdk/0.5.83-alpha">
  <PropertyGroup>
    <StartupCommand>npm run serve -- --port #</StartupCommand>
    <JavaScriptTestRoot>.\</JavaScriptTestRoot>
    <JavaScriptTestFramework>Jest</JavaScriptTestFramework>
    <!-- Command to run on project build -->
    <BuildCommand>
    </BuildCommand>
    <!-- Command to create an optimized build of the project that's ready for publishing -->
    <ProductionBuildCommand>npm run build</ProductionBuildCommand>
    <!-- Folder where production build objects will be placed -->
    <BuildOutputFolder>$(MSBuildProjectDirectory)\dist</BuildOutputFolder>
  </PropertyGroup>
</Project>

We use tye only for development and docker compose for deployment.

Thank You