Skip to content

Instantly share code, notes, and snippets.

@DarkGhostHunter
Last active November 28, 2019 04:14
Show Gist options
  • Save DarkGhostHunter/7fb53e62aab8b82172bf7f433e801fd8 to your computer and use it in GitHub Desktop.
Save DarkGhostHunter/7fb53e62aab8b82172bf7f433e801fd8 to your computer and use it in GitHub Desktop.
Preload JSON for composer.json
{
"pre-compile": [
"my-script.php",
"my-other-script.php"
],
"extensions": [
"php"
],
"files": [
"app/*",
"config/",
"helpers.php",
"app/Models/*",
"app/Controllers/*/Http/*",
"app/Views/Compiled*.php"
],
"namespace": [
"App\\Models",
"App\\Controllers\\",
"App\\Views\\MainView",
"Vendor\\Package\\*",
],
"packages": {
"symfony/http-client": true,
"robert/*-client": true,
"vendor/package": {
"files": true,
"namespace": true
},
"foo/bar": {
"files": [
"helpers.php",
"loaders/*"
],
"namespace": [
"Foo\\Bar\\DynamicLoaders\\*",
"Foo\\Bar\\Clients"
]
}
},
"output": "preload-compiled.php"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment