{"id":23900832,"url":"https://github.com/aerogo/pack","last_synced_at":"2025-04-10T21:02:48.837Z","repository":{"id":57480690,"uuid":"73562434","full_name":"aerogo/pack","owner":"aerogo","description":":package: Packs the assets for your web server.","archived":false,"fork":false,"pushed_at":"2019-12-04T02:19:40.000Z","size":2253,"stargazers_count":20,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-29T21:05:51.785Z","etag":null,"topics":["automation","build-tool","go"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aerogo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"akyoto","patreon":"eduardurbach"}},"created_at":"2016-11-12T15:58:25.000Z","updated_at":"2024-07-20T16:44:44.000Z","dependencies_parsed_at":"2022-09-26T17:41:19.459Z","dependency_job_id":null,"html_url":"https://github.com/aerogo/pack","commit_stats":null,"previous_names":[],"tags_count":28,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aerogo%2Fpack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aerogo%2Fpack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aerogo%2Fpack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aerogo%2Fpack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aerogo","download_url":"https://codeload.github.com/aerogo/pack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232518485,"owners_count":18535971,"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":["automation","build-tool","go"],"created_at":"2025-01-04T20:39:40.932Z","updated_at":"2025-01-04T20:39:43.887Z","avatar_url":"https://github.com/aerogo.png","language":"Go","funding_links":["https://github.com/sponsors/akyoto","https://patreon.com/eduardurbach"],"categories":[],"sub_categories":[],"readme":"# pack\n\n[![Godoc][godoc-image]][godoc-url]\n[![Report][report-image]][report-url]\n[![Tests][tests-image]][tests-url]\n[![Coverage][coverage-image]][coverage-url]\n[![Sponsor][sponsor-image]][sponsor-url]\n\nPacks the assets for your web server.\n\n## Installation\n\n```shell\ngo get -u github.com/aerogo/pack/...\n```\n\n## Usage\n\n![pack usage](docs/usage.gif)\n\nRun `pack` in your project directory. It will scan your project directory recursively to compile `.pixy`, `.scarlet` and `.js` files resulting in a `components` package in your root directory. You can then import the `components` package in your project to access all of your assets.\n\nPack is silent by default. Use `pack -v` to produce verbose output.\n\n### Performance\n\nPack uses parallel compilation via job queues and is therefore extremely fast, much faster than the popular [webpack](https://github.com/webpack/webpack).\n\n## Components\n\nSince `components` is a generated directory you should list this directory in your `.gitignore` file.\n\n### CSS\n\n```go\nimport \"github.com/YOUR_ORG/YOUR_REPO/components/css\"\n```\n\n```go\ncss.Bundle()\n```\n\nReturns the CSS bundle which is a string of CSS containing all styles.\n\n### JS\n\n```go\nimport \"github.com/YOUR_ORG/YOUR_REPO/components/js\"\n```\n\n```go\njs.Bundle()\n```\n\nReturns the JS bundle which is a string of JS containing all scripts.\n\n### Templates\n\n```go\nimport \"github.com/YOUR_ORG/YOUR_REPO/components\"\n```\n\nTemplates are registered as public functions in the `components` package and can be called directly. All components are global, thus you can call a component from one file in another file without any import directives. Components return an HTML `string` but they use a single `strings.Builder` via pooling and streaming under the hood, which is extremely fast.\n\n## Style\n\nPlease take a look at the [style guidelines](https://github.com/akyoto/quality/blob/master/STYLE.md) if you'd like to make a pull request.\n\n## Sponsors\n\n| [![Cedric Fung](https://avatars3.githubusercontent.com/u/2269238?s=70\u0026v=4)](https://github.com/cedricfung) | [![Scott Rayapoullé](https://avatars3.githubusercontent.com/u/11772084?s=70\u0026v=4)](https://github.com/soulcramer) | [![Eduard Urbach](https://avatars3.githubusercontent.com/u/438936?s=70\u0026v=4)](https://eduardurbach.com) |\n| --- | --- | --- |\n| [Cedric Fung](https://github.com/cedricfung) | [Scott Rayapoullé](https://github.com/soulcramer) | [Eduard Urbach](https://eduardurbach.com) |\n\nWant to see [your own name here?](https://github.com/users/akyoto/sponsorship)\n\n[godoc-image]: https://godoc.org/github.com/aerogo/pack?status.svg\n[godoc-url]: https://godoc.org/github.com/aerogo/pack\n[report-image]: https://goreportcard.com/badge/github.com/aerogo/pack\n[report-url]: https://goreportcard.com/report/github.com/aerogo/pack\n[tests-image]: https://cloud.drone.io/api/badges/aerogo/pack/status.svg\n[tests-url]: https://cloud.drone.io/aerogo/pack\n[coverage-image]: https://codecov.io/gh/aerogo/pack/graph/badge.svg\n[coverage-url]: https://codecov.io/gh/aerogo/pack\n[sponsor-image]: https://img.shields.io/badge/github-donate-green.svg\n[sponsor-url]: https://github.com/users/akyoto/sponsorship\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faerogo%2Fpack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faerogo%2Fpack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faerogo%2Fpack/lists"}