<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Gulp on Mike Bell - Blog &amp; Stuff</title><link>https://mikebell.io/tags/gulp/</link><description>Recent content in Gulp on Mike Bell - Blog &amp; Stuff</description><generator>Hugo -- gohugo.io</generator><language>en</language><managingEditor>hello@mikebell.io (Mike Bell)</managingEditor><webMaster>hello@mikebell.io (Mike Bell)</webMaster><copyright>© 2026 Mike Bell</copyright><lastBuildDate>Mon, 28 Dec 2015 00:00:00 +0000</lastBuildDate><atom:link href="https://mikebell.io/tags/gulp/index.xml" rel="self" type="application/rss+xml"/><item><title>Fun with Sculpin</title><link>https://mikebell.io/posts/fun-with-sculpin/</link><pubDate>Mon, 28 Dec 2015 00:00:00 +0000</pubDate><author>hello@mikebell.io (Mike Bell)</author><guid>https://mikebell.io/posts/fun-with-sculpin/</guid><description>
&lt;p>After migrating my blog over to Sculpin I&amp;rsquo;ve slowly been tweaking things here and there. Over the past few days I&amp;rsquo;ve added the following:&lt;/p>
&lt;ul>
&lt;li>Static social media links to post titles&lt;/li>
&lt;li>Posted time ago on homepage&lt;/li>
&lt;li>Comment counts after read more link&lt;/li>
&lt;li>Gulp all the things&lt;/li>
&lt;/ul>
&lt;p>It&amp;rsquo;s been quite a lot of fun adding all these features. They all touch a wide range of services and different parts of the site.&lt;/p>
&lt;h3 class="relative group">Static social media links
&lt;div id="static-social-media-links" class="anchor">&lt;/div>
&lt;span
class="absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100">
&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline" href="#static-social-media-links" aria-label="Anchor">#&lt;/a>
&lt;/span>
&lt;/h3>
&lt;p>These are built with free icons converted into a font and then displayed in a span tag wrapped in a link to the various different social media sites.&lt;/p>
&lt;h3 class="relative group">Time ago
&lt;div id="time-ago" class="anchor">&lt;/div>
&lt;span
class="absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100">
&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline" href="#time-ago" aria-label="Anchor">#&lt;/a>
&lt;/span>
&lt;/h3>
&lt;p>This uses a jquery plugin called &lt;a
href="http://timeago.yarp.com/"
target="_blank"
>Timeago&lt;/a> which tags onto html outputted by twig, I&amp;rsquo;m slowly getting to grips with twig through examples I find around the web. For some reason I just don&amp;rsquo;t get along with Symfony documentation.&lt;/p>
&lt;h3 class="relative group">Comment counts
&lt;div id="comment-counts" class="anchor">&lt;/div>
&lt;span
class="absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100">
&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline" href="#comment-counts" aria-label="Anchor">#&lt;/a>
&lt;/span>
&lt;/h3>
&lt;p>This is just javascript taken from Disqus, pain in the ass the get it setup though. Disqus as a whole isn&amp;rsquo;t great.&lt;/p>
&lt;h3 class="relative group">Gulp
&lt;div id="gulp" class="anchor">&lt;/div>
&lt;span
class="absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100">
&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline" href="#gulp" aria-label="Anchor">#&lt;/a>
&lt;/span>
&lt;/h3>
&lt;p>There is an &lt;a
href="https://github.com/sculpin/sculpin/pull/296"
target="_blank"
>outstanding&lt;/a> pull request with Sculpin which without it makes using &lt;code>sculpin generate --watch --server&lt;/code> painful, serving a page takes over a minute. So I&amp;rsquo;ve basically recreated a lot of the toolchain with gulp. I&amp;rsquo;ve pushed all the code up to the main repo and my gulpfile.js can be found &lt;a
href="https://github.com/mikebell/mikebell.io/blob/master/source/gulpfile.js"
target="_blank"
>here&lt;/a>. Running &lt;code>gulp build&lt;/code> kicks off a series of watch tasks that check the file system for any changes and then reacts based on whats changed. I then serve all the html content through drupalVM which I have permanently running in the background. One of the things I&amp;rsquo;ll love to see from &lt;code>sculpin generate&lt;/code> is the ability to output the compiled site to a different directory outside of the main sculpin repo.&lt;/p>
&lt;p>I&amp;rsquo;ve really enjoyed playing around with all this stuff and it feels good to be learning new things again and coding for pleasure.&lt;/p>
&lt;p>Thanks for reading via RSS!&lt;/p>
&lt;p>Send me a message on &lt;a href="https://remotelab.uk/mikebell">Mastodon&lt;/a> or &lt;a href="mailto:hello@mikebell.io">email me&lt;/a>&lt;/p></description></item></channel></rss>