Add initial JavaScript/TypeScript support

Add JS/TS support to `versa install`.

Run `npm install`, `yarn` or `pnpm install` based on which files are
present in the project.
This commit is contained in:
Oliver Davies 2024-02-21 23:32:59 +00:00
parent 72dea5070b
commit c5248bb061
3 changed files with 53 additions and 1 deletions

View file

@ -16,6 +16,14 @@ abstract class AbstractCommand extends Command
description: 'Any additonal arguments to pass to the command.',
);
$this->addOption(
name: 'language',
shortcut: 'l',
mode: InputArgument::OPTIONAL,
description: 'The project language',
suggestedValues: ['php', 'javascript'],
);
$this->addOption(
name: 'type',
shortcut: 't',