diff --git a/init.ps1 b/init.ps1 index e0567d4ea1..2b562c6178 100755 --- a/init.ps1 +++ b/init.ps1 @@ -25,4 +25,11 @@ Write-Host "Restoring Monaco Editor" ExecSafe { & $PSScriptRoot\tools\Restore-MonacoEditor.ps1 -RootFolder $PSScriptRoot } Write-Host "Done." -Write-Output "---------------------------------------" \ No newline at end of file +Write-Output "---------------------------------------" + +# Install nodes modules +Write-Host "Installing node modules" +Get-ChildItem $PSScriptRoot\src\ -rec |? { $_.FullName.EndsWith('DevToys.Blazor.csproj') } |% { + Write-Host "Installing node modules for $($_)..." + ExecSafe { & npm install $_.Directory } +} \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 0000000000..decc6400df --- /dev/null +++ b/package.json @@ -0,0 +1,5 @@ +{ + "dependencies": { + "devtoys": "file:src/app/dev/DevToys.Blazor" + } +} diff --git a/src/Directory.Packages.props b/src/Directory.Packages.props index 36dfc0bec5..bfe007fa68 100644 --- a/src/Directory.Packages.props +++ b/src/Directory.Packages.props @@ -6,8 +6,8 @@ 0.5.0 - - + + @@ -24,7 +24,7 @@ - + @@ -33,7 +33,7 @@ - + diff --git a/src/app/dev/DevToys.Blazor/DevToys.Blazor.csproj b/src/app/dev/DevToys.Blazor/DevToys.Blazor.csproj index 90736a6d4a..1eaee9f86a 100644 --- a/src/app/dev/DevToys.Blazor/DevToys.Blazor.csproj +++ b/src/app/dev/DevToys.Blazor/DevToys.Blazor.csproj @@ -5,8 +5,9 @@ DevToys.Blazor false ES6 + - + CompileTypeScript;GetTypeScriptOutputForPublishing;$(PrepareForBuildDependsOn)