Skip to content

Commit

Permalink
chore: Add size-limit check for runtime API (#2894)
Browse files Browse the repository at this point in the history
  • Loading branch information
just-boris authored Oct 18, 2024
1 parent d019cd3 commit b88a10d
Show file tree
Hide file tree
Showing 5 changed files with 629 additions and 1 deletion.
1 change: 1 addition & 0 deletions build-tools/tasks/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ module.exports = {
licenses: require('./licenses'),
themeableSource: require('./themeable-source'),
bundleVendorFiles: require('./bundle-vendor-files'),
sizeLimit: require('./size-limit'),
};
6 changes: 6 additions & 0 deletions build-tools/tasks/size-limit.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
const execa = require('execa');
const { task } = require('../utils/gulp-utils');

module.exports = task('size-limit', () => execa('size-limit', { stdio: 'inherit' }));
3 changes: 2 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const {
licenses,
themeableSource,
bundleVendorFiles,
sizeLimit,
} = require('./build-tools/tasks');

const quickBuild = series(
Expand All @@ -34,7 +35,7 @@ const quickBuild = series(
exports.clean = clean;
exports['quick-build'] = quickBuild;
exports.i18n = generateI18nMessages;
exports.build = series(quickBuild, parallel(buildPages, themeableSource, docs));
exports.build = series(quickBuild, parallel(buildPages, themeableSource, docs, sizeLimit));
exports.test = series(unit, integ, a11y);
exports['test:unit'] = unit;
exports['test:integ'] = integ;
Expand Down
Loading

0 comments on commit b88a10d

Please sign in to comment.