Appearance
BaseFilesPublisher
php
final readonly class Zairakai\LaravelDevTools\Services\BaseFilesPublisherThe files that every project has from the setup, besides config/dev-tools/: the Makefile, .editorconfig, the Composer scripts of the package and the block of .gitignore.
Source: src/Services/BaseFilesPublisher.php
Methods
__construct()
php
public function __construct(StubWriter $writer, PublishOutput $output)composerScripts()
php
public function composerScripts(string $vendorPath, string $basePath, bool $force): boolThe Composer scripts of the package, added to composer.json. With $force, a script that the project has with another value is replaced, after a copy of composer.json.
editorConfig()
php
public function editorConfig(string $vendorPath, string $basePath, bool $force): boolgitignore()
php
public function gitignore(string $basePath): boolThe block of .gitignore for the files of the tools. A project that has the block, with this title or with the one of the older versions, is left as it is. A project without .gitignore is left as it is too.
makefile()
php
public function makefile(string $vendorPath, string $basePath, bool $force, bool $fullstack): boolThe Makefile of the project: the one for PHP, or the one for PHP and JS when the project uses js-dev-tools.