• HOME
  • ARCHIVE
  • GITHUB
  • CODEPEN
  • TWITTER
  • RSS
  • Purging Cloudflare Cache With cURL

    Tags:  CLI Cloudflare
    Oct 7, 2018

    Cloudflare is an amazing CDN provider as well as a great DNS service, and many more things nowdays; It also gives you free TLS for your websites! Because of this it’s become my go-to for static sites like this one but, I dislike having to sign in to Cloudflare each time I make an update to my site. Thankfully they also have a nice API to work with and something we can utilize within our CI/CD pipelines to purge cache after we make updates.

    ...more
  • Using Pantheon's Terminus CLI tool via Docker

    Tags:  Pantheon Docker CLI
    Oct 6, 2018

    Pantheon’s Terminus CLI tool is a great way to interact with your sites. If you’re not familiar with Terminus here’s a quote from their docs:

    Our command line interface, Terminus, provides advanced interaction with Pantheon. Terminus enables you to do almost everything in a terminal that you can do in the Dashboard, and much more.

    ...more
  • CodeKit 3 - Hooking Into Browserify

    Tags:  CodeKit CodeKit Hooks Browserify
    Nov 10, 2016

    With the new dependency tracking CodeKit 3 has for ES Modules, we can write a Hook that triggers on one specific file when it or any of its dependencies change. We can do that by mixing the new dependency tracking with the ability to process files in place (to do ESLinting and minifying) to bundle all our code up with Browserify.

    ...more
  • CodeKit 3 - ES Module Bundling w/TypeScript

    Tags:  CodeKit TypeScript ES Modules Bundling JS
    Oct 29, 2016

    Now that CodeKit 3 has launched it’s time to dig into some new functionality it provides; One of my favorites being, the ability for CodeKit to now track ES Module imports in your JavaScript and TypeScript files! This means we now have a true path on bundling up our JavaScript files without hooks.

    While some will want a more flushed out experience via Browserify or Rollup bundling, using TypeScript isn’t that bad, especially when you’re really only using one .ts to do the bundling while the rest of your code can be pure JavaScript.

    ...more
  • CodeKit + babel

    Tags:  CodeKit CodeKit Hooks babeljs
    Oct 29, 2016

    [UPDATE] CodeKit 3 is now available and supports babel natively.

    Currently CodeKit does not support babeljs transpiling, but appears it will at some point in the future. This doesn’t mean you can’t use CodeKit to transpile babel, you’ll just need to install babel locally and use a hook to do so.

    ...more
  • CodeKit + HTML gzip

    Tags:  CodeKit CodeKit Hooks gzip
    Oct 29, 2016

    [UPDATE] CodeKit 3 is now available and hooks work a bit differently now. This “should” still work, but, I’ll try to have an update on this using the new hooks.

    This is a quick write-up on how to gzip your HTML files with CodeKit Version 2.3+ hooks; Jade is used in the example but any of the HTML processors available should work the same.

    ...more
  • CodeKit + timestamps

    Tags:  CodeKit CodeKit Hooks timestamps
    Oct 29, 2016

    [UPDATE] CodeKit 3 is now available and hooks work a bit differently now. This “should” still work, but, I’ll try to have an update on this using the new hooks.

    Here is another quick post on using the new Hook variables added in CodeKit 2.3, this time looking at adding timestamps to CSS files.

    ...more
  • Simple Ghost Blog Theme deploys with rsync

    Tags:  deploy rsync make ghost-theme
    Apr 26, 2015

    So, I’ve finally jumped onto the Ghost Blog platform to give blogging a try. The first thing I wanted was an easy way to make updates to a theme and push those updates to my server and take care of the ghost restart.

    ...more

© 2015 - 2019 Michael Russell, unless otherwise noted.