Skip to content

Commit d370799

Browse files
committed
### v2.5.0
- Fixes for base spec bdd generation - New `cfc` snippet for new CFC - New `function` snippet for new function - New `inject` snippet for a new WireBox property injection - New `property` snippet for a new property in script
1 parent f54bc61 commit d370799

File tree

6 files changed

+64
-0
lines changed

6 files changed

+64
-0
lines changed

changelog.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
## Changelog
22

3+
### v2.5.0
4+
- Fixes for base spec bdd generation
5+
- New `cfc` snippet for new CFC
6+
- New `function` snippet for new function
7+
- New `inject` snippet for a new WireBox property injection
8+
- New `property` snippet for a new property in script
9+
310
### v2.4.0
411
- TestBox v2.4 Updates
512
- New ORM property snippets m2m,o2m,m2o

readme.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ Code completion for all major ColdBox + TestBox functions and scopes:
3636
- `routes ➝` : Creates a new routing file
3737
- `point ➝` : Creates a new interception point method
3838
- `unit ➝` : Creates a TestBox TDD xUnit Bundle
39+
- `cfc ➝` : Creates a new ColdFusion script CFC
40+
- `function ➝` : Creates a new ColdFusion script function
41+
- `inject ➝` : Creates a new property with an `inject` annotation for WireBox
42+
- `property ➝` : Creates a new ColdFusion script property
3943

4044
### Handler Code Snippets
4145

snippets/cfml/cfc.sublime-snippet

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<snippet>
2+
<content><![CDATA[
3+
/**
4+
* ${1:index}
5+
*/
6+
component{
7+
8+
/**
9+
* Constructor
10+
*/
11+
function init(){
12+
13+
return this;
14+
}
15+
16+
}
17+
]]></content>
18+
<tabTrigger>cfc</tabTrigger>
19+
<scope>source,text</scope>
20+
<description>Script Component</description>
21+
</snippet>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<snippet>
2+
<content><![CDATA[
3+
/**
4+
* ${1:index}
5+
*/
6+
function ${1:}(){
7+
8+
}
9+
]]></content>
10+
<tabTrigger>function</tabTrigger>
11+
<scope>source,text</scope>
12+
<description>Script Function</description>
13+
</snippet>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<snippet>
2+
<content><![CDATA[
3+
property name="${1}" inject="${2}";
4+
]]></content>
5+
<tabTrigger>inject</tabTrigger>
6+
<scope>source,text</scope>
7+
<description>Script Property Injection</description>
8+
</snippet>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<snippet>
2+
<content><![CDATA[
3+
/**
4+
* ${1}
5+
*/
6+
property name="${1}";
7+
]]></content>
8+
<tabTrigger>prop</tabTrigger>
9+
<scope>source,text</scope>
10+
<description>Script Property</description>
11+
</snippet>

0 commit comments

Comments
 (0)