Skip to content

Instantly share code, notes, and snippets.

@Darep
Created May 22, 2013 09:26
Show Gist options
  • Save Darep/5626334 to your computer and use it in GitHub Desktop.
Save Darep/5626334 to your computer and use it in GitHub Desktop.
Use this simple script to easily create a new, clean Ember.JS project. I use this to create small, simple experiments. It's a bit like "rails new" :) Usage: ember new project-name
#!/bin/bash
#
# ember - Ember.JS starter kit script
# Download this and place it into e.g. /usr/local/bin
#
# Original: https://github.com/Darep/dotfiles/blob/master/bin/ember
#
[ -z "$1" ] && echo "No argument supplied" && exit
if [ $1 = "new" ]; then
[ -z "$2" ] && echo "No name supplied" && exit
NAME=$2
curl -o ember-starter-kit.zip https://codeload.github.com/emberjs/starter-kit/zip/v1.0.0-rc.3
unzip ember-starter-kit.zip
mv starter-kit-1.0.0-rc.3 $NAME
rm ember-starter-kit.zip
fi
@Darep
Copy link
Author

Darep commented May 22, 2013

How I use this:

cd ~/tmp
ember new testing-something
subl testing-something

And start experimenting!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment