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
4 changes: 2 additions & 2 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ program
.name('create-playwright')
.description('Getting started with writing end-to-end tests with Playwright.')
.argument('[rootDir]', 'Target directory for the Playwright project', '.')
.option('--browser <browser...>', 'browsers to use in default config', ['chromium', 'firefox', 'webkit'])
.option('--browser <browser...>', `browsers to use in default config (default: 'chromium,firefox,webkit')`)
.option('--no-browsers', 'do not download browsers (can be done manually via \'npx playwright install\')')
.option('--no-examples', 'do not create example test files')
.option('--install-deps', 'install dependencies')
Expand All @@ -33,7 +33,7 @@ program
.option('--ct', 'install Playwright Component testing')
.option('--quiet', 'do not ask for interactive input prompts')
.option('--gha', 'install GitHub Actions')
.option('--lang <language>', 'language to use (js, TypeScript)', 'TypeScript')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we actually wanted to drop js 😄

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh, then let's remove all the code that goes with it!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was inadvertent change, but I am for removing the code related to js.

.option('--lang <language>', 'language to use (js, TypeScript)')
.action(async (rootDir, options) => {

const cliOptions: CliOptions = {
Expand Down
4 changes: 2 additions & 2 deletions src/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ export type PromptOptions = {
const assetsDir = path.join(__dirname, '..', 'assets');

export type CliOptions = {
lang: string;
browser: string[];
lang?: string;
browser?: string[];
noBrowsers?: boolean;
noExamples?: boolean;
installDeps?: boolean;
Expand Down