{"id":21722305,"url":"https://github.com/ecoapm/statiqpipelines","last_synced_at":"2025-06-13T12:36:06.312Z","repository":{"id":40387698,"uuid":"419817134","full_name":"ecoAPM/StatiqPipelines","owner":"ecoAPM","description":"Pipelines and helpers used in ecoAPM's static sites","archived":false,"fork":false,"pushed_at":"2025-06-04T12:21:21.000Z","size":61,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-04T19:47:57.180Z","etag":null,"topics":["hacktoberfest","plugins","static-site-generator","statiq"],"latest_commit_sha":null,"homepage":"","language":"C#","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/ecoAPM.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-10-21T17:28:20.000Z","updated_at":"2025-06-04T12:21:24.000Z","dependencies_parsed_at":"2023-12-11T13:15:57.130Z","dependency_job_id":"8b5958ec-aeb6-4fab-b34d-915b9b617f2d","html_url":"https://github.com/ecoAPM/StatiqPipelines","commit_stats":{"total_commits":35,"total_committers":4,"mean_commits":8.75,"dds":"0.37142857142857144","last_synced_commit":"c852bbd1f962b2f8035fe71871565c0b076baf73"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/ecoAPM/StatiqPipelines","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecoAPM%2FStatiqPipelines","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecoAPM%2FStatiqPipelines/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecoAPM%2FStatiqPipelines/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecoAPM%2FStatiqPipelines/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ecoAPM","download_url":"https://codeload.github.com/ecoAPM/StatiqPipelines/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecoAPM%2FStatiqPipelines/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259645564,"owners_count":22889630,"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":["hacktoberfest","plugins","static-site-generator","statiq"],"created_at":"2024-11-26T02:23:23.870Z","updated_at":"2025-06-13T12:36:06.264Z","avatar_url":"https://github.com/ecoAPM.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ecoAPM Statiq Pipelines\n\nPipelines and helpers used in ecoAPM's static sites\n\n[![Install](https://img.shields.io/nuget/v/ecoAPM.StatiqPipelines?logo=nuget\u0026label=Install)](https://www.nuget.org/packages/ecoAPM.StatiqPipelines/)\n[![CI](https://github.com/ecoAPM/StatiqPipelines/actions/workflows/CI.yml/badge.svg)](https://github.com/ecoAPM/StatiqPipelines/actions/workflows/CI.yml)\n[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=ecoAPM_StatiqPipelines\u0026metric=coverage)](https://sonarcloud.io/summary/new_code?id=ecoAPM_StatiqPipelines)\n\n[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=ecoAPM_StatiqPipelines\u0026metric=sqale_rating)](https://sonarcloud.io/summary/new_code?id=ecoAPM_StatiqPipelines)\n[![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=ecoAPM_StatiqPipelines\u0026metric=reliability_rating)](https://sonarcloud.io/summary/new_code?id=ecoAPM_StatiqPipelines)\n[![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=ecoAPM_StatiqPipelines\u0026metric=security_rating)](https://sonarcloud.io/summary/new_code?id=ecoAPM_StatiqPipelines)\n\n## Requirements\n\n- .NET SDK\n\n## Installation\n\n```bash\ndotnet add {project} package ecoAPM.StatiqPipelines\n```\n\n## Usage\n\nThis package currently contains one pipeline and two modules.\n\n### CopyFromNPM\n\nThis pipeline copies files from the `node_modules` directory to a set location in your output.\n\n```c#\nvar files = new [] {\n\t\"bootstrap/dist/css/bootstrap.min.css\",\n\t\"jquery/dist/jquery.min.js\"\n};\nbootstrapper.AddPipeline(\"NPM\", new CopyFromNPM(files, \"assets\");\n```\n\nThe copied files can then be referenced from markup:\n\n```html\n\u003clink src=\"/assets/bootstrap.min.css\"/\u003e\n\u003cscript src=\"/assets/jquery.min.js\"\u003e\u003c/script\u003e\n```\n\nA dictionary can be used to specify the output path for a given input. An empty string value flattens output with the input filename, as above.\n\n```c#\nvar files = new Dictionary\u003cstring, string\u003e {\n\t{ \"bootstrap/dist/css/bootstrap.min.css\", \"\" },\n\t{ \"jquery/dist/jquery.min.js\", \"\" },\n\t{ \"@fontsource/noto-sans/*\", \"fonts\" }\n};\nbootstrapper.AddPipeline(\"NPM\", new CopyFromNPM(files);\n```\n\nNote that the output path is optional and defaults to `lib`.\n\n```html\n\u003clink src=\"/lib/bootstrap.min.css\"/\u003e\n\u003cscript src=\"/lib/jquery.min.js\"\u003e\u003c/script\u003e\n\u003clink src=\"/lib/fonts/latin-300.css\"/\u003e\n```\n\n### NiceURL\n\nThis module can be added to your Content pipeline to improve the output URL format.\n\nSo, `input/category/page.md =\u003e http://localhost/directory/file`\ninstead of the default `output/category/page.html`\n\n```c#\nbootstrapper.ModifyPipeline(\"Content\", p =\u003e p.ProcessModules.Add(new NiceURL()));\n```\n\n### NodeRestore\n\nThis module simply runs `npm`/`yarn` install as part of the build pipeline.\n\n```c#\nbootstrapper.ModifyPipeline(\"Content\", p =\u003e p.InputModules.Add(new NodeRestore()));\n```\n\n## Contributing\n\nPlease be sure to read and follow ecoAPM's [Contribution Guidelines](CONTRIBUTING.md) when submitting issues or pull requests.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fecoapm%2Fstatiqpipelines","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fecoapm%2Fstatiqpipelines","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fecoapm%2Fstatiqpipelines/lists"}