This allows you to receive desktop notifications from grunt running inside of a local vagrant box.
Install grunt-notify and add to dev dependencies
This is done on the guest VM (within the vagrant box).
| /** | |
| * Custom PatternLab Loader for Timber | |
| * | |
| * How to use: | |
| * Place this somewhere in your functions.php, make sure Timber WordPress plugin is installed and activated. | |
| * This code assumes Pattern Lab is installed in the same directory as your theme. | |
| * Change $patternlabSource below if you want to use a different path to Pattern Lab. | |
| * | |
| * This code hooks into Timber when Timber initialises the Twig_Loader_Filesystem | |
| * uses default Timber loader if Pattern Lab patterns aren't found. |
| #!/bin/bash | |
| PARAMS=('-m 6 -q 70 -mt -af -progress') | |
| if [ $# -ne 0 ]; then | |
| PARAMS=$@; | |
| fi | |
| cd $(pwd) |
| <?php | |
| // Here is a sample of the URLs this regex matches: (there can be more content after the given URL that will be ignored) | |
| // http://youtu.be/dQw4w9WgXcQ | |
| // http://www.youtube.com/embed/dQw4w9WgXcQ | |
| // http://www.youtube.com/watch?v=dQw4w9WgXcQ | |
| // http://www.youtube.com/?v=dQw4w9WgXcQ | |
| // http://www.youtube.com/v/dQw4w9WgXcQ | |
| // http://www.youtube.com/e/dQw4w9WgXcQ | |
| // http://www.youtube.com/user/username#p/u/11/dQw4w9WgXcQ |
This allows you to receive desktop notifications from grunt running inside of a local vagrant box.
grunt-notify and add to dev dependenciesThis is done on the guest VM (within the vagrant box).
| # This can be added to your cron job to run right after Drupal's cron or combine them into a single command so | |
| # that it automatically executes when the cron run completes. | |
| wget -q http://www.example.com/sitemap.xml -O - | egrep -o "http://www\.example\.com[^<]+" | wget -q -i - -O /dev/null --wait 1 |