Using CommandBox, I was trying to create a skeleton without ColdBox in it.
Here’s the command I ran:
`
c:\test>box coldbox create app --wizard
Enter name (The name of the app you want to create) :test
Enter skeleton (The application skeleton you want to use) :advancedscript
Enter init (Would you like to init this as a CommandBox Package) :(Yes/No) : no
Enter installColdBox (Install the latest stable version of ColdBox from ForgeBox) :(Yes/No) : no
Enter installColdBoxBE (Install the bleeding edge version of ColdBox from ForgeBox) :(Yes/No) : no
Enter installTestBox (Install the latest stable version of TestBox from ForgeBox) :(Yes/No) : no
`
However, it generated /coldbox inside the installation folder even though I answered “no” to install ColdBox.
I also wondered if there is a command to remove /coldbox using CommandBox. I knew that I could just delete the /coldbox folder, but I thought I wanted to do it with CommandBox.
Thanks!
One more thing… appName in ColdBox.cfc also didn’t get populated correctly.
Hi, the templates didn’t used to install ColdBox by default unless you specifically asked for it. When Luis revamped them to include a better box.json, he added Coldbox as a dependency to the box.json so now you actually get ColdBox regardless of whether or not you use the “–installColdBox” flag since it’s one of the dependencies of the main package.
There’s currently no way to tell CommandBox to ignore dependencies, but the official way to remove a dependency would be with the “uninstall” command. This will delete the folder of code as well as remove it from the box.json.
CommandBox> uninstall coldbox
Thanks!
~Brad
ColdBox/CommandBox Developer Advocate
Ortus Solutions, Corp
E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com
I’m honestly not even sure what the appname in the config is used for these days. Please feel free to submit a pull request to fix this. You would need to modify each of our application templates in Github:
https://github.com/coldbox-templates
And then modify the “coldbox create app” command to do the replacement:
https://github.com/Ortus-Solutions/commandbox/blob/development/src/cfml/system/modules_app/coldbox-commands/commands/coldbox/create/app.cfc#L121-L124
Thanks!
~Brad
ColdBox/CommandBox Developer Advocate
Ortus Solutions, Corp
E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com