{"id":15539034,"url":"https://github.com/buschtoens/broccoli-multi-postcss","last_synced_at":"2026-01-07T13:38:24.803Z","repository":{"id":47454602,"uuid":"206302396","full_name":"buschtoens/broccoli-multi-postcss","owner":"buschtoens","description":"Broccoli plugin to transform one or more input files using PostCSS to one or more output files.","archived":false,"fork":false,"pushed_at":"2023-12-15T11:59:27.000Z","size":83,"stargazers_count":0,"open_issues_count":24,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-09T22:23:26.206Z","etag":null,"topics":["broccoli","broccoli-plugin","postcss"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/buschtoens.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":"2019-09-04T11:22:42.000Z","updated_at":"2023-09-08T17:57:41.000Z","dependencies_parsed_at":"2024-10-02T12:08:57.160Z","dependency_job_id":"a4c5380c-797e-480d-ac00-20d842376290","html_url":"https://github.com/buschtoens/broccoli-multi-postcss","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buschtoens%2Fbroccoli-multi-postcss","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buschtoens%2Fbroccoli-multi-postcss/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buschtoens%2Fbroccoli-multi-postcss/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buschtoens%2Fbroccoli-multi-postcss/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/buschtoens","download_url":"https://codeload.github.com/buschtoens/broccoli-multi-postcss/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246113779,"owners_count":20725523,"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":["broccoli","broccoli-plugin","postcss"],"created_at":"2024-10-02T12:08:54.420Z","updated_at":"2026-01-07T13:38:24.745Z","avatar_url":"https://github.com/buschtoens.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# broccoli-multi-postcss\n\n[![Build Status](https://github.com/buschtoens/broccoli-multi-postcss/workflows/Node%20CI/badge.svg)](https://github.com/buschtoens/broccoli-multi-postcss/actions)\n[![npm version](https://badge.fury.io/js/broccoli-multi-postcss.svg)](http://badge.fury.io/js/broccoli-multi-postcss)\n[![Download Total](https://img.shields.io/npm/dt/broccoli-multi-postcss.svg)](http://badge.fury.io/js/broccoli-multi-postcss)\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier)\n[![Dependabot enabled](https://img.shields.io/badge/dependabot-enabled-blue.svg?logo=dependabot)](https://dependabot.com/)\n[![dependencies Status](https://david-dm.org/buschtoens/broccoli-multi-postcss/status.svg)](https://david-dm.org/buschtoens/broccoli-multi-postcss)\n[![devDependencies Status](https://david-dm.org/buschtoens/broccoli-multi-postcss/dev-status.svg)](https://david-dm.org/buschtoens/broccoli-multi-postcss?type=dev)\n\n**Broccoli plugin to transform one or more input files using PostCSS to one or\nmore output files.**\n\nIt's like [`broccoli-postcss`][broccoli-postcss], but allows you consume more\nthan once input file at once. It also allows you to generate additional\nsecondary output files.\n\n[broccoli-postcss]: https://github.com/jeffjewiss/broccoli-postcss\n\n## Installation\n\n```\nyarn add broccoli-multi-postcss\n```\n\n## Usage\n\n```ts\nimport BroccoliMultiPostCSS from 'broccoli-multi-postcss';\nimport { plugin } from 'postcss';\n\nconst myPlugin = plugin('selector-metadata', options =\u003e {\n  return (root, result) =\u003e {\n    const selectors: string[] = [];\n    root.walkRules(rule =\u003e {\n      selectors.push(rule.selector);\n    });\n\n    const metadata = { selectors, fileName: result.opts.to };\n\n    result.messages.push({\n      type: BroccoliMultiPostCSS.MessageType.WriteFile,\n      plugin: 'selector-metadata',\n      path: `${result.opts.to}.meta.json`,\n      content: JSON.stringify(metadata)\n    });\n  };\n});\n\nconst tree = new BroccoliMultiPostCSS(['./styles'], { plugins: [myPlugin] });\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuschtoens%2Fbroccoli-multi-postcss","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbuschtoens%2Fbroccoli-multi-postcss","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuschtoens%2Fbroccoli-multi-postcss/lists"}