ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Cold​Box Platform

by lmajano ST2/ST3

ColdBox Platform Sublime IDE Package

Details

Installs

  • Total 2K
  • Win 2K
  • OS X 668
  • Linux 207
May 27 May 26 May 25 May 24 May 23 May 22 May 21 May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12 May 11 May 10 May 9 May 8 May 7 May 6 May 5 May 4 May 3 May 2 May 1 Apr 30 Apr 29 Apr 28 Apr 27 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12
Windows 0 0 2 0 0 1 1 1 0 1 1 1 1 3 0 0 1 1 2 1 1 1 0 4 1 1 0 0 0 0 2 1 4 0 2 1 0 1 1 0 1 1 1 3 1 1
OS X 0 0 0 0 1 0 0 0 1 0 1 0 1 0 0 0 1 3 0 1 0 0 0 0 1 1 1 1 0 0 1 0 3 0 1 0 0 0 0 0 0 0 0 0 1 0
Linux 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

A ColdBox Platform Bundle v2.0.0 for Sublime Text 2/3

Get the latest Sublime Text 2/3 from http://www.sublimetext.com/2.

Target Platforms

  • ColdBox 4.X.X
  • TestBox 2.X.X

Currently supported features

This bundle includes functionality not only for ColdBox MVC, but also for TestBox BDD/TDD, MockBox, WireBox, CacheBox and LogBox.

Code Insight

Code completion for all major ColdBox + TestBox functions and scopes:

  • binder ➝ : “coldbox.system.ioc.config.Binder”,
  • cachebox ➝ : “coldbox.system.cache.CacheFactory”
  • controller ➝ : “coldbox.system.web.Controller”,
  • event ➝ : “coldbox.system.web.context.RequestContext”,
  • flash ➝ : “coldbox.system.web.flash.AbstractFlashScope”,
  • html ➝ : “coldbox.system.core.dynamic.HTMLHelper”
  • log ➝ : “coldbox.system.logging.Logger”,
  • logbox ➝ : “coldbox.system.logging.LogBox”,
  • wirebox ➝ : “coldbox.system.ioc.Injector”,
  • $assert : “testbox.system.Assertion”

Code Skeleton Snippets

  • cachebox-config ➝ : Creates a new CacheBox.cfc configuration file
  • config ➝ : Creates a new ColdBox.cfc configuration file
  • bdd ➝ : Creates a TestBox BDD Bundle
  • box ➝ : Creates a box.json template
  • handler ➝ : Creates a ColdBox Event Handler
  • interceptor ➝ : Creates a ColdBox Interceptor
  • model ➝ : Creates a model object
  • routes ➝ : Creates a new routing file
  • point ➝ : Creates a new interception point method
  • unit ➝ : Creates a TestBox TDD xUnit Bundle
  • cfc ➝ : Creates a new ColdFusion script CFC
  • function ➝ : Creates a new ColdFusion script function
  • inject ➝ : Creates a new property with an inject annotation for WireBox
  • property ➝ : Creates a new ColdFusion script property

Handler Code Snippets

  • action ➝ : Creates a handler action
  • around : Creates an aroundHandler() implicit action
  • onerror ➝ : Creates an onError() implicit action
  • onhttp ➝ : Creates an onInvalidHTTPMethod() implict action
  • onma ➝ : Creates an onMissingAction() implicit action
  • postaction ➝ : Creates a postXXX() implicit action
  • post ➝ : Creates a postHandler() implicit action
  • preaction ➝ : Creates a preXXX() implicit action
  • pre ➝ : Creates a preHandler() implicit action

ORM Code Snippets

  • active ➝ : Creates a ColdBox Active Entity
  • entity ➝ : Creates an ORM Entity
  • ormservice ➝ : Creates a Base ORM service
  • virtualservice ➝ : Creates a virtual entity service
  • o2m : Creates a one-to-many property definition
  • m2o : Creates a many-to-one property definition
  • m2m : Creates a many-to-many property definition

TestBox Snippets

  • assert : An assert() method
  • afterAll ➝ : An afterAll() BDD life-cycle method
  • aftereach ➝ : An afterEach() BDD closure
  • afterTests ➝ : An afterTests() xUnit life-cycle method
  • aroundEach ➝ : An aroundEach() BDD closure
  • bdd ➝ : Creates a new BDD Test Bundle CFC
  • beforeAll ➝ : An beforeAll() BDD life-cycle method
  • beforeeach ➝ : A beforeEach() BDD closure
  • beforeTests ➝ : An beforeTests() xUnit life-cycle method
  • console ➝ : TestBox send some output to the console
  • debug ➝ : Writes up a non-duplicate debug() call
  • debugduplicate ➝ : Writes up a debug() call with duplicate
  • describe ➝ : A describe suite
  • describeFull ➝ : A describe suite with all arguments
  • expect ➝ : Starts an expectation DSL with a toBe() addition
  • expectAll ➝ : Starts a collection expectation DSL with a toBe() addition
  • expectFalse ➝ : Does a false expectation expression
  • expectTrue ➝ : Does a true expectation expression
  • expectToThrow ➝ : Starts an expectation that throws an exception
  • feature, featureFull ➝ : Starts a feature() block
  • given, givenFull ➝ : Starts a given() block
  • it ➝ : A test spec
  • itFull ➝ : A test spec with all arguments
  • setup ➝ : An setup() xUnit life-cycle method
  • story, storyFull ➝ : Starts a story() block
  • teardown ➝ : An teardown() xUnit life-cycle method
  • then, thenFull ➝ : Starts a then() block
  • unit ➝ : Creates a new xUnit Test Bundle CFC
  • when, whenFull ➝ : Starts a when() block

ColdBox Testing Snippets

  • handlerTest ➝ : Creates a ColdBox Event Handler test case
  • integration ➝ : Creates a top down integration BDD test case
  • interceptorTest ➝ : Creates an Interceptor test case
  • modelTest ➝ : Creates a model test case
  • testaction ➝ : Creates an integration spec case for an event action

WireBox Code Snippets

  • aspect ➝ : Creates a WireBox AOP Aspect object
  • binder ➝ : Creates a basic WireBox configuration binder
  • inject ➝ : WireBox property injection
  • provider ➝ : Creates a WireBox provider method
  • setter ➝ : Creates a WireBox setter injection

Installation instructions :

With Package Control

If you have the Package Control package installed, you can install ColdBox Platform Bundle from inside Sublime Text itself. Open the Command Palette and select “Package Control: Install Package”, then search for ColdBox.

Without Package Control

Mac

$ cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/
$ git clone https://github.com/lmajano/cbox-coldbox-sublime.git coldbox

Linux (Ubuntu like distros)

$ cd ~/.config/sublime-text-2/Packages/
$ git clone https://github.com/lmajano/cbox-coldbox-sublime.git coldbox

Windows 7:

Copy the directory to: "C:\Users\<username>\AppData\Roaming\Sublime Text 2\Packages"

Windows XP:

Copy the directory to: "C:\Documents and Settings\<username>\Application Data\Sublime Text 2\Packages"

References: