2.1.1 • Published 4 years ago

@arcdelta/sx v2.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

:zap: sx

CircleCI npm (scoped) semantic-release Commitizen friendly Dependabot

Micro CLI for interactive running npm & yarn scripts.

Gosh, why?

First, I wanted to practise creating public CLI packages/libraries.

Secondly, I'm lazy. Like, really lazy. I don't even like to type much. And sometimes I'm perplexed by amount of steps required to run an npm or yarn script. Especially if you can't remember what scripts a project even has without diving into an IDE or cating (lessing, bating) a package.json.

Thirdly, if you seek for autocompletion, I would suggest you to use this zsh enhancement. If you are like me—read on.

Installation

Node v12.18.0 or higher is required

$ npm i -g @arcdelta/sx

Usage

Basic

Just type at the root of your project:

$ sx

This will run an interactive prompt with scripts from package.json as selectable options. You pick one, hit Enter and that's it.

I have plans on adding lerna support and picking multiple scripts.

Options

OptionDescription
-n, --npmUse npm to run a script.
-p, --pnpmUse pnpm to run a script.
-y, --yarnUse yarn to run a script.
-v, --versionOutput the current version.
-h, --helpOutput help message.

Package manager

If you use yarn instead of npm, you can instruct sx to use it as a default package manager by exposing a SX_PM=yarn environment variable in your shell's rc file (.zshrc, .bash_profile, etc).

Deps

This project relies only on ansi-colors.

License

MIT.

1.2.3

4 years ago

2.1.1

4 years ago

2.0.2

4 years ago

2.1.0

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago