[Prod] More logging #4
@@ -3,7 +3,6 @@
|
|||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"ng": "ng",
|
"ng": "ng",
|
||||||
"start:withInstall": "pnpm install && pnpm run start",
|
|
||||||
"start": "run-script-os",
|
"start": "run-script-os",
|
||||||
"start:win32": "ng serve --port %PORT% --configuration development",
|
"start:win32": "ng serve --port %PORT% --configuration development",
|
||||||
"start:default": "ng serve --port $PORT --configuration development",
|
"start:default": "ng serve --port $PORT --configuration development",
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ IResourceBuilder<ProjectResource> api = builder
|
|||||||
.WaitFor(postgres);
|
.WaitFor(postgres);
|
||||||
|
|
||||||
builder
|
builder
|
||||||
.AddNpmApp("Vegasco-Web", "../Vegasco-Web", scriptName: "start:withInstall")
|
.AddNpmApp("Vegasco-Web", "../Vegasco-Web")
|
||||||
.WithReference(api)
|
.WithReference(api)
|
||||||
.WaitFor(api)
|
.WaitFor(api)
|
||||||
.WithHttpEndpoint(port: 44200, env: "PORT", isProxied: false)
|
.WithHttpEndpoint(port: 44200, env: "PORT", isProxied: false)
|
||||||
|
|||||||
@@ -25,4 +25,14 @@
|
|||||||
<ProjectReference Include="..\Vegasco.Server.Api\Vegasco.Server.Api.csproj" />
|
<ProjectReference Include="..\Vegasco.Server.Api\Vegasco.Server.Api.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
<Target Name="RestoreNpm" BeforeTargets="Build" Condition=" '$(DesignTimeBuild)' != 'true' ">
|
||||||
|
<ItemGroup>
|
||||||
|
<PackageJsons Include="..\*\package.json" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
<!-- Install npm packages if node_modules is missing -->
|
||||||
|
<Message Importance="Normal" Text="Installing npm packages for %(PackageJsons.RelativeDir)" Condition="!Exists('%(PackageJsons.RootDir)%(PackageJsons.Directory)/node_modules')" />
|
||||||
|
<Exec Command="pnpm install" WorkingDirectory="%(PackageJsons.RootDir)%(PackageJsons.Directory)" Condition="!Exists('%(PackageJsons.RootDir)%(PackageJsons.Directory)/node_modules')" />
|
||||||
|
</Target>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
Reference in New Issue
Block a user