Skip to content

fix: use current working directory as plugin name #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ $ composer require scto/plugin-compiler --dev
## Usage

The compiler binary can has up to five arguments for compiling.
N.B.: The name of the plugin created from the name of the current woking directory.

```
$ ./vendor/bin/scto-compile manifest.json help.textile textpack.txt srcFolder outputFolder
Expand Down
2 changes: 1 addition & 1 deletion src/CompilerApp.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function run(array $args): void
$folderProcessor = new FolderProcessor($this->pluginData);
$folderProcessor->process($src);

$name = basename(dirname($manifest));
$name = basename(getcwd());
$this->pluginData->setName($name);

$code = $this->pluginData->getCode();
Expand Down