Skip to content

Commit 8efc4a4

Browse files
committed
finalized v1.8.0
ColdBox 4 + TestBox 2 Additions
1 parent 8b317d4 commit 8efc4a4

26 files changed

+543
-595
lines changed

completions/ColdBox.sublime-completions

Lines changed: 283 additions & 286 deletions
Large diffs are not rendered by default.

readme.md

Lines changed: 49 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,46 @@
1-
# A ColdBox Platform Bundle v1.7 for Sublime text 2
1+
# A ColdBox Platform Bundle v1.8.0 for Sublime Text 2/3
22

3-
Get the latest Sublime Text 2 from http://www.sublimetext.com/2.
3+
Get the latest Sublime Text 2/3 from http://www.sublimetext.com/2.
4+
5+
## Target Platforms
6+
- ColdBox 4.X.X
7+
- TestBox 2.X.X
48

59
## Currently supported features
610

11+
This bundle includes functionality not only for ColdBox MVC, but also for TestBox BDD/TDD, MockBox, WireBox, CacheBox and LogBox.
12+
713
### Code Insight
8-
Code completion for all major ColdBox functions and scopes:
14+
Code completion for all major ColdBox + TestBox functions and scopes:
915

16+
- `binder ➝` : "coldbox.system.ioc.config.Binder",
17+
- `cachebox ➝` : "coldbox.system.cache.CacheFactory"
1018
- `controller ➝` : "coldbox.system.web.Controller",
1119
- `event ➝` : "coldbox.system.web.context.RequestContext",
1220
- `flash ➝` : "coldbox.system.web.flash.AbstractFlashScope",
21+
- `html ➝` : "coldbox.system.core.dynamic.HTMLHelper"
1322
- `log ➝` : "coldbox.system.logging.Logger",
1423
- `logbox ➝` : "coldbox.system.logging.LogBox",
15-
- `binder ➝` : "coldbox.system.ioc.config.Binder",
1624
- `wirebox ➝` : "coldbox.system.ioc.Injector",
17-
- `cachebox ➝` : "coldbox.system.cache.CacheFactory"
25+
26+
### Code Skeleton Snippets
27+
28+
- `cachebox-config ➝` : Creates a new CacheBox.cfc configuration file
29+
- `config ➝` : Creates a new ColdBox.cfc configuration file
30+
- `bdd ➝` : Creates a TestBox BDD Bundle
31+
- `box ➝` : Creates a `box.json` template
32+
- `handler ➝` : Creates a ColdBox Event Handler
33+
- `interceptor ➝` : Creates a ColdBox Interceptor
34+
- `model ➝` : Creates a model object
35+
- `routes ➝` : Creates a new routing file
36+
- `point ➝` : Creates a new interception point method
37+
- `unit ➝` : Creates a TestBox TDD xUnit Bundle
1838

1939
### Handler Code Snippets
2040

2141
- `action ➝` : Creates a handler action
2242
- `onerror ➝` : Creates an *onError()* implicit action
43+
- `onhttp ➝` : Creates an *onInvalidHTTPMethod()* implict action
2344
- `onma ➝` : Creates an *onMissingAction()* implicit action
2445
- `postaction ➝` : Creates a *postXXX()* implicit action
2546
- `post ➝` : Creates a *postHandler()* implicit action
@@ -33,49 +54,37 @@ Code completion for all major ColdBox functions and scopes:
3354
- `ormservice ➝` : Creates a Base ORM service
3455
- `virtualservice ➝` : Creates a virtual entity service
3556

36-
### Code Skeleton Snippets
37-
38-
- `handler ➝` : Creates a ColdBox Event Handler
39-
- `interceptor ➝` : Creates a ColdBox Interceptor
40-
- `point ➝` : Creates a new interception point method
41-
- `model ➝` : Creates a model object
42-
- `plugin ➝` : Creates a ColdBox plugin
43-
- `config ➝` : Creates a new ColdBox.cfc configuration file
44-
- `cachebox-config ➝` : Creates a new CacheBox.cfc configuration file
45-
- `routes ➝` : Creates a new routing file
46-
4757
### TestBox Snippets
4858

59+
- `afterAll ➝` : An `afterAll()` BDD life-cycle method
60+
- `aftereach ➝` : An `afterEach()` BDD closure
61+
- `afterTests ➝` : An `afterTests()` xUnit life-cycle method
4962
- `bdd ➝` : Creates a new BDD Test Bundle CFC
50-
- `unit ➝` : Creates a new xUnit Test Bundle CFC
63+
- `beforeAll ➝` : An `beforeAll()` BDD life-cycle method
64+
- `beforeeach ➝` : A `beforeEach()` BDD closure
65+
- `beforeTests ➝` : An `beforeTests()` xUnit life-cycle method
66+
- `console ➝` : TestBox send some output to the console
67+
- `debug ➝` : Writes up a non-duplicate `debug()` call
68+
- `debugduplicate ➝` : Writes up a `debug()` call with duplicate
5169
- `describe ➝` : A `describe` suite
5270
- `describeFull ➝` : A `describe` suite with all arguments
53-
- `it ➝` : A test spec
54-
- `itFull ➝` : A test spec with all arguments
5571
- `expect ➝` : Starts an expectation DSL with a `toBe()` addition
5672
- `expectFalse ➝` : Does a false expectation expression
5773
- `expectTrue ➝` : Does a true expectation expression
5874
- `expectToThrow ➝` : Starts an expectation that throws an exception
59-
- `afterAll ➝` : An `afterAll()` BDD life-cycle method
60-
- `beforeAll ➝` : An `beforeAll()` BDD life-cycle method
61-
- `aftereach ➝` : An `afterEach()` BDD closure
62-
- `beforeeach ➝` : A `beforeEach()` BDD closure
63-
- `afterTests ➝` : An `afterTests()` xUnit life-cycle method
64-
- `beforeTests ➝` : An `beforeTests()` xUnit life-cycle method
65-
- `teardown ➝` : An `teardown()` xUnit life-cycle method
75+
- `it ➝` : A test spec
76+
- `itFull ➝` : A test spec with all arguments
6677
- `setup ➝` : An `setup()` xUnit life-cycle method
67-
- `debug ➝` : Writes up a non-duplicate `debug()` call
68-
- `debugduplicate ➝` : Writes up a `debug()` call with duplicate
69-
- `console ➝` : TestBox send some output to the console
78+
- `teardown ➝` : An `teardown()` xUnit life-cycle method
79+
- `unit ➝` : Creates a new xUnit Test Bundle CFC
7080

71-
### Unit-Integration Testing Snippets
81+
### ColdBox Testing Snippets
7282

7383
- `handlerTest ➝` : Creates a ColdBox Event Handler test case
74-
- `integrationTest ➝` : Creates a top down integration test case
75-
- `integrationTestCase ➝` : Creates a test case for an event action
84+
- `integration ➝` : Creates a top down integration BDD test case
7685
- `interceptorTest ➝` : Creates an Interceptor test case
7786
- `modelTest ➝` : Creates a model test case
78-
- `pluginTest` : Creates a plugin test case
87+
- `testaction` : Creates an integration spec case for an event action
7988

8089
### WireBox Code Snippets
8190

@@ -120,11 +129,16 @@ If you have the [Package Control](http://wbond.net/sublime_packages/package_cont
120129
- MXUnit Sublime Text bundle - https://github.com/mxunit/sublime-text-2-mxunit
121130

122131
## Changelog
123-
### v1.7
132+
### v1.8.0
133+
- ColdBox 4 additions/modifications
134+
- TestBox 2 additions/modifications
135+
- CommandBox integrations
136+
137+
### v1.7.0
124138
- TestBox additions
125139
- Testing additions
126140

127-
### v1.5
141+
### v1.5.0
128142
- Handler snippet fixes
129143
- Model skeleton fix
130144
- New `config` skeleton for the Configuration File

skeletons/Coldbox.sublime-snippet

Lines changed: 12 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,15 @@ component{
1111
// coldbox directives
1212
coldbox = {
1313
//Application Setup
14-
appName = "Your app name here",
14+
appName = "${1:Your App Name}",
1515
eventName = "event",
1616
1717
//Development Settings
18-
debugMode = true,
19-
debugPassword = "",
2018
reinitPassword = "",
2119
handlersIndexAutoReload = true,
2220
2321
//Implicit Events
24-
defaultEvent = "General.index",
22+
defaultEvent = "Main.index",
2523
requestStartHandler = "Main.onRequestStart",
2624
requestEndHandler = "",
2725
applicationStartHandler = "Main.onAppInit",
@@ -31,7 +29,8 @@ component{
3129
missingTemplateHandler = "",
3230
3331
//Extension Points
34-
UDFLibraryFile = "includes/helpers/ApplicationHelper.cfm",
32+
ApplicationHelper = "includes/helpers/ApplicationHelper.cfm",
33+
ViewsHelper = "",
3534
coldboxExtensionsLocation = "",
3635
modulesExternalLocation = [],
3736
pluginsExternalLocation = "",
@@ -60,7 +59,7 @@ component{
6059
// create a function with the name of the environment so it can be executed if that environment is detected
6160
// the value of the environment is a list of regex patterns to match the cgi.http_host.
6261
environments = {
63-
//development = "^cf8.,^railo."
62+
development = "^localhost,127\.0\.0\.1"
6463
};
6564
6665
// Module Directives
@@ -105,32 +104,7 @@ component{
105104
}
106105
];
107106
108-
// Object & Form Validation
109-
validation = {
110-
// manager = "class path" or none at all to use ColdBox as the validation manager
111-
// The shared constraints for your application.
112-
sharedConstraints = {
113-
// EX
114-
// myForm = { name={required=true}, age={type="numeric",min="18"} }
115-
}
116-
};
117-
118-
119107
/*
120-
121-
// ORM services, injection, etc
122-
orm = {
123-
// entity injection
124-
injection = {
125-
// enable it
126-
enabled = true,
127-
// the include list for injection
128-
include = "",
129-
// the exclude list for injection
130-
exclude = ""
131-
}
132-
};
133-
134108
// flash scope configuration
135109
flash = {
136110
scope = "session,client,cluster,ColdboxCache,or full path",
@@ -160,60 +134,6 @@ component{
160134
eventAction = "index"
161135
};
162136
163-
//IOC Integration
164-
ioc = {
165-
framework = "lightwire",
166-
reload = true,
167-
objectCaching = false,
168-
definitionFile = "config/coldspring.xml.cfm",
169-
parentFactory = {
170-
framework = "coldspring",
171-
definitionFile = "config/parent.xml.cfm"
172-
}
173-
};
174-
175-
//Debugger Settings
176-
debugger = {
177-
enableDumpVar = false,
178-
persistentRequestProfilers = true,
179-
maxPersistentRequestProfilers = 10,
180-
maxRCPanelQueryRows = 50,
181-
showRCSnapshots = false,
182-
//Panels
183-
showTracerPanel = true,
184-
expandedTracerPanel = true,
185-
showInfoPanel = true,
186-
expandedInfoPanel = true,
187-
showCachePanel = true,
188-
expandedCachePanel = true,
189-
showRCPanel = true,
190-
expandedRCPanel = true,
191-
showModulesPanel = true,
192-
expandedModulesPanel = false
193-
};
194-
195-
//Mailsettings
196-
mailSettings = {
197-
server = "",
198-
username = "",
199-
password = "",
200-
port = 25
201-
};
202-
203-
//i18n & Localization
204-
i18n = {
205-
defaultResourceBundle = "includes/i18n/main",
206-
defaultLocale = "en_US",
207-
localeStorage = "session",
208-
unknownTranslation = "**NOT FOUND**"
209-
};
210-
211-
//webservices
212-
webservices = {
213-
testWS = "http://www.test.com/test.cfc?wsdl",
214-
AnotherTestWS = "http://www.coldbox.org/distribution/updatews.cfc?wsdl"
215-
};
216-
217137
//Datasources
218138
datasources = {
219139
mysite = {name="mySite", dbType="mysql", username="root", password="pass"},
@@ -222,6 +142,13 @@ component{
222142
*/
223143
224144
}
145+
146+
/**
147+
* Dev environment
148+
*/
149+
function development(){
150+
coldbox.customErrorTemplate = "/coldbox/system/includes/BugReport.cfm";
151+
}
225152
226153
}
227154
]]></content>

skeletons/box.json.sublime-snippet

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
<snippet>
2+
<content><![CDATA[
3+
{
4+
"name":"${1:My Application}",
5+
"slug":"${2:myslug}",
6+
"version":"${3:1.0.0}",
7+
"author":"${4}",
8+
"shortDescription":"${5}",
9+
"location":"",
10+
"directory":"",
11+
"createPackageDirectory":true,
12+
"packageDirectory":"",
13+
"homepage":"",
14+
"documentation":"",
15+
"repository":{
16+
"type":"",
17+
"url":""
18+
},
19+
"bugs":"",
20+
"description":"",
21+
"instructions":"",
22+
"changelog":"",
23+
"type":"",
24+
"keywords":[
25+
26+
],
27+
"private":false,
28+
"engines":[
29+
{
30+
"type":"railo",
31+
"version":">=4.1.x"
32+
},
33+
{
34+
"type":"adobe",
35+
"version":">=10.0.0"
36+
}
37+
],
38+
"defaultEngine":"",
39+
"defaultPort":0,
40+
"projectURL":"",
41+
"license":[
42+
{
43+
"type":"",
44+
"url":""
45+
}
46+
],
47+
"contributors":[
48+
49+
],
50+
"dependencies":{
51+
52+
},
53+
"devDependencies":{
54+
55+
},
56+
"installPaths":{
57+
58+
},
59+
"ignore":[
60+
61+
],
62+
"testbox":{
63+
"runner":[
64+
{
65+
"default":""
66+
}
67+
],
68+
"labels":[
69+
70+
],
71+
"reporter":"",
72+
"reporterResults":"",
73+
"bundles":[
74+
""
75+
],
76+
"directory":{
77+
"mapping":"",
78+
"recurse":true
79+
},
80+
"watchers":[
81+
82+
],
83+
"notify":{
84+
"emails":[
85+
86+
],
87+
"growl":"",
88+
"url":""
89+
}
90+
}
91+
}
92+
]]></content>
93+
<tabTrigger>box</tabTrigger>
94+
<scope>source,text,json</scope>
95+
<description>Box.json Package Descriptor</description>
96+
</snippet>

0 commit comments

Comments
 (0)