Yarn.MSBuild
1.0.1
See the version list below for details.
dotnet add package Yarn.MSBuild --version 1.0.1
NuGet\Install-Package Yarn.MSBuild -Version 1.0.1
<PackageReference Include="Yarn.MSBuild" Version="1.0.1" />
paket add Yarn.MSBuild --version 1.0.1
#r "nuget: Yarn.MSBuild, 1.0.1"
// Install Yarn.MSBuild as a Cake Addin #addin nuget:?package=Yarn.MSBuild&version=1.0.1 // Install Yarn.MSBuild as a Cake Tool #tool nuget:?package=Yarn.MSBuild&version=1.0.1
Usage
Default usage
This package is designed for use with ASP.NET Core projects.
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>netcoreapp2.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.0" />
<PackageReference Include="Yarn.MSBuild" Version="1.0.0" />
</ItemGroup>
</Project>
Project layout:
+ WebApplication.csproj
+ package.json
+ Startup.cs
- wwwroot
+ app.js
+ site.css
Running dotnet build
or msbuild.exe /t:Build
will automatically invoke yarn install
.
Additional options
<PropertyGroup>
<SuppressAutoYarn>true</SuppressAutoYarn>
<YarnBuildCommand>run build</YarnBuildCommand>
<YarnDir>wwwroot/</YarnDir>
</PropertyGroup>
Using the task
The Yarn
task supports the following parameters
[Optional]
string Command The arguments to pass to yarn.
[Optional]
string ExecutablePath Where to find yarn (*nix) or yarn.cmd (Windows)
[Optional]
string WorkingDirectory The directory in which to execute the yarn command
<Project>
<Target Name="RunYarnCommands">
<Yarn />
<Yarn Command="upgrade" />
<Yarn Command="run test" WorkingDirectory="wwwroot/" />
<Yarn Command="run cmd" ExecutablePath="/usr/local/bin/yarn" />
</Target>
</Project>
About
This is not an official Yarn project. See LICENSE.txt and the Third Party Notice for more details.
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.6
- No dependencies.
-
.NETStandard 1.5
- No dependencies.
NuGet packages (3)
Showing the top 3 NuGet packages that depend on Yarn.MSBuild:
Package | Downloads |
---|---|
MintPlayer.AspNetCore.NodeServices
This package contains the abandoned node services. |
|
Rixian.MSBuild.TailwindCSS
Adds build targets required to work with TailwindCSS in your project. |
|
Blazor.BrowserExtension.Authentication
Adds MSAL authentication features to browser extensions written with Blazor.BrowserExtension. |
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on Yarn.MSBuild:
Repository | Stars |
---|---|
JeringTech/Javascript.NodeJS
Invoke Javascript in NodeJS, from C#
|
Version | Downloads | Last updated | |
---|---|---|---|
1.22.19 | 212,342 | 10/8/2022 | |
1.22.17 | 97,303 | 10/23/2021 | |
1.22.15 | 54,212 | 10/7/2021 | |
1.22.10 | 106,968 | 10/4/2020 | |
1.22.5 | 23,126 | 8/29/2020 | |
1.22.4 | 113,345 | 3/10/2020 | |
1.22.1 | 647 | 3/8/2020 | |
1.22.0 | 130,471 | 2/6/2020 | |
1.21.1 | 9,178 | 12/15/2019 | |
1.16.0 | 57,612 | 6/21/2019 | |
1.15.2 | 524,690 | 5/7/2019 | |
1.13.0 | 61,717 | 2/22/2019 | |
1.12.3 | 79,794 | 11/26/2018 | |
1.7.0 | 15,515 | 6/26/2018 | |
1.6.0 | 1,147 | 6/26/2018 | |
1.5.2 | 5,874 | 5/1/2018 | |
1.5.1 | 2,322 | 4/16/2018 | |
1.3.4 | 2,730 | 3/4/2018 | |
1.3.3 | 4,079 | 11/30/2017 | |
1.3.2 | 1,087 | 11/29/2017 | |
1.2.1 | 9,402 | 11/3/2017 | |
1.2.0 | 1,302 | 10/28/2017 | |
1.1.0 | 1,273 | 10/15/2017 | |
1.0.2 | 2,158 | 10/15/2017 | |
1.0.1 | 1,542 | 10/1/2017 | |
1.0.0 | 1,557 | 9/10/2017 | |
0.27.5 | 1,422 | 7/18/2017 | |
0.24.6 | 2,312 | 5/31/2017 | |
0.23.2 | 1,159 | 5/3/2017 | |
0.21.3-beta | 1,415 | 3/11/2017 | |
0.21.3-alpha | 1,299 | 3/4/2017 |