An open API service indexing awesome lists of open source software.

https://github.com/netgusto/symfony-distributionbundle


https://github.com/netgusto/symfony-distributionbundle

Last synced: 10 months ago
JSON representation

Awesome Lists containing this project

README

          

Symfony-DistributionBundle
==========================

## Forwarding assets packages to web dir

In app/config.yaml

```yaml
netgusto_distribution:
assets_forwarding:
dest_dir: ~
packages:
- some/package
- some/otherpackage
```

In composer.json

```json
{
'...',
"scripts": {
"post-install-cmd": [
'...',
"Netgusto\\DistributionBundle\\Composer\\ScriptHandler::forwardAssetsToWebDir"
],
"post-update-cmd": [
'...',
"Netgusto\\DistributionBundle\\Composer\\ScriptHandler::forwardAssetsToWebDir"
]
},
'...',
}
```

In app/AppKernel.php

```php
$bundles = array(
// ...
new Netgusto\DistributionBundle\NetgustoDistributionBundle(),
// ...
);
```

Packages will be forwarded to `web/vendor` at `composer install`, and at every `composer update`.