This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const IMAGES_DIR = './images' | |
const ASSETS_DIR = './iOS/Images.xcassets' | |
const EXTENSIONS = ['jpg', 'jpeg', 'png'] | |
var fs = require('fs') | |
var gm = require('gm') | |
function convertAndCopy(source, scaleFactor, imageName, imageExt) { | |
let per = scaleFactor === 3 ? '100%' : scaleFactor === 2 ? '50%' : '25%' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1. Install Brew (warning: at least read install at first) | |
cat "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" | |
# 2. Install Oh-my-zsh (warning: at least read install.sh at first) | |
curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | cat | |
curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh | |
# 4. Install brew packages | |
brew install mas # appstore done right |