Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Adam Kirkwood adamkirkwood

🏠
Working from home
View GitHub Profile
View index.js
/* eslint strict: 0 */
'use strict';
const electron = require('electron')
const {
app,
dialog,
autoUpdater,
protocol,
Menu,
@adamkirkwood
adamkirkwood / adamkirkwood.sketchpack
Last active Apr 20, 2017
Favorite Sketch.app Plugins
View adamkirkwood.sketchpack
{
"name": "Adam Kirkwood's SKetchpack",
"schema_version": "0.1.0",
"locked": false,
"plugins": {
"AnimaApp/auto-layout": {
"name": "auto-layout",
"owner": "AnimaApp",
"version": "0.2.3",
"version_range": [
@adamkirkwood
adamkirkwood / hvpandya-library.sketchpack
Last active Apr 12, 2017
"16 Pretty Useful Tools & Tricks for Sketch" - Import with Sketchpacks (https://sketchpacks.com)
View hvpandya-library.sketchpack
{
"name": "@hvpandya's Library",
"schema_version": "0.1.0",
"locked": false,
"plugins": {
"AnimaApp/auto-layout": {
"name": "auto-layout",
"owner": "AnimaApp",
"version": "0.2.3",
"version_range": [
View anyi-sun.sketchpack
{
"name": "Anyi Sun's Sketchpack",
"schema_version": "0.1.0",
"locked": false,
"plugins": {
"keremciu/sketch-iconfont": {
"name": "sketch-iconfont",
"owner": "keremciu",
"version": "4.5.1",
"version_range": [
View release.sh
# ... snip ...
VERSION=$(node -e “console.log(require(‘./package.json’).version);)
RELEASE_VERSION=”v$VERSION
VERSIONED_SKETCHFILENAME=`$BASEFILENAME-$RELEASE_VERSION.$EXTENSIONNAME`
cp ./$SKETCHFILE ./archive/$VERSIONED_SKETCHFILENAME
# ... snip ...
View release.sh
# ... snip ...
npm version $1 — no-git-tag-version -m “”
# ... snip ...
View release.sh
# ... snip ...
sketchtool export artboards — output=$(pwd)/screenshots — formats=jpg — overwriting=yes $SKETCHFILE
# ... snip ...
View release.sh
# ... snip ...
git commit -am "add screenshots for $RELEASE_VERSION"
git tag -a $RELEASE_VERSION -m "Release $RELEASE_VERSION"
git push origin $RELEASE_VERSION
# ... snip ...
@adamkirkwood
adamkirkwood / release.sh
Last active Dec 14, 2016
Cut Github-ready releases for your Sketch files
View release.sh
#!/usr/bin/env bash
BASEFILENAME=API-Connect-Patterns
EXTENSIONNAME=sketch
SKETCHFILE=`$BASEFILENAME.$EXTENSIONNAME`
CURRENT_BRANCH=$(git symbolic-ref --short -q HEAD)
CURRENT_VERSION=$(node -e "console.log(require('./package.json').version);")
# Prevent cutting releases from master branch
View snippets.cson
'.source.ruby':
'Model class structure':
'prefix': '#=='
'body': '''
# == Constants ============================================================
# == Attributes ===========================================================
# == Extensions ===========================================================