-
Notifications
You must be signed in to change notification settings - Fork 2
/
Lombiq.Npm.Targets.props
41 lines (35 loc) · 2.11 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
32
33
34
35
36
37
38
39
40
41
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<!-- The directory in which npm commands will be executed. Can be modified by consuming projects. -->
<NpmTargetsWorkingDirectory>$(MSBuildProjectDirectory)</NpmTargetsWorkingDirectory>
<NodeModulesFolderPath>$(MSBuildProjectDirectory)/node_modules</NodeModulesFolderPath>
<PackageJson>$(MSBuildProjectDirectory)/package.json</PackageJson>
<!-- The environment variables defined by this property will be passed to all (p)npm invocations. Useful for
consuming projects that want to pass additional settings to the invoked scripts. -->
<NpmCommandsEnvironmentVariables></NpmCommandsEnvironmentVariables>
</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="$(MSBuildProjectDirectory)/package.json" />
<NpmDotnetPrebuildWatchedFiles Include="$(MSBuildProjectDirectory)/Assets/**/*.*" />
<NpmDotnetPrebuildWatchedFiles Include="$(MSBuildProjectDirectory)/Scripts/**/*.*" />
<NpmDotnetPrebuildWatchedFiles Include="$(MSBuildProjectDirectory)/Styles/**/*.*" />
<NpmCommandsEnvironmentVariables Include="$(NpmCommandsEnvironmentVariables)" />
</ItemGroup>
</Project>