-
-
Notifications
You must be signed in to change notification settings - Fork 688
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c273bf7
commit c0d4598
Showing
42 changed files
with
581 additions
and
157 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/temp | ||
!/temp/.gitkeep | ||
/vendor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# PHAR Compiler for Rector | ||
|
||
## Compile the PHAR | ||
|
||
```bash | ||
composer install | ||
php bin/compile [version] [repository] | ||
``` | ||
|
||
Default `version` is `master`, and default `repository` is `https://github.com/rector/rector.git`. | ||
|
||
The compiled PHAR will be in `tmp/rector.phar`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/env php | ||
<?php | ||
|
||
declare(strict_types = 1); | ||
|
||
use Rector\Compiler\Console\CompileCommand; | ||
use Rector\Compiler\Process\ProcessFactory; | ||
use Symfony\Component\Console\Application; | ||
|
||
require_once __DIR__ . '/../vendor/autoload.php'; | ||
|
||
$compileCommand = new CompileCommand( | ||
new ProcessFactory(), | ||
__DIR__ . '/../build', | ||
__DIR__ . '/../..' | ||
); | ||
|
||
/** @var Application $application */ | ||
$application = new Application(); | ||
$application->add($compileCommand); | ||
$application->setDefaultCommand($compileCommand->getName(), true); | ||
$application->run(); |
Oops, something went wrong.