Skip to content

Commit

Permalink
feat: support vue.js in node
Browse files Browse the repository at this point in the history
resolves #1171
  • Loading branch information
JanDeDobbeleer committed Feb 3, 2022
1 parent fffb0fa commit 08f7a6a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docs/docs/segment-node.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
2 changes: 1 addition & 1 deletion src/segments/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 08f7a6a

Please sign in to comment.