node files to be run in shell to help you for some commands
For these scripts to work, you need to have the following installed on your machine:
node
: lts or most recentyarn
(ornpm
should work too): any versiongit
: 2.23.0 or most recent
You will have to install dependencies in the root directory of this repository, then compile the files.
yarn install --production
A 'postinstall' script is automatically run to compile the typescript files. You can also build manually with:
yarn build
To use these scripts, you have to put aliases in your .bashrc
or .zshrc
file.
It's not mandatory, but recommended to avoid to write the full command path each time.
SHELL_ALIAS_DIR=$PATH_TO_THIS_REPOSITORY
source $SHELL_ALIAS_DIR/.source.sh
SHELL_ALIAS_DIR=$PATH_TO_THIS_REPOSITORY
alias myAliasName="node $SHELL_ALIAS_DIR/dist/my-file-to-run.js"
node $PATH_TO_THIS_REPOSITORY/dist/my-file-to-run.js