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
5 changes: 4 additions & 1 deletion bin/paragon-scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,10 @@ const COMMANDS = {
},
{
name: '--defaultThemeVariants',
description: `Specifies default theme variants. Defaults to a single 'light' theme variant.
description: `Specifies which theme variants are marked as defaults in the generated theme-urls.json.
Consuming applications (Open edX micro-frontends) use theme-urls.json to determine
which theme CSS files to load; variants listed here are loaded automatically without
requiring explicit configuration.
You can provide multiple default theme variants by passing multiple values, for
example: \`--defaultThemeVariants light dark\`
`,
Expand Down
10 changes: 9 additions & 1 deletion lib/__tests__/help.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,15 @@ describe('helpCommand', () => {
expect(console.log).toHaveBeenCalledWith(
expect.stringContaining(`${chalk.yellow.bold('--defaultThemeVariants')} ${chalk.grey('Default: light')}`),
);
expect(console.log).toHaveBeenCalledWith(expect.stringContaining('Specifies default theme variants'));
expect(console.log).toHaveBeenCalledWith(
expect.stringContaining('Specifies which theme variants are marked as defaults in the generated theme-urls.json.'),
);
expect(console.log).toHaveBeenCalledWith(
expect.stringContaining('Consuming applications (Open edX micro-frontends) use theme-urls.json'),
);
expect(console.log).toHaveBeenCalledWith(
expect.stringContaining('variants listed here are loaded automatically without'),
);
expect(console.log).toHaveBeenCalledWith(expect.stringContaining('You can provide multiple default theme variants'));
expect(console.log).toHaveBeenCalledWith(expect.stringContaining('example: `--defaultThemeVariants light dark`'));
/* eslint-enable no-console */
Expand Down