{"id":1017,"date":"2018-11-01T18:51:56","date_gmt":"2018-11-01T22:51:56","guid":{"rendered":"https:\/\/www.devolve.net\/blog\/?p=1017"},"modified":"2018-11-01T14:19:48","modified_gmt":"2018-11-01T18:19:48","slug":"poor-mans-continuous-integration","status":"publish","type":"post","link":"https:\/\/www.devolve.local\/poor-mans-continuous-integration\/","title":{"rendered":"Poor Man’s Continuous Integration"},"content":{"rendered":"

I created the following script which saves a few seconds of switching to a terminal and typing grunt<\/em> on each change to my source files.<\/p>\n

#!\/bin\/sh\r\ncd my-wordpress-theme-directory || { echo cannot cd ; exit 1; }\r\nfswatch -rd assets\/js\/source assets\/css\/sass | \\\r\nwhile read ln; do\r\n    echo $ln;\r\n    grunt\r\ndone<\/pre>\n

I can just leave this running in a terminal window and glance at the output to make sure there were no errors.<\/p>\n","protected":false},"excerpt":{"rendered":"

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. #!\/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 […]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[6],"tags":[34,15,31],"_links":{"self":[{"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/posts\/1017"}],"collection":[{"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/comments?post=1017"}],"version-history":[{"count":5,"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/posts\/1017\/revisions"}],"predecessor-version":[{"id":1022,"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/posts\/1017\/revisions\/1022"}],"wp:attachment":[{"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/media?parent=1017"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/categories?post=1017"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/tags?post=1017"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}