Skip to content

Instantly share code, notes, and snippets.

View larsenwork's full-sized avatar
🦁

Andreas Larsen larsenwork

🦁
View GitHub Profile
@alexey-m-ukolov
alexey-m-ukolov / gulpfile.js
Created June 9, 2016 07:39
Add pug/jade global helpers
gulp.task('pug', function () {
global._ = require('lodash');
global.helpers = require('./' + paths.src.root + '/pug-helpers');
global.mocks = require('./' + paths.dest.root + '/mocks.json');
return gulp.src(paths.src.html + '/**/!(_)*.pug')
.pipe(plumber())
.pipe(pug({
doctype: 'html',
pretty: true,
#!/bin/sh
# Requires sketch and Sketchtool
# Q: How to enable it?
# A: Add it to your repo pre-commit hook
# Q: What does it do?
# A: It creates a .exportArtboards folder with all artboards as PNGs,
# so you easily can see changes in GIT 🎊.