1.0.6 • Published 6 years ago
lidless-eye v1.0.6
lidless-eye
Lidless Eye will monitor user-specified folders/files/extensions for changes and then execute custom shell commands whenever changes occur.
Installation
npm install --global lidless-eye
Usage
Usage: lidless eye <path_to_yml_config_file>
Monitor user-specified files/folders for changes on specific file extensions and run relevant shell commands
Commands:
eye <path_to_yml_config_file>
Options:
-h, --help output usage information
-V, --version output version number
Examples
Running the lidless eye and passing it a yml settings file
$ lidless eye "mywatchers.yml"
Sample .yml file
edit ./src/**/*.js:
- npx babel $PATH/$NAME --out-file ./lib/$NAME
delete ./**/*:
- echo $PATH/$NAME was deleted >> deleted_files_log.txt
add ./src/**/*:
- git add $PATH/$NAME
- echo $PATH/$NAME was added to staging area!
edit ./src/**/*:
- git reset HEAD $PATH/$NAME
- git add $PATH/$NAME
edit ./commitlog:
- git commit -m "$LASTLINE"
- git push origin HEAD
Notes
Three variables are available to use in your yml settings file:
$PATH - This is the path of the file that has just been altered (ex. "user/stuff/memos/")
$NAME - This is the name of the file that has just been altered (ex. "to-do-list.txt")
$LASTLINE - This is the value of the last line of the file that has just been altered (ex. "3.Re-read The Name Of The Wind" )
License
ISC
1.0.6
6 years ago
1.0.5
6 years ago
1.0.4
6 years ago
1.0.3
6 years ago
0.2.9
6 years ago
0.2.8
6 years ago
0.2.7
6 years ago
0.2.6
6 years ago
0.2.5
6 years ago
0.2.4
6 years ago
0.2.3
6 years ago
0.2.2
6 years ago
0.2.1
6 years ago
0.2.0
6 years ago
0.1.23
6 years ago
0.1.21
6 years ago
0.1.20
6 years ago
0.1.19
6 years ago
0.1.18
6 years ago
0.1.17
6 years ago
0.1.16
6 years ago
0.1.14
6 years ago
0.1.13
6 years ago
0.1.12
6 years ago
0.1.10
6 years ago
0.1.9
6 years ago
0.1.8
6 years ago
0.1.7
6 years ago
0.1.6
6 years ago
0.1.5
6 years ago
0.1.4
6 years ago
0.1.3
6 years ago
0.1.2
6 years ago
0.1.1
6 years ago
0.1.0
6 years ago