Skip to content

Commit 94e639a

Browse files
lmajanogithub-actions[bot]
authored andcommitted
Apply cfformat changes
1 parent 54cb51d commit 94e639a

File tree

1 file changed

+13
-29
lines changed

1 file changed

+13
-29
lines changed

build/Build.cfc

Lines changed: 13 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ component {
1515
variables.apiDocsURL = "http://localhost:60299/apidocs/";
1616
variables.testRunner = "http://localhost:60299/tests/runner.cfm";
1717
variables.exportsDir = "";
18-
variables.moduleName = "coldbox-cli";
18+
variables.moduleName = "coldbox-cli";
1919

2020
// Source Excludes Not Added to final binary: You can use REGEX
2121
variables.excludes = [
@@ -27,10 +27,7 @@ component {
2727
];
2828

2929
// Cleanup + Init Build Directories
30-
[
31-
variables.buildDir,
32-
variables.artifactsDir
33-
].each( function( item ){
30+
[ variables.buildDir, variables.artifactsDir ].each( function( item ){
3431
if ( directoryExists( item ) ) {
3532
directoryDelete( item, true );
3633
}
@@ -48,9 +45,9 @@ component {
4845
* Run the build process: test, build source, docs, checksums
4946
*
5047
* @projectName The project name used for resources and slugs
51-
* @version The version you are building
52-
* @buldID The build identifier
53-
* @branch The branch you are building
48+
* @version The version you are building
49+
* @buldID The build identifier
50+
* @branch The branch you are building
5451
*/
5552
function run(
5653
required projectName,
@@ -113,9 +110,9 @@ component {
113110
* Build the source
114111
*
115112
* @projectName The project name used for resources and slugs
116-
* @version The version you are building
117-
* @buldID The build identifier
118-
* @branch The branch you are building
113+
* @version The version you are building
114+
* @buldID The build identifier
115+
* @branch The branch you are building
119116
*/
120117
function buildSource(
121118
required projectName,
@@ -135,18 +132,11 @@ component {
135132

136133
// Project Build Dir
137134
variables.projectBuildDir = variables.buildDir & "/#projectName#";
138-
directoryCreate(
139-
variables.projectBuildDir,
140-
true,
141-
true
142-
);
135+
directoryCreate( variables.projectBuildDir, true, true );
143136

144137
// Copy source
145138
print.blueLine( "Copying source to build folder..." ).toConsole();
146-
copy(
147-
variables.cwd,
148-
variables.projectBuildDir
149-
);
139+
copy( variables.cwd, variables.projectBuildDir );
150140

151141
// Create build ID
152142
fileWrite(
@@ -185,10 +175,7 @@ component {
185175
);
186176

187177
// Copy box.json for convenience
188-
fileCopy(
189-
"#variables.projectBuildDir#/box.json",
190-
variables.exportsDir
191-
);
178+
fileCopy( "#variables.projectBuildDir#/box.json", variables.exportsDir );
192179
}
193180

194181
/**
@@ -298,11 +285,8 @@ component {
298285
/**
299286
* Ensure the export directory exists at artifacts/NAME/VERSION/
300287
*/
301-
private function ensureExportDir(
302-
required projectName,
303-
version = "1.0.0"
304-
){
305-
if ( structKeyExists( variables, "exportsDir" ) && directoryExists( variables.exportsDir ) ){
288+
private function ensureExportDir( required projectName, version = "1.0.0" ){
289+
if ( structKeyExists( variables, "exportsDir" ) && directoryExists( variables.exportsDir ) ) {
306290
return;
307291
}
308292
// Prepare exports directory

0 commit comments

Comments
 (0)