Create a gist now

Instantly share code, notes, and snippets.

Bash scripts to drive cfx without having to activate the jetpack environment.
# edit these variables to match your own use case.
PY=`which python`
P="$HOME/Library/Application\ Support/Firefox/Profiles/b271f03z.Firebug"
$PY $CFX --binary=$FF --profiledir="$P" $@
# This script:
# 1. creates a directory using the first argument as the name.
# 2. runs cfx init to create a skeleton add-on
# 3. zeros out the sample code to leave us with nice clean blank files.
mkdir -p "$_PWD/$1" && cd "$_PWD/$1" && jetpack init
echo "" > lib/main.js && echo "" > doc/ && echo "" > test/test-main.js && echo "" > ./
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment