Skip to content

Commit

Permalink
Added cleanup routine for testing to elimiate files packing in NuGet.
Browse files Browse the repository at this point in the history
  • Loading branch information
EdCharbeneau committed Aug 10, 2020
1 parent f867ddb commit 90cdabf
Show file tree
Hide file tree
Showing 3 changed files with 99 additions and 24 deletions.
22 changes: 2 additions & 20 deletions BlazorSize/BlazorPro.BlazorSize.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,6 @@
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="3.1.6" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="3.1.6" />
<PackageReference Include="Microsoft.TypeScript.MSBuild" Version="3.9.7">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

<!-- NuGet info -->
Expand All @@ -55,25 +51,11 @@
<PackagePath></PackagePath>
</None>
<!-- Exclude -->
<!-- /scripts/test/*.js is removed via rimraf in the testing phase -->
<Content Include="*.ts">
<Pack>False</Pack>
</Content>
<Content Include="scripts\tests\*.js">
<Pack>False</Pack>
</Content>
<Content Remove="scripts\tests\blazorSize.js" />
<Content Remove="scripts\tests\blazorSize.test.js" />
<Content Remove="scripts\tests\blazorSizeMedia.js" />
<Content Remove="scripts\tests\blazorSizeResize.js" />
<None Remove="scripts\tests\blazorSize.js" />
<None Remove="scripts\tests\blazorSize.test.js" />
<None Remove="scripts\tests\blazorSizeMedia.js" />
<None Remove="scripts\tests\blazorSizeResize.js" />
<Content Update="package*.json">
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
<Pack>False</Pack>
</Content>
<Content Update="tsconfig*.json">
<Content Update="*.json">
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
<Pack>False</Pack>
</Content>
Expand Down
10 changes: 6 additions & 4 deletions BlazorSize/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
"description": "",
"private": true,
"scripts": {
"test": "tsc -p tsconfig.json && jest",
"build": "tsc -p tsconfig.build.json && npm run bundle",
"bundle": "rollup -c rollup.config.js"
"test": "tsc -p tsconfig.json && jest && npm run posttest",
"posttest": "rimraf scripts/tests/*.js",
"bundle": "rollup -c rollup.config.js",
"build": "tsc -p tsconfig.build.json && npm run bundle"
},
"author": "",
"license": "ISC",
Expand All @@ -17,7 +18,8 @@
"rollup": "^2.23.1",
"rollup-plugin-terser": "^5.3.0",
"ts-jest": "^25.5.1",
"typescript": "^3.9.7"
"typescript": "^3.9.7",
"rimraf": "3.0.2"
},
"dependencies": {}
}
91 changes: 91 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 90cdabf

Please sign in to comment.