{"id":19090745,"url":"https://github.com/kodedninja/enoki-build","last_synced_at":"2026-06-04T16:31:55.612Z","repository":{"id":143857953,"uuid":"184645696","full_name":"kodedninja/enoki-build","owner":"kodedninja","description":"A simple static-site generator for Enoki sites","archived":false,"fork":false,"pushed_at":"2019-08-19T14:31:46.000Z","size":28,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-02T22:30:13.369Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kodedninja.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2019-05-02T20:16:53.000Z","updated_at":"2020-07-02T14:24:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"ed4959e1-910b-48b5-af80-219bee9ebf98","html_url":"https://github.com/kodedninja/enoki-build","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kodedninja%2Fenoki-build","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kodedninja%2Fenoki-build/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kodedninja%2Fenoki-build/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kodedninja%2Fenoki-build/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kodedninja","download_url":"https://codeload.github.com/kodedninja/enoki-build/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240138106,"owners_count":19753864,"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-11-09T03:08:53.412Z","updated_at":"2026-05-24T20:30:16.046Z","avatar_url":"https://github.com/kodedninja.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# enoki-build\n\u003ca href=\"https://nodejs.org/api/documentation.html#documentation_stability_index\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/stability-experimental-orange.svg?style=flat-square\" alt=\"Stability\"/\u003e\n\u003c/a\u003e\n\nA simple static-site generator for [Enoki](https://enoki.site/) sites.\n\n## Installation\n```\nnpm i enoki-build\n```\n\n## Usage\n`enoki-build` was designed to require minimal configuration and to be compatible with any Enoki environment.\n\nThree things are required:\n\n1. an exported [Choo](https://github.com/choojs/choo/) application using the [`enoki`](https://npmjs.com/package/enoki) module\n2. a [`nanocontent`](https://github.com/jondashkyle/nanocontent) structured directory\n3. an `index.html` file that provides the base\n\n### 1. The App\n\nFor the best experience, I'd recommend using [`@kodedninja/enoki`](https://github.com/kodedninja/enoki), instead of the official package, as this contains optimalizations for pre-rendered sites.\n\n### 3. `index.html`\n\n`enoki-build` doesn't include bundles or does any magic, but only replaces the following:\n\n- `\u003c!-- @content --\u003e` ― with the HTML output of the app\n- `\u003c!-- @state --\u003e` ― with a `\u003cscript\u003e` setting the `window.initialState`\n- `\u003c!-- @title --\u003e` ― with the title of the current page\n\nFor a simple static site, don't include the `@head` part and do not load the bundle script.\n\nExample HTML:\n\n```html\n\u003chtml\u003e\n  \u003chead\u003e\n    \u003ctitle\u003e\u003c!-- @title --\u003e\u003c/title\u003e\n    \u003c!-- @state --\u003e\n  \u003c/head\u003e\n  \u003cbody\u003e\n    \u003c!-- @content --\u003e\n    \u003cscript src=\"/bundle.js\"\u003e\u003c/script\u003e\n  \u003c/body\u003e\n\u003c/html\u003e\n```\n\nYou can check out my [personal site](https://github.com/kodedninja/hex22.org) as an example.\n\n## CLI\n```\nusage\n  enoki-build [opts] [directories to copy]\noptions\n  --app, -a \u003cpath\u003e        the file where the choo app's exported (./index.js)\n  --content, -c \u003cpath\u003e    content directory (./content)\n  --help, -h              show this help text\n  --index, -i \u003cpath\u003e      path of the index.html (./index.html)\n  --output, -o \u003cdir\u003e      output directory (./public)\n  --sitemap \u003curl\u003e         generate sitemap.xml with base url\n  --version, -v           print version\nexamples\n  start build\n  $ enoki-build\n\n  start build with different content folder and index\n  $ enoki-build --content ../content --index ./random/index.html\n\n  define directories to copy to the output\n  $ enoki-build assets ../bundles\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkodedninja%2Fenoki-build","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkodedninja%2Fenoki-build","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkodedninja%2Fenoki-build/lists"}