{"id":17743788,"url":"https://github.com/electrotiti/tlassets-bundle","last_synced_at":"2025-08-01T10:05:52.004Z","repository":{"id":20709078,"uuid":"23992970","full_name":"electrotiti/tlassets-bundle","owner":"electrotiti","description":"Dump your assets using Gulp on Symfony2 project","archived":false,"fork":false,"pushed_at":"2014-10-07T21:46:18.000Z","size":368,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-01T13:42:28.017Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/electrotiti.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-09-13T11:43:39.000Z","updated_at":"2015-07-10T08:34:54.000Z","dependencies_parsed_at":"2022-08-21T11:20:47.046Z","dependency_job_id":null,"html_url":"https://github.com/electrotiti/tlassets-bundle","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/electrotiti%2Ftlassets-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/electrotiti%2Ftlassets-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/electrotiti%2Ftlassets-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/electrotiti%2Ftlassets-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/electrotiti","download_url":"https://codeload.github.com/electrotiti/tlassets-bundle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246558119,"owners_count":20796696,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-26T06:06:49.864Z","updated_at":"2025-03-31T23:57:33.036Z","avatar_url":"https://github.com/electrotiti.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"tlassets-bundle\n===============\n\n[![Build Status](https://travis-ci.org/electrotiti/tlassets-bundle.svg?branch=master)](https://travis-ci.org/electrotiti/tlassets-bundle)\n\nTlAssetsBundle is an alternative to Assetic, it build your assets using NodeJS, GULP and custom Twig tags on a Symfony2 project.\n\n__WARNING: This bundle is under development, do not use on production.__\n\n## How it works ?\n__1:/__ In your Twig template, use the tags \"style\" and \"js\" to give assets source path and optional filters\n\n__2:/__ The parser, find all Twig template with these tags and create a JSON buffer file in cache that describe \nthe location of source path, the destination filename and some others options\n\n__3:/__ The compiler read the buffer files previously created and compile the final assets with GULP\n\nThe goal of these two steps (and not one step like assetic does), is to  parse your Twig template only when your assets \ndefinition change, and compile your assets only when you modify the content of your assets file.\n\n\n## Prerequisites\nFirst you have to install in your environment this tools: \n   * Node JS \n   * NPM \n\n## Installation\n\n### Gulp and dependencies\nIn order to install Gulp and his dependencies, execute command this command :\n````\nphp app/console tlassets:gulp:install\n````\n## Tags Twig\n\nBelow an example of tags that you can use in your Twig\n\n```` Twig\n{% style \"@MyCustomBundle/Resources/public/less/\" filter=\"less\" %}\n  \u003clink rel=\"stylesheet\" href=\"{{ asset(asset_url) }}\" type=\"text/css\" /\u003e\n{% endstyle %}\n\n{% js \"@MyCustomBundle/Resources/public/js/\" %}\n  \u003cscript type=\"application/javascript\" src=\"{{ asset(asset_url) }}\" /\u003e\n{% endjs %}\n\n````\n\n## Install your assets:\n\n````\nphp app/console assets:install\n````\n_This command (from Symfony), copy your assets from the folder : \"src/\" to the folder : \"web/bundles/\"_\n\n## Quick assets compilation\n\nTo compile quickly your assets you just have to do this:\n````\nphp app/console assets:dump\n````\n_This command do a tlassets:flush, a tlassets:parse and a tlassets:compile\"_\n\n## Generate your assets step by step\n\nAlternatively (and it's why this bundle is different of Assetic), each task on assets construction can be do separately\n\n### Flush previous compilation\n````\nphp app/console tlassets:flush\n````\n_This command remove cache and assets previously generated in order to have a clean environment_\n\n### Parse Twig template\n````\nphp app/console tlassets:parse\n````\n_This command parse your Twig template and create a JSON file on the cache directory that will be used by GULP_\n\n### Compile assets\n````\nphp app/console tlassets:compile\n````\n_This command retrieves all file buffer previously created with the parsing command and compile the final assets files_\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felectrotiti%2Ftlassets-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felectrotiti%2Ftlassets-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felectrotiti%2Ftlassets-bundle/lists"}