-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🚚 Move to src + move to Solution target (#8)
Moves to `src` directory structure for JS projects. Moves pnpm install to Solution target, which will force a single run as desired.
- Loading branch information
Showing
6 changed files
with
42 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<PnpmInstallCheck>$(SolutionDir)node_modules/.dotnet-pnpm-install</PnpmInstallCheck> | ||
</PropertyGroup> | ||
|
||
<!-- Install pnpm dependencies at solution/workspace level. --> | ||
<Target Name="pnpm install" BeforeTargets="Restore" | ||
Inputs="$(SolutionDir)package.json;$(SolutionDir)pnpm-lock.yaml;$(SolutionDir)pnpm-workspace.yaml" | ||
Outputs="$(PnpmInstallCheck)" | ||
> | ||
<Exec Command="pnpm install --workspace-root" StandardOutputImportance="normal" /> | ||
|
||
<!-- Print restore message in similar way to csproj (no time though). --> | ||
<Message Text="Restored $(SolutionDir)package.json (pnpm install)." Importance="high" /> | ||
|
||
<!-- File used for .NET iterative builds (touch updates the timestamp). --> | ||
<Touch Files="$(PnpmInstallCheck)" AlwaysCreate="true" /> | ||
</Target> | ||
|
||
<!-- Clean --> | ||
<Target Name="Clean solution" AfterTargets="Clean"> | ||
<RemoveDir Directories="$(SolutionDir)artifacts" /> | ||
<RemoveDir Directories="$(PnpmInstallCheck)" /> | ||
</Target> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters