pipe
pipe copied to clipboard
Symfony Bundle
Create a symfony bundle with the following things in it:
- View helpers, e.g.
asset_link- Renders tags according to asset content type, e.g.
<link>fortext/cssor<script>forapplication/javascript - In development, asset URI points to the asset controller, which dynamically compiles assets.
- In production, asset URI points to the asset's digest name (read from the manifest) prefixed with a configured path (could be CDN URI)
- Renders tags according to asset content type, e.g.
- Command
pipe:assets:precompile, which dumps assets to a directory with cache digests and a cache manifest in it (for an example implementation seebob/pipe_tasks.php)- The manifest should be a simple JSON file, with the logical path of each compiled asset as the key and the logical path with digests in it as the value. This file gets deployed to production's asset prefix and is used for figuring out the asset paths for production in the view helper.
- Controller for dynamic asset compilation for development environments. Assets should be accessible via
/pipe/asset/{asset}. - Environment exposed via DI container
- Constructing the
Pipe\Configvia Symfony's configuration system.
+1