From 7009ed1c7a79cb4cf0cdd003993e4363e530d330 Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Fri, 28 Jun 2013 14:36:59 -0700 Subject: [PATCH] Initial Commit --- ForceDotCom/AbuseTheForce.sublime-build | 7 +++++++ ForceDotCom/HTML.sublime-settings | 7 +++++++ ForceDotCom/Java.sublime-settings | 7 +++++++ ForceDotCom/XML.sublime-settings | 6 ++++++ README.md | 19 +++++++++++++++++++ install.sh | 12 ++++++++++++ 6 files changed, 58 insertions(+) create mode 100644 ForceDotCom/AbuseTheForce.sublime-build create mode 100644 ForceDotCom/HTML.sublime-settings create mode 100644 ForceDotCom/Java.sublime-settings create mode 100644 ForceDotCom/XML.sublime-settings create mode 100644 README.md create mode 100755 install.sh diff --git a/ForceDotCom/AbuseTheForce.sublime-build b/ForceDotCom/AbuseTheForce.sublime-build new file mode 100644 index 0000000..b2e5743 --- /dev/null +++ b/ForceDotCom/AbuseTheForce.sublime-build @@ -0,0 +1,7 @@ +{ + "cmd": ["abusetheforce deploy file \"${file}\""], + "shell": true, + "working_dir": "${project_path:${folder}}", + "path": "${path}", + "selector": ["source.cls","source.trigger","source.page","source.component"] +} diff --git a/ForceDotCom/HTML.sublime-settings b/ForceDotCom/HTML.sublime-settings new file mode 100644 index 0000000..af5a228 --- /dev/null +++ b/ForceDotCom/HTML.sublime-settings @@ -0,0 +1,7 @@ +{ + "extensions": + [ + "page", + "component" + ] +} diff --git a/ForceDotCom/Java.sublime-settings b/ForceDotCom/Java.sublime-settings new file mode 100644 index 0000000..da784f7 --- /dev/null +++ b/ForceDotCom/Java.sublime-settings @@ -0,0 +1,7 @@ +{ + "extensions": + [ + "cls", + "trigger" + ] +} diff --git a/ForceDotCom/XML.sublime-settings b/ForceDotCom/XML.sublime-settings new file mode 100644 index 0000000..77bb14c --- /dev/null +++ b/ForceDotCom/XML.sublime-settings @@ -0,0 +1,6 @@ +{ + "extensions": + [ + "object" + ] +} diff --git a/README.md b/README.md new file mode 100644 index 0000000..c16d167 --- /dev/null +++ b/README.md @@ -0,0 +1,19 @@ +Sublime Abuse the Force +=================== +Plugin for "compiling" Salesforce.com code with [Abuse the Force](http://github.com/ViViDboarder/abuse-the-force) + +Works with Sublime Text 2 only + +Installation +------------ +* Install [Abuse the Force](http://github.com/ViViDboarder/abuse-the-force) +* Clone this repo +* Navigate to this directory +* Run install.sh + +Here it is in terminal: + + git clone http://github.com/ViViDboarder/sublime-abuse-the-force + cd sublime-abuse-the-force + ./install.sh + diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..b2f36c2 --- /dev/null +++ b/install.sh @@ -0,0 +1,12 @@ +#! /bin/bash + +SUBLIME_DIR=~/Library/Application\ Support/Sublime\ Text\ 2/Packages/ + +mkdir -p "$SUBLIME_DIR" + +cp -r "./ForceDotCom" "$SUBLIME_DIR/" + +cat ./ForceDotCom/AbuseTheForce.sublime-build | sed "s#"'${path}'"#$PATH#" > "$SUBLIME_DIR/ForceDotCom/AbuseTheForce.sublime-build" + +echo "SFDC Sublime Plugin install finished" +