Skip to content

Development Environment

uipoet edited this page Aug 20, 2012 · 3 revisions

Development Environment for Ninja UI

Mac OS X Mountain Lion (10.8)

1.) App Store search for Xcode and install.

2.) Xcode.app: Preferences: Downloads: Components

  • Check for and install updates automatically
  • Install iOS 5.0 Simulator
  • Install Command Line Tools

3.) Xcode.app: Open Developer Tool: iOS Simulator

  • Right click iOS Simulator App Icon in Dock
  • Options: Show in Finder
  • option-command drag to Applications folder

4.) Homebrew: bash-completion, git, node and phantomjs

/usr/bin/ruby -e "$(/usr/bin/curl -fsSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)"
brew doctor
brew update
brew install bash-completion git node phantomjs

5.) npm

curl https://npmjs.org/install.sh | clean=no sh

6.) .bash_profile

`BREW_PATH=`brew --prefix`
export PATH="\
./node_modules/.bin:\
$BREW_PATH/bin:\
${PATH}"

if [ -f $BREW_PATH/etc/bash_completion ]; then
  . $BREW_PATH/etc/bash_completion
fi`

7.) git repositories

mkdir ~/Development
cd ~/Development
git clone git@github.com:ninja/ninja.git
git clone git@github.com:ninja/ninja-autocomplete.git

cd ninja
npm install
grunt
npm link

cd ../ninja.autocomplete
npm link ninja
npm install
grunt
grunt browser    
Clone this wiki locally