From 419c3fb5a44625a943c1d11b9a6f5f458582b2a2 Mon Sep 17 00:00:00 2001 From: Connor Sullivan Date: Sun, 11 Aug 2024 17:18:53 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=9A=20Move=20to=20src=20+=20move=20to?= =?UTF-8?q?=20Solution=20target?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Moves to `src` directory structure for JS projects. Moves pnpm install to Solution target, which will force a single run as desired. --- Directory.Solution.targets | 25 +++++++++++++ client/Directory.Build.props | 2 +- client/Directory.Build.targets | 47 +++++++------------------ client/hello-js/{ => src}/hello.test.ts | 0 client/hello-js/{ => src}/hello.ts | 0 dotnet-with-esproj-example.sln | 5 +-- 6 files changed, 42 insertions(+), 37 deletions(-) create mode 100644 Directory.Solution.targets rename client/hello-js/{ => src}/hello.test.ts (100%) rename client/hello-js/{ => src}/hello.ts (100%) diff --git a/Directory.Solution.targets b/Directory.Solution.targets new file mode 100644 index 0000000..8193a50 --- /dev/null +++ b/Directory.Solution.targets @@ -0,0 +1,25 @@ + + + $(SolutionDir)node_modules/.dotnet-pnpm-install + + + + + + + + + + + + + + + + + + + diff --git a/client/Directory.Build.props b/client/Directory.Build.props index 3db7d68..2946d50 100644 --- a/client/Directory.Build.props +++ b/client/Directory.Build.props @@ -12,7 +12,7 @@ - + false diff --git a/client/Directory.Build.targets b/client/Directory.Build.targets index 73d5eef..750e33c 100644 --- a/client/Directory.Build.targets +++ b/client/Directory.Build.targets @@ -10,30 +10,32 @@ --list-different --write - - + + + + + + - - + + - - + + - - @@ -49,27 +51,4 @@ /> - - - - - - - $([System.DateTime]::UtcNow.Ticks) - - - - - - $([System.DateTime]::UtcNow.Ticks) - $([MSBuild]::Subtract($(FinishTicks), $(StartTicks))) - $([System.TimeSpan]::FromTicks($(ElapsedTicks)).Milliseconds) - - - - - diff --git a/client/hello-js/hello.test.ts b/client/hello-js/src/hello.test.ts similarity index 100% rename from client/hello-js/hello.test.ts rename to client/hello-js/src/hello.test.ts diff --git a/client/hello-js/hello.ts b/client/hello-js/src/hello.ts similarity index 100% rename from client/hello-js/hello.ts rename to client/hello-js/src/hello.ts diff --git a/dotnet-with-esproj-example.sln b/dotnet-with-esproj-example.sln index 7d9d584..3164f19 100644 --- a/dotnet-with-esproj-example.sln +++ b/dotnet-with-esproj-example.sln @@ -33,10 +33,11 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "shared", "shared", "{161728 .editorconfig = .editorconfig .gitattributes = .gitattributes .gitignore = .gitignore - Workspace.props = Workspace.props - LICENSE = LICENSE ci-build.ps1 = ci-build.ps1 + Directory.Solution.targets = Directory.Solution.targets + LICENSE = LICENSE .github\workflows\pipeline.yaml = .github\workflows\pipeline.yaml + Workspace.props = Workspace.props EndProjectSection EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "projects", "projects", "{2E75741F-092F-4C2C-A182-AAF9F38CEC58}"