{"id":18084532,"url":"https://github.com/endel/lazy-assets","last_synced_at":"2025-04-12T20:08:46.453Z","repository":{"id":15468076,"uuid":"18201350","full_name":"endel/lazy-assets","owner":"endel","description":"An opinionated and simple build-system approach.","archived":false,"fork":false,"pushed_at":"2015-04-07T17:45:08.000Z","size":474,"stargazers_count":12,"open_issues_count":5,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-12T20:08:39.660Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"bugfixer.endel.me/2014/05/03/really-quick-and-productive-front-end-build-system/","language":"JavaScript","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/endel.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-03-28T04:48:47.000Z","updated_at":"2020-12-24T16:37:05.000Z","dependencies_parsed_at":"2022-09-07T05:51:08.083Z","dependency_job_id":null,"html_url":"https://github.com/endel/lazy-assets","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/endel%2Flazy-assets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/endel%2Flazy-assets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/endel%2Flazy-assets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/endel%2Flazy-assets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/endel","download_url":"https://codeload.github.com/endel/lazy-assets/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248625493,"owners_count":21135513,"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-31T15:07:05.547Z","updated_at":"2025-04-12T20:08:46.432Z","avatar_url":"https://github.com/endel.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"lazy-assets\n===\n\nAn opinionated and simple build-system approach.\n\nFeatures:\n---\n\n- JavaScript minification and optimization\n- CSS minification and optimization\n- Bower integration\n- **Zero configuration**\n\nRequirements\n---\n\n```bash\nnpm install -g lazy-assets\n```\n\nDevelopment server\n---\n\nOn development mode, `asset` definitions are evaluated and dynamically\nconverted to a valid HTML tag. They are compiled on-demand. No \"watch\"\nrequired.\n\n```bash\nlazy-assets examples/simple\n```\n\nProduction\n---\n\nWhen compiling for production, all your javascripts and stylesheets are\ncompressed into a single file.\n\n```bash\nlazy-assets {input_dir} {output_dir}\n```\n\nHow to use\n---\n\nWrap all your assets with `\u003cassets\u003e` tag, and define each dependency with\n`\u003casset\u003e` tag.\n\nTo start the development server, run the following: (by default it binds on\n[localhost:3000](http://localhost:3000).)\n\n```bash\nlazy-assets examples/simple\n```\n\nThen define your dependencies:\n\n```html\n\u003cassets\u003e\n  \u003casset href=\"jquery\" source=\"bower\" /\u003e\n  \u003casset href=\"bootstrap\" source=\"bower\" /\u003e\n  \u003casset href=\"ractive\" source=\"bower\" /\u003e\n  \u003casset href=\"parsleyjs\" source=\"bower\" main=\"dist/parsley.min.js\" /\u003e\n  \u003casset href=\"datejs\" source=\"bower\" main=\"build/date.js,build/date-pt-BR.js\" /\u003e\n  \u003casset href=\"app.js\" compile=\"browserify\" /\u003e\n  \u003casset href=\"test.less\" /\u003e\n  \u003casset href=\"test.coffee\" /\u003e\n  \u003casset href=\"js/*.js\" /\u003e\n\u003c/assets\u003e\n```\n\nWhen `http://localhost:8000` is requested, the output of the HTML file will be\nthe following:\n\n```html\n\u003clink href=\"dependencies/bootstrap/dist/css/bootstrap.css?533a476e18588\" rel=\"stylesheet\" media=\"all\" type=\"text/css\" /\u003e\n\u003clink href=\"test.less?533a476e18810\" rel=\"stylesheet\" media=\"all\" type=\"text/css\" /\u003e\n\u003cscript type=\"text/javascript\" src=\"dependencies/jquery/dist/jquery.js?533a476e184a3\"\u003e\u003c/script\u003e\n\u003cscript type=\"text/javascript\" src=\"dependencies/bootstrap/dist/js/bootstrap.js?533a476e1859a\"\u003e\u003c/script\u003e\n\u003cscript type=\"text/javascript\" src=\"dependencies/ractive/build/Ractive.js?533a476e186be\"\u003e\u003c/script\u003e\n\u003cscript type=\"text/javascript\" src=\"dependencies/parsleyjs/dist/parsley.min.js?533a476e18748\"\u003e\u003c/script\u003e\n\u003cscript type=\"text/javascript\" src=\"dependencies/datejs/build/date.js?533a476e187ba\"\u003e\u003c/script\u003e\n\u003cscript type=\"text/javascript\" src=\"dependencies/datejs/build/date-pt-BR.js?533a476e187d6\"\u003e\u003c/script\u003e\n\u003cscript type=\"text/javascript\" src=\"app.js?compile=browserify\u0026533a476e187fa\"\u003e\u003c/script\u003e\n\u003cscript type=\"text/javascript\" src=\"test.coffee?533a476e18822\"\u003e\u003c/script\u003e\n\u003cscript type=\"text/javascript\" src=\"js/*.js?533a476e1883e\"\u003e\u003c/script\u003e\n```\n\nNow let's compile it for production:\n\n```bash\nlazy-assets examples/simple examples/simple-output\n```\n\nResult:\n\n```html\n\u003cscript type=\"text/javascript\" src=\"javascripts-533afd8c542fd.js\"\u003e\u003c/script\u003e\n\u003clink href=\"stylesheets-533afd8c.css\" rel=\"stylesheet\" media=\"all\" type=\"text/css\" /\u003e\n```\n\n\nLicense\n---\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fendel%2Flazy-assets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fendel%2Flazy-assets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fendel%2Flazy-assets/lists"}