Package Exports
- zx
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (zx) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
zx
A CLI tool for running command shortcuts.
Installation
npm install -g zx
Usage
Create a file called zx.yaml
containing the shortcuts. E.g.:
minify: gulp minify
clear: rm -rf dist
run: node server
reminify:
- rm -rf dist
- gulp minify
# You can also optionally specify the working directory of the command
minify:
cwd: ./my-project
command: gulp minify
# or set some environment variables for the child process
minify:
env:
NODE_ENV: production
command: gulp minify
Execute the shortcuts by running zx
and the name of the shortcut in the console. E.g.: zx minify
.
License
The MIT License (MIT)