feat: support vue.js in node

resolves #1171
This commit is contained in:
Jan De Dobbeleer 2022-02-03 11:48:21 +01:00 committed by Jan De Dobbeleer
parent fffb0faeb1
commit 08f7a6a17e
2 changed files with 3 additions and 2 deletions

View file

@ -29,7 +29,8 @@ Display the currently active node version.
- missing_command_text: `string` - text to display when the command is missing - defaults to empty
- display_mode: `string` - determines when the segment is displayed
- `always`: The segment is always displayed
- `files`: The segment is only displayed when `*.js`, `*.ts`, or `package.json` files are present (default)
- `files`: The segment is only displayed when `*.js`, `*.ts`, `package.json`, `.nvmrc`, `pnpm-workspace.yaml`,
`.pnpmfile.cjs`, `.npmrc` or `.vue` files are present (default)
- fetch_package_manager: `boolean` - define if the current project uses Yarn or NPM - defaults to `false`
- yarn_icon: `string` - the icon/text to display when using Yarn - defaults to ` \uF61A`
- npm_icon: `string` - the icon/text to display when using NPM - defaults to ` \uE71E`

View file

@ -30,7 +30,7 @@ func (n *Node) Init(props properties.Properties, env environment.Environment) {
n.language = language{
env: env,
props: props,
extensions: []string{"*.js", "*.ts", "package.json", ".nvmrc", "pnpm-workspace.yaml", ".pnpmfile.cjs", ".npmrc"},
extensions: []string{"*.js", "*.ts", "package.json", ".nvmrc", "pnpm-workspace.yaml", ".pnpmfile.cjs", ".npmrc", ".vue"},
commands: []*cmd{
{
executable: "node",