The code hosted here is a showpiece of my past work, with permission from my old boss. The two most notable "components" have dedicated info pages on a separate, still available, "support" repo, linked here below:
https://github.com/mblazonry/mBlazonrySupport/blob/master/Components/TEMPLATE.md and https://github.com/mblazonry/mBlazonrySupport/blob/master/Components/TIMER.md
-
The skuid "progress indicator" sample component code from the skuid docs.
-
Barry Schnell's old "popup controller" custom component code from the skuid community forums.
You should download this repo using a Git client that has git SubModule support.
Try SmartGit (for Windows/Linux/Mac).
Unsupported as of 07/02/2017:
GitHub Desktop
GitKraken
Clone the repo from the current address in your browser bar.
Be sure to select the "Include Submodules" option when cloning. This will make your life easier by fetching all submodules for you.
This section has two parts.
-
I'll assume your working directory for this repo is named
mbComponents
. You should now open a command-line window/terminal at that folder!Windows: by shift-right-clicking on empty space in a folder and clicking Open command window here. Mac: instructions here.
-
Install Node.js globally on your system. (all downloads, and Windows instructions).
-
From your console, be sure you can run
npm
. It should display the help, and version number of npm. -
From the repo dir, run
npm install
. This sets up the app, grabbing all dependencies needed by the project and installing them to a local node_modules folder. -
If you run any of the automation now you'll get an error saying Gulp needs to be installed globally. So from the repo dir run
npm install gulp -g
-
Once finished, make sure
npm ls
displays the full list of installed modules.
-
Running the
gulp
command in the console set at the components' directory will run the default task of listing all available gulp tasks. -
Create a
.env
file in your working directory with the following two lines:(case-sensitive)
mB_USERNAME="[email protected]"
mB_PASSWORD="passwordAndSecurityTokenConcatenated"
You will eventually need to create additional entries for each org you wish to deploy component packages to.
-
Make sure you can connect to the org with your credentials.
-
To deploy, run
gulp deploy
to automatically build and create the static resource and upload it to SF using jsforce! -
You should now be good to go.
-
If you don't have it already, install Package Control, the sublime package manager.
-
Now, we go about installing some packages:
reccommended: GitGutter
optional: sublime-jsdocs sublime-jshint sublime-gulp (and here's a guide)
-
[Optional] With all that installed, you should be able to right-click a file in the FOLDERS tree in Sublime's sidebar [right-click] → Gulp → "List Tasks to Run". That should show the various build options. Run the
default
build and doCtrl + ~
on your keyboard to show the console in Sublime, and observe the output. -
Assuming all went well you should be good to develop mBlazonry's components and use interactive builds!
MavensMate plug-in for editors
MavensMate plugin for editors
Choose between using either editor plugins or the standalone mavensmate-app further below.
(These are instructions for the Sublime Text 3 mavensmate plugin. These were tested only on Windows 7 64-bit round June 2016. YMMV)
MavensMate-app
MavensMate-app (Multi-platform & standalone)
If using mavensmate v7 or higher, you will have this app installed regardless. The mavensmate-app is an Electron-based tool that, on any platform, runs in a webview and forms a coherent backbone to the new extension of mm for editors such as Sublime and Atom.
You can get it here. Install it, and please make sure it runs.
The UI is essentially the same as in the mm editor plugins, so you can follow the procedures listed above or elsewhere.
Copyright (c) 2015-2017, Andréas K.LeF, mBlazonry, All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
- Neither the name of the mBlazonry nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL Andréas K.LeF. or mBlazonry BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.