{"id":15355189,"url":"https://github.com/sake92/mill-hepek","last_synced_at":"2025-04-12T05:24:51.578Z","repository":{"id":210090835,"uuid":"724646396","full_name":"sake92/mill-hepek","owner":"sake92","description":"Mill plugin for rendering Scala objects to files","archived":false,"fork":false,"pushed_at":"2025-02-20T07:58:39.000Z","size":42,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-26T00:51:15.481Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sake92.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-28T14:04:44.000Z","updated_at":"2025-03-16T16:45:12.000Z","dependencies_parsed_at":"2024-10-30T22:46:04.390Z","dependency_job_id":"0b0bf38b-1629-42e4-9e2e-ed5e42fdd733","html_url":"https://github.com/sake92/mill-hepek","commit_stats":{"total_commits":9,"total_committers":1,"mean_commits":9.0,"dds":0.0,"last_synced_commit":"0369da63f2e6f225e4819208a2fc0e41208802c0"},"previous_names":["sake92/mill-hepek"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sake92%2Fmill-hepek","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sake92%2Fmill-hepek/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sake92%2Fmill-hepek/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sake92%2Fmill-hepek/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sake92","download_url":"https://codeload.github.com/sake92/mill-hepek/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248520963,"owners_count":21117963,"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-01T12:23:03.444Z","updated_at":"2025-04-12T05:24:51.552Z","avatar_url":"https://github.com/sake92.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mill-hepek\n\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/ba.sake/mill-hepek/badge.svg)](https://maven-badges.herokuapp.com/maven-central/ba.sake/mill-hepek)  \n\nMill plugin for writing Scala `object`s to files.  \nSee also [**hepek**](https://github.com/sake92/hepek), static content generator that builds upon this plugin.\n\n\n\n## Installation\n\nAdd the following to your `build.sc`:\n\n```scala\nimport $ivy.`ba.sake::mill-hepek::0.0.2`\nimport mill._\nimport mill.scalalib._\nimport ba.sake.millhepek.MillHepekModule\n\nobject site extends MillHepekModule with ScalaModule {\n  def scalaVersion = ...\n}\n```\n\nThen you can run `./mill site.hepek`\n\n\n## Usage\n\nWhen you run `./mill site.hepek` it will:\n1. write all `object .. extends Renderable` from the `files` package to `site/hepek_output` folder\n1. copy all files from `src/resources/public` to `hepek_output` folder\n1. write static accessors for `src/resources/public` files, so you don't have to type them with strings and make silly mistakes\n\n\nMinimal example:\n\n```scala\npackage files // mandatory !!\n\nimport java.nio.file.Paths\nimport ba.sake.hepek.core.Renderable\n\nobject RenderMe extends Renderable {\n\n  // access `src/resources/public` files through autogenerated files.\u003cTAB\u003e\n  override def render =\n    \"Some text\" // arbitrary Scala code\n  \n  override def relPath = \n    Paths.get(\"renderme.txt\")\n}\n```\n\nWhen you run `./mill site.hepek`, you'll find the `site/hepek_output/renderme.txt` file,  \nwith text `Some text`.\n\n\n---\n\n## Examples\n- [sake.ba website source]([https://github.com/sake92/hepek-examples](https://github.com/sake92/sake-ba-source))\n- [examples](https://github.com/sake92/hepek-examples)\n- [\"Philosophy\"](https://dev.to/sake_92/render-static-site-from-scala-code)\n\n---\n\n## Fun fact\nI think that this is the first project that tried this approach, using first-class Scala `object`s for this kind of stuff.  \nCorrect me if I'm wrong... ^_^\n\n---\n\n## About the name\n\nA \"hepek\" in Bosnian language is a jargon for a thing/thingy/stuff...  \nIt is used when we don't know the name of a thing: \"Give me that ... *hepek*\".  \nAlso, it is used in the famous show called \"Top lista nadrealista\" as a name for an advanced device which calms down situations of various kinds.  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsake92%2Fmill-hepek","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsake92%2Fmill-hepek","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsake92%2Fmill-hepek/lists"}