Skip to content
Merged
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
22 changes: 0 additions & 22 deletions azure-pipelines.bundlesize.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,26 +27,4 @@ jobs:
- script: yarn bundlesizecollect
Comment thread
Hotell marked this conversation as resolved.
displayName: 'Collate Bundle Size Information'

- task: PublishBuildArtifacts@1
displayName: 'Publish Bundle Size information to Azure Dev Ops Artifacts'
inputs:
PathtoPublish: 'apps/test-bundles/dist/bundlesizes.json'

- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact dist folder upon build for debug'
inputs:
PathtoPublish: 'apps/test-bundles/dist'
ArtifactName: distdrop

- template: .devops/templates/cleanup.yml

- job: lightrail
pool: server
dependsOn: build
steps:
- task: odefun.odsp-lightrail-tasks-partner.odsp-lightrail-tasks-SizeAuditorWorker.SizeAuditorWorker@0
displayName: 'Size Auditor Check on LightRail'
inputs:
connectedServiceName: lowimpact
sourceVersionMessage: '$(Build.SourceVersionMessage)'
sourceRepositoryUrl: 'https://github.com/microsoft/fluentui'
4 changes: 4 additions & 0 deletions scripts/bundle-size-collect.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ items.forEach(item => {

fs.writeFileSync(path.join(distRoot, outputFilename), JSON.stringify({ sizes }));

console.log('Bundle size Collect:');
console.log('====================');
console.log(sizes);

function getFilesizeInBytes(fileName) {
return fs.statSync(fileName).size;
}
Expand Down