Skip to content

Instantly share code, notes, and snippets.

@drrobotnik
Created December 19, 2012 20:41
Show Gist options
  • Save drrobotnik/4340250 to your computer and use it in GitHub Desktop.
Save drrobotnik/4340250 to your computer and use it in GitHub Desktop.
{
"build_systems":
[
{
"cmd":
[
"mysql -uxxxx -pxxxx -e 'create database ${project_name/.sublime-project//}'"
],
"name": "CREATE PROJECT DB",
"path": "~/bin/",
"shell": true
},
{
"cmd":
[
"mysqldump -h 127.0.0.1 -u xxxx -pxxxx ${project_name/.sublime-project//} > $project_path/${project_name/.sublime-project/./}sql"
],
"name": "DUMP LOCAL PROJECT DB",
"path": "~/bin/",
"shell": true
},
{
"cmd":
[
"curl -ujacobtyler:xxxxxxxx -X POST -d 'name=${project_name/.sublime-project//}' -d 'is_private=1' -d 'scm=git' https://api.bitbucket.org/1.0/repositories/"
],
"name": "CREATE PROJECT REPO",
"shell": true
},
{
"cmd":
[
"git clone https://xxxxxxxx:xxxxxxxx@bitbucket.org/xxxxxxxx/${project_name/.sublime-project//}.git && mv $project_path/${project_name/.sublime-project//}/.git $project_path/../ && rmdir $project_path/${project_name/.sublime-project//}"
],
"name": "CLONE PROJECT REPO",
"shell": true
},
{
"cmd":
[
"wp core download"
],
"name": "WORDPRESS INSTALL",
"path": "~/bin/",
"shell": true
}
/*, git clone https://xxxxxxxx:xxxxxxxx@bitbucket.org/xxxxxxxx/w.git & mv /Sites/w/jt-config/w/.git /Sites/w/jt-config/../../
{
"cmd":
[
"curl -uxxxxxxxx:xxxxxxxx -X POST -d 'name=${project_name/.sublime-project//}' -d 'is_private=1' -d 'scm=git' https://api.bitbucket.org/1.0/repositories/",
"mysql -uxxxx -pxxxx -e 'create database ${project_name/.sublime-project//}'",
],
"name": "CREATE PROJECT REPO",
"shell": true
}*/
],
"folders":
[
{
"file_exclude_patterns":
[
"wp-activate.php",
"readme.html",
"license.txt",
"wp-app.php",
"wp-blog-header.php",
"wp-comments-post.php",
"wp-config-sample.php",
"wp-cron.php",
"wp-links-opml.php",
"wp-load.php",
"wp-login.php",
"wp-mail.php",
"wp-settings.php",
"wp-signup.php",
"wp-trackback.php",
"xmlrpc.php"
],
"folder_exclude_patterns":
[
"wp-includes",
"wp-admin",
"upgrade",
"twentyten"
],
"path": "/Sites/w"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment