|
8 | 8 | * {code} |
9 | 9 | * . |
10 | 10 | * Here are the basic skeletons that are available for you that come from ForgeBox |
| 11 | + * - BoxLang |
11 | 12 | * - Default (default) |
12 | 13 | * - Elixir |
13 | 14 | * - Modern |
@@ -39,13 +40,14 @@ component extends="coldbox-cli.models.BaseCommand" { |
39 | 40 | function init(){ |
40 | 41 | // Map these shortcut names to the actual ForgeBox slugs |
41 | 42 | variables.templateMap = { |
42 | | - "AdvancedScript" : "cbtemplate-advanced-script", |
43 | | - "Default" : "cbtemplate-advanced-script", |
44 | | - "Elixir" : "cbtemplate-elixir", |
45 | | - "rest" : "cbtemplate-rest", |
46 | | - "rest-hmvc" : "cbtemplate-rest-hmvc", |
47 | | - "Vite" : "cbtemplate-vite", |
48 | | - "SuperSimple" : "cbtemplate-supersimple" |
| 43 | + "Default" : "cbtemplate-advanced-script", |
| 44 | + "BoxLang" : "cbtemplate-bx-default", |
| 45 | + "Elixir" : "cbtemplate-elixir", |
| 46 | + "modern" : "cbtemplate-modern", |
| 47 | + "rest" : "cbtemplate-rest", |
| 48 | + "rest-hmvc" : "cbtemplate-rest-hmvc", |
| 49 | + "Vite" : "cbtemplate-vite", |
| 50 | + "SuperSimple" : "cbtemplate-supersimple" |
49 | 51 | }; |
50 | 52 |
|
51 | 53 | variables.defaultAppName = "My ColdBox App"; |
@@ -127,6 +129,11 @@ component extends="coldbox-cli.models.BaseCommand" { |
127 | 129 | shell.cd( originalPath ); |
128 | 130 | } |
129 | 131 |
|
| 132 | + // Prepare language |
| 133 | + if ( arguments.boxlang ) { |
| 134 | + command( "package set" ).params( language: "BoxLang" ).run(); |
| 135 | + } |
| 136 | + |
130 | 137 | // Prepare defaults on box.json so we remove template based ones |
131 | 138 | command( "package set" ) |
132 | 139 | .params( |
|
0 commit comments