{"id":19756271,"url":"https://github.com/nextapps-de/mikado-compile","last_synced_at":"2025-10-11T14:36:31.060Z","repository":{"id":66272764,"uuid":"209085922","full_name":"nextapps-de/mikado-compile","owner":"nextapps-de","description":"Template compiler for Mikado.","archived":false,"fork":false,"pushed_at":"2020-08-29T15:48:41.000Z","size":45,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-18T22:24:09.186Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/nextapps-de.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}},"created_at":"2019-09-17T15:08:11.000Z","updated_at":"2024-05-17T16:49:27.000Z","dependencies_parsed_at":"2023-06-14T09:30:15.377Z","dependency_job_id":null,"html_url":"https://github.com/nextapps-de/mikado-compile","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nextapps-de/mikado-compile","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextapps-de%2Fmikado-compile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextapps-de%2Fmikado-compile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextapps-de%2Fmikado-compile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextapps-de%2Fmikado-compile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nextapps-de","download_url":"https://codeload.github.com/nextapps-de/mikado-compile/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextapps-de%2Fmikado-compile/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279007449,"owners_count":26084313,"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","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-12T03:15:23.523Z","updated_at":"2025-10-11T14:36:31.018Z","avatar_url":"https://github.com/nextapps-de.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mikado Template Compiler\n\nYou will find the documentation of Mikado \u003ca href=\"https://github.com/nextapps-de/mikado\"\u003ehere\u003c/a\u003e.\n\n### Install\n\nIt is recommended to install the compiler as a non-global dependency to your stack:\n```cmd\nnpm install mikado-compile\n```\n\n### CLI\n\nCompile a source file, takes same directory as destination:\n\n```cmd\nnpx mikado-compile tpl/app.html\n```\n\nCompile a __source file__ to a given __destination folder__:\n```cmd\nnpx mikado-compile src/tpl/app.html dest/tpl/\n```\n\nCompile a source file in a specific format:\n```cmd\nnpx mikado-compile src/tpl/app.html json\n```\n\nCompile all files which matches a given expression:\n```cmd\nnpx mikado-compile src/tpl/*.html\n```\n```cmd\nnpx mikado-compile src/**/*.html\n```\n\nCompile files explicitly by using option flags:\n```cmd\nnpx mikado-compile --src src/tpl/*.html --dest dest/tpl/ --type json\n```\n\nCompile files explicitly by using option flag shortcuts:\n```cmd\nnpx mikado-compile -s src/tpl/*.html -d dest/tpl/ -t json\n```\n\nForce overwrite existing files (silent):\n```cmd\nnpx mikado-compile src/tpl/*.html --force\n```\n\nCompile as pretty print (non-minified):\n```cmd\nnpx mikado-compile src/tpl/*.html --pretty\n```\n\n### Node Module\n\nYou can call the compile function directly:\n```js\nconst compile = require(\"mikado-compile\");\nconst src = \"./src/*.html\";\nconst dest = \"./dist/\";\n\ncompile(src, dest, {\n    type: [\"es5\", \"es6\", \"json\"],\n    force: true,\n    pretty: false\n});\n```\n\n### File Watcher\n\nStart the file watcher to compile templates automatically when file contents change:\n```cmd\nnpx mikado-compile src/tpl/*.html --watch\n```\n\nPress `CTRL + C` to stop the watcher.\n\n__Note:__ Existing files will be overridden by default when running the watcher.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnextapps-de%2Fmikado-compile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnextapps-de%2Fmikado-compile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnextapps-de%2Fmikado-compile/lists"}