Skip to content
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
11 changes: 11 additions & 0 deletions build-tools/tasks/copy-build-tools.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
const { copyTask } = require('../utils/gulp-utils');

const copyBuildTools = copyTask(
'build-tools',
'node_modules/@cloudscape-design/build-tools/**/*',
'lib/dev-pages/internal/build-tools'
);

module.exports = copyBuildTools;
1 change: 1 addition & 0 deletions build-tools/tasks/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ module.exports = {
integ: require('./integ'),
motion: require('./motion'),
copyFiles: require('./copy-files'),
copyBuildTools: require('./copy-build-tools'),
themeableSource: require('./themeable-source'),
bundleVendorFiles: require('./bundle-vendor-files'),
sizeLimit: require('./size-limit'),
Expand Down
3 changes: 2 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const {
integ,
motion,
copyFiles,
copyBuildTools,
themeableSource,
bundleVendorFiles,
sizeLimit,
Expand All @@ -35,7 +36,7 @@ const quickBuild = series(
exports.clean = clean;
exports['quick-build'] = quickBuild;
exports.i18n = generateI18nMessages;
exports.build = series(quickBuild, parallel(buildPages, themeableSource, docs, sizeLimit));
exports.build = series(quickBuild, parallel(buildPages, themeableSource, docs, sizeLimit, copyBuildTools));
exports.test = series(unit, integ, a11y);
exports['test:unit'] = unit;
exports['test:integ'] = integ;
Expand Down
4 changes: 2 additions & 2 deletions pages/alert/permutations.page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
// SPDX-License-Identifier: Apache-2.0
import React from 'react';

import { createPermutations, PermutationsView } from '@cloudscape-design/build-tools/lib/dev-pages-utils';

import Alert, { AlertProps } from '~components/alert';
import Button from '~components/button';
import ExpandableSection from '~components/expandable-section';
import Link from '~components/link';

import createPermutations from '../utils/permutations';
import PermutationsView from '../utils/permutations-view';
import ScreenshotArea from '../utils/screenshot-area';
import { i18nStrings } from './common';

Expand Down
Loading