diff --git a/composer.json b/composer.json index d96968a..c69bbc4 100644 --- a/composer.json +++ b/composer.json @@ -27,7 +27,10 @@ } }, "extra": { - "class": "Saucebase\\ModuleInstaller\\Plugin" + "class": "Saucebase\\ModuleInstaller\\Plugin", + "branch-alias": { + "dev-dev": "3.3.x-dev" + } }, "scripts": { "test": "phpunit", diff --git a/composer.lock b/composer.lock index 74662fd..c506189 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "760479659c9b9cb10758dc62fd7f21bb", + "content-hash": "5fbf6249a91188785f1842b45ece1e2c", "packages": [ { "name": "symfony/finder", diff --git a/src/Installer.php b/src/Installer.php index c02e96c..0e909b7 100644 --- a/src/Installer.php +++ b/src/Installer.php @@ -22,8 +22,8 @@ class Installer extends LibraryInstaller { const DEFAULT_ROOT = 'modules'; - /** Saucebase's own modules, and the ones an application writes. */ - const DEFAULT_MODULE_TYPES = ['saucebase-module', 'laravel-module']; + /** Saucebase's own modules, app starting points built from them, and the modules an application writes. */ + const DEFAULT_MODULE_TYPES = ['saucebase-module', 'saucebase-template', 'laravel-module']; const DEFAULT_EXCLUDED_DIRS = ['.github', '.git']; diff --git a/tests/ModuleInstallerTest.php b/tests/ModuleInstallerTest.php index 6080910..d38b10d 100644 --- a/tests/ModuleInstallerTest.php +++ b/tests/ModuleInstallerTest.php @@ -206,6 +206,7 @@ public function test_supports_default_module_type(): void // Saucebase's own modules and the ones an application writes, so neither needs setup. $this->assertTrue($installer->supports('saucebase-module')); $this->assertTrue($installer->supports('laravel-module')); + $this->assertTrue($installer->supports('saucebase-template')); $this->assertFalse($installer->supports('library')); $this->assertFalse($installer->supports('composer-plugin')); }