MBP(はてな)

MacBook Pro,iPhone 6s,Moto360,Nexus7

Mac の開発環境構築を自動化

ServerkitでMacの環境構築を自動化する

【Gemfile】
gem "serverkit"
gem "serverkit-defaults"
gem "serverkit-karabiner"
gem "serverkit-homebrew"

【recipe.yml】
resources:
- type: package
name: ansible
- type: package
name: brew-cask

- type: homebrew_cask_package
name: alfred
- type: homebrew_cask_package
name: atom
- type: homebrew_cask_package
name: dropbox
- type: homebrew_cask_package
name: electron
- type: homebrew_cask_package
name: google-japanese-ime
- type: homebrew_cask_package
name: karabiner
- type: homebrew_cask_package
name: kobito
- type: homebrew_cask_package
name: skitch
- type: homebrew_cask_package
name: slack
- type: homebrew_cask_package
name: vagrant
- type: homebrew_cask_package
name: virtualbox
- type: homebrew_cask_package
name: visual-studio-code

- id: ShowStatusBar_finder
type: defaults
domain: com.apple.finder
key: ShowStatusBar
value: 1
- id: TapClicking_trackpad
type: defaults
domain: com.apple.driver.AppleBluetoothMultitouch.trackpad
key: Clicking
value: 1

- type: karabiner
key: repeat.wait
value: 30
recheck_script: "true"

- type: line
path: /etc/sudoers
pattern: 'hiroyuki +ALL=\(ALL\) NOPASSWD: ALL'
line: "hiroyuki ALL=(ALL) NOPASSWD: ALL"
insert_before: "^#includedir"
validation_script: visudo -cf %{path}


$ serverkit check recipe.yml
$ serverkit apply recipe.ml

Mac の開発環境構築を自動化

$ brew search
$ brew cask search
$ brew cask search dropbox



homebrewはインストール済み
brew update
brew install python
brew install ansible

brew-cask install virtual box が遅い。参考

electron入門
ElectronとHTML/CSS/JavaScriptでデスクトップアプリを作ろう【入門編】 | 株式会社LIG
テキストエディターを作ってElectronの基礎を学ぼう! HTML5でPCアプリ開発入門 - ICS MEDIA electronでエディタ
Electron/Node.js初心者がマテリアルデザインなMarkdownエディタを作ってみた - Qiita electronでMarkdownエディタ