2018/11/01
Poor Man’s Continuous Integration
I created the following script which saves a few seconds of switching to a terminal and typing grunt on each change to my source files.
1
2
3
4
5
6
7
|
#!/bin/sh
cd my-wordpress-theme-directory || { echo cannot cd ; exit 1; }
fswatch -rd assets/js/source assets/css/sass | \
while read ln; do
echo $ln;
grunt
done
|
I can just leave this running in a terminal window and glance at the output to make sure there were no errors.
Poor Man’s Continuous Integration is original content from devolve.