forked from Lombiq/NPM-Targets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Lombiq.Npm.Targets.props
31 lines (25 loc) · 1.25 KB
/
Lombiq.Npm.Targets.props
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<NodeModulesFolderPath>$(MSBuildProjectDirectory)\node_modules</NodeModulesFolderPath>
</PropertyGroup>
<PropertyGroup>
<ExecNpmInstallCommand>true</ExecNpmInstallCommand>
<NpmInstallCommand>npm install</NpmInstallCommand>
<PnpmInstallCommand>pnpm install</PnpmInstallCommand>
<CreateNpmInstallStampFile>true</CreateNpmInstallStampFile>
<NpmInstallStampFile>$(NodeModulesFolderPath)\.install-stamp</NpmInstallStampFile>
</PropertyGroup>
<PropertyGroup>
<ExecDotnetPostcleanCommand>true</ExecDotnetPostcleanCommand>
<NpmDotnetPostcleanCommand>npm run dotnet-postclean --if-present</NpmDotnetPostcleanCommand>
</PropertyGroup>
<PropertyGroup>
<ExecDotnetPrebuildCommand>true</ExecDotnetPrebuildCommand>
<NpmDotnetPrebuildCommand>npm run dotnet-prebuild --if-present</NpmDotnetPrebuildCommand>
<CreateDotnetPrebuildStampFile>true</CreateDotnetPrebuildStampFile>
<NpmDotnetPrebuildStampFile>$(NodeModulesFolderPath)\.dotnet-prebuild-stamp</NpmDotnetPrebuildStampFile>
</PropertyGroup>
<ItemGroup>
<NpmDotnetPrebuildWatchedFiles Include="package.json;Assets/**/*.*;Scripts/**/*.*;Styles/**/*.*"/>
</ItemGroup>
</Project>