epic-cli
Version:
Commands useful for everyday web development with node.
105 lines (71 loc) • 2.49 kB
Markdown
<p align="center">
<img src="https://github.com/tobua/epic-cli/raw/main/logo.png" alt="epic-cli">
</p>
# epic-cli
Useful commands for everyday Web Development.
## Usage or Global Installation
```sh
bunx epic-cli update # One time usage to run any script.
bunx epic-cli@latest update # Avoid using cached version.
```
For repeated usage it's best to install the package globally and use shortcut aliases.
```sh
bunx epic-cli verify # Verify which script aliases are free before installation.
bun install -g epic-cli
update # Directly run any script.
bun update -g epic-cli # Update globally installed version.
```
## Commands
After the installation the following commands can be used from anywhere within the terminal.
```
update
```
Update current package dependency versions. This will update all versions with ranges to the latest version. Exactly specified versions or dist tags will be ignored. Add the `--no-install` flag to avoid updating node modules.
```
refresh
```
Reinstalls node_modules in current directory. Always removes the lock file as well.
```sh
run
```
Lists currently available scripts and allows multi-selection of scripts to run.
```sh
commit
```
To be used before committing, runs "check", "types" and "test" scripts if available and lists success or failure.
```sh
types
```
Check TypeScript using `tsc`. Will list number of files checked, add `--files` to list all relative files except ones from node modules.
```sh
init [name]
```
Quickly initialize a new project in the current folder using the parent folder as the default name.
```sh
secret
```
Stores and retreives `.env` variables for the current project from iCloud on macOS. Add the `--list` flag to show all currently stored secrets.
```sh
global
```
List and update globally installed packages.
```sh
format
```
Format `package.json` in current folder.
```sh
files
```
List nested files inside current folder in a tree structure.
```sh
workspaces "update"
```
Run an arbitrary command passed as the second argument in every workspace of the current project. Use the `--output` flag to show the output when running the command.
```sh
folders "./template/*" "update --no-install"
```
Run an arbitrary command passed as the third argument in every folder matched by the glob passed as the second argument. Use the `--output` flag to show the output when running the command.
```sh
ports
```
List open commonly used web development ports and close them when selected.