Skip to content

Instantly share code, notes, and snippets.

View webdevian's full-sized avatar

Ian Egner webdevian

  • Fanatical
  • United Kingdom
View GitHub Profile
@webdevian
webdevian / readme.md
Last active April 7, 2017 10:41 — forked from maxrimue/readme.md
Use Yarn with Greenkeeper and Jenkins CI

Use yarn with Greenkeeper and Jenkins

When using yarn, it will create a yarn.lock lockfile which holds data on your used dependencies. This file also includes hard-typed versions, so should you update your dependencies, the yarn.lock file is basically outdated and needs to be regenerated. While yarn does this automatically, Greenkeeper pull requests that update dependencies as of right now do not do this regeneration, which means you would have to do it manually.

This gist shows you a way how to automatise this step using a Jenkins CI script.

Prerequisites

  • You use Jenkins CI and have it build Pull Requests from Github.
  • You have a yarn.lock file in your repository for Jenkins CI and yarn installed on your jenkins server.

Getting started

@webdevian
webdevian / foundation-grid-columns-mixin
Last active September 17, 2020 14:37 — forked from macbleser/foundation-grid-columns-mixin
Mixin to set both grid columns and offsets
// For setting both columns and offset in the same mixin
@mixin grid-offsets(
// Mobile First Media Queries
$small-up-columns: false,
$small-up-offset: 0,
$medium-up-columns: false,
$medium-up-offset: 0,
$large-up-columns: false,
$large-up-offset: 0,
@mixin grid-offset(
// Mobile First Media Queries
$small-up-screens: false,
$medium-up-screens: false,
$large-up-screens: false,
$xlarge-up-screens: false,
$xxlarge-up-screens: false,
// Specific Range Media Queries
$small-only-screens: false,
$medium-only-screens: false,