Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump @babel/plugin-transform-runtime from 7.23.7 to 7.23.9 in /Material.Blazor #1232

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/GithubActionsRelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ env:
projectTest: 'Material.Blazor.Test/Material.Blazor.Test.csproj'
projectWeb: 'Material.Blazor.Website.WebAssembly/Material.Blazor.Website.WebAssembly.csproj'

materialBlazorMD3LibModule: 'Material.Blazor.MD3/wwwroot/Material.Blazor.MD3.lib.module.js'
outputDocFxMD3: ${{github.workspace}}\siteDocFxMD3
outputMBMD3: ${{github.workspace}}\siteMBMD3
outputWebMD3: ${{github.workspace}}\siteWebMD3
Expand Down Expand Up @@ -404,3 +405,8 @@ jobs:
-k ${{secrets.NUGET_API_KEY}}
-s https://api.nuget.org/v3/index.json

- name: Compute the SHA256 hash of material.blazor.md3.lib.module.js
shell: pwsh
run: |
.\computesha.ps1 ${{env.materialBlazorMD3LibModule}}

5 changes: 5 additions & 0 deletions .github/workflows/GithubActionsWIP.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ env:
projectTest: 'Material.Blazor.Test/Material.Blazor.Test.csproj'
projectWeb: 'Material.Blazor.Website.WebAssembly/Material.Blazor.Website.WebAssembly.csproj'

materialBlazorMD3LibModule: 'Material.Blazor.MD3/wwwroot/Material.Blazor.MD3.lib.module.js'
outputDocFxMD3: ${{github.workspace}}\siteDocFxMD3
outputMBMD3: ${{github.workspace}}/siteMBMD3
outputWebMD3: ${{github.workspace}}/siteWebMD3
Expand Down Expand Up @@ -546,6 +547,10 @@ jobs:
- name: Display MaterialBlazor package output Ꙫ
run: dir ${{env.outputMBMD3}}

- name: Compute the SHA256 hash of material.blazor.md3.lib.module.js
shell: pwsh
run: |
.\computesha.ps1 ${{env.materialBlazorMD3LibModule}}

############################################################################################################
# deployghpages-mbcurrent
Expand Down
10 changes: 10 additions & 0 deletions ComputeSHA.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
param(
[Parameter(Mandatory=$True,
ValueFromPipeline=$True)]
$filePath
)

$hasher = [System.Security.Cryptography.SHA256]::Create()
$content = Get-Content -Path $filePath -AsByteStream -Raw
$hash = [System.Convert]::ToBase64String($hasher.ComputeHash($content))
Write-Output ($filePath.ToString() + ": " + $hash)
8 changes: 4 additions & 4 deletions Material.Blazor.MD3/package-lock.json

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

2 changes: 1 addition & 1 deletion Material.Blazor.MD3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"@babel/plugin-transform-runtime": "^7.23.7",
"@babel/preset-env": "^7.23.8",
"@babel/preset-typescript": "^7.23.3",
"@material/web": "^1.1.2-nightly.6efc904.0",
"@material/web": "^1.1.2-nightly.a3b2be8.0",
"babel-loader": "^9.1.3",
"fork-ts-checker-webpack-plugin": "^9.0.2",
"material-components-web": "14.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,20 @@
<ProjectReference Include="..\Material.Blazor.Website.WebAssembly.MD3\Material.Blazor.Website.WebAssembly.MD3.csproj" />
</ItemGroup>

<!-- The following Target can be used to build a file at publish time containing SHA256 hashes of all JS and CSS static assets under wwwroot -->
<!--<Target Name="BuildHashes" AfterTargets="Publish">
<ItemGroup>
<FilesToHash Include="$(PublishDir)wwwroot\**\*.js;$(PublishDir)wwwroot\**\*.css" />
<HashFileOutput Include="$(PublishDir)asset-file-hashes.csv" />
</ItemGroup>

<GetFileHash Files="@(FilesToHash)" Algorithm="SHA256" HashEncoding="base64">
<Output TaskParameter="Items" ItemName="FilesWithHashes" />
</GetFileHash>

<Message Importance="High" Text="@(FilesWithHashes->'%(Identity): %(FileHash)')" />

<WriteLinesToFile File="@(HashFileOutput)" Lines="@(FilesWithHashes->'%22%(Identity)%22,%22%(FileHash)%22')" Overwrite="true" Encoding="Unicode" />
</Target>-->

</Project>
1 change: 1 addition & 0 deletions Material.Blazor.sln
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".Solution Items", ".Solutio
.gitignore = .gitignore
CODE_OF_CONDUCT.md = CODE_OF_CONDUCT.md
ctag.cmd = ctag.cmd
ComputeSHA.ps1 = ComputeSHA.ps1
.github\dependabot.yml = .github\dependabot.yml
Directory.Build.props = Directory.Build.props
filterConfig.yml = filterConfig.yml
Expand Down
91 changes: 76 additions & 15 deletions Material.Blazor/package-lock.json

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

2 changes: 1 addition & 1 deletion Material.Blazor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"@babel/core": "^7.23.7",
"@babel/plugin-transform-class-properties": "^7.23.3",
"@babel/plugin-transform-object-rest-spread": "^7.23.4",
"@babel/plugin-transform-runtime": "^7.23.7",
"@babel/plugin-transform-runtime": "^7.23.9",
"@babel/preset-env": "^7.23.8",
"@babel/preset-typescript": "^7.23.3",
"babel-loader": "^9.1.3",
Expand Down