-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build Blueprints as a .phar file (#28)
Uses [the Box project](https://box-project.github.io/box) to build the Blueprints library to a `.phar` library. To build the file, run: ```shell vendor/bin/box compile ``` To try the built .phar file, run: ```shell rm -rf new-wp/* && USE_PHAR=1 php blueprint_compiling.php ``` ## Follow-up work The built file is 1.3MB compressed, and most of that comes from external libraries. Let's identify the largest libraries, replace them with custom and tiny implementation, and see if we can reduce the size to, say, 100KB.
- Loading branch information
Showing
10 changed files
with
281 additions
and
265 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,6 @@ outdir/ | |
test.php | ||
run_phar.php | ||
run_src.php | ||
.phive | ||
vendor-bin | ||
new-wp |
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 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,13 @@ | ||
{ | ||
"main": "vendor/autoload.php", | ||
"output": "dist/blueprints.phar", | ||
"compactors": [ | ||
"KevinGH\\Box\\Compactor\\Php" | ||
], | ||
"compression": "GZ", | ||
"annotations": false, | ||
"directories": [ | ||
"vendor/symfony/process" | ||
], | ||
"force-autodiscovery": true | ||
} |
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
Oops, something went wrong.