Skip to content

Commit 53a6c81

Browse files
committed
add web template
- move the console and web templates to templates folder
1 parent 3bc92b7 commit 53a6c81

File tree

23 files changed

+152
-1
lines changed

23 files changed

+152
-1
lines changed

src/Commands/NewCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ public function __construct()
2929
$this->addOption('--output', 'Location to place the generated project output', '-o');
3030

3131
$this->registry = TemplateRegistry::getSingleton();
32-
$this->registry->set('console', new TemplateProvider('console', 'Create a console application', __DIR__ . '/../../template'));
32+
$this->registry->set('console', new TemplateProvider('console', 'Console application.', __DIR__ . '/../../templates/console'));
33+
$this->registry->set('web', new TemplateProvider('web', 'DevNet web application.', __DIR__ . '/../../templates/web'));
3334

3435
$this->setHelp(function ($builder) {
3536
$builder->useDefaults();
File renamed without changes.

templates/web/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.idea/
2+
.vscode/
3+
/vendor/
4+
composer.lock

0 commit comments

Comments
 (0)