Skip to content

Add support for "npm run" scripts #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 21, 2020

Conversation

MaStr11
Copy link
Contributor

@MaStr11 MaStr11 commented Apr 20, 2020

Fixes #2

This PR adds completion to npm run <tab>. Reads all the scripts from package.json found in the current directory or any parent directory, filters for the completion and adds fitting script names to the completion list. The script cmd itself is placed in the tooltip (supported e.g. by Powershell ISE)

@gluons gluons self-assigned this Apr 21, 2020
Co-Authored-By: Saran Tanpituckpong ✅ <4688092+gluons@users.noreply.github.com>
@MaStr11
Copy link
Contributor Author

MaStr11 commented Apr 21, 2020

Should I update the readme to reflect the new feature?

A npm tab completion for PowerShell.

A npm tab completion for PowerShell including support for npm scripts.

@gluons
Copy link
Member

gluons commented Apr 21, 2020

Not need. It's fine.

@gluons gluons merged commit 5c94273 into PowerShell-Completion:master Apr 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Complete with scripts of package.json on "npm run"
2 participants