Skip to content

Commit

Permalink
Build new phar file for the feature
Browse files Browse the repository at this point in the history
  • Loading branch information
Kathryn Anne S Tan committed May 27, 2024
1 parent 7c07a93 commit d03be4f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ And that should generate a Dockerfile at the current directory the command was r
* `--force` - Overwrite existing files
* `--skip` - Keep existing files
* `--dev` - Include dev dependencies in the creation of the image, i.e. the local .env file
* `--frankenphp-binary` - Generate a single file binary of the app via frankenphp

The dockerfile generator accepts the following options:

Expand Down
11 changes: 9 additions & 2 deletions app/Services/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ public function createFile( $output, $result )

/**
* Check if package.json exists in the directory
*
* @param string $directory - string used as directory where the package.json file is scanned in
*/
public function packageJsonExists( $directory )
public function packageJsonExists( string $directory )
{
$path = $directory.'/package.json';

Expand All @@ -40,7 +42,12 @@ public function packageJsonExists( $directory )
}
}

public function composerJsonContent( $directory )
/**
* Get array of key value pairs from a composer.json file
*
* @param string $directory - string used as directory where the composer.json file is scanned in
*/
public function composerJsonContent( string $directory )
{
$path = $directory.'/composer.json';

Expand Down
Binary file modified builds/dockerfile-laravel
Binary file not shown.

0 comments on commit d03be4f

Please sign in to comment.