{"id":27078969,"url":"https://github.com/netlogix/stencil-styleguide-output-target","last_synced_at":"2025-04-06T01:20:13.182Z","repository":{"id":225985322,"uuid":"754176714","full_name":"netlogix/stencil-styleguide-output-target","owner":"netlogix","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-05T10:07:08.000Z","size":1263,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-10T07:16:43.681Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":false,"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/netlogix.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}},"created_at":"2024-02-07T14:50:57.000Z","updated_at":"2024-03-05T10:04:14.000Z","dependencies_parsed_at":"2024-03-05T10:47:48.122Z","dependency_job_id":null,"html_url":"https://github.com/netlogix/stencil-styleguide-output-target","commit_stats":null,"previous_names":["netlogix/stencil-styleguide-output-target"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netlogix%2Fstencil-styleguide-output-target","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netlogix%2Fstencil-styleguide-output-target/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netlogix%2Fstencil-styleguide-output-target/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netlogix%2Fstencil-styleguide-output-target/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/netlogix","download_url":"https://codeload.github.com/netlogix/stencil-styleguide-output-target/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247421097,"owners_count":20936228,"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":"2025-04-06T01:20:12.637Z","updated_at":"2025-04-06T01:20:13.158Z","avatar_url":"https://github.com/netlogix.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @netlogix/stencil-styleguide-output-target\n\nA stencil output target which also builds Pattern Lab and processes scss\n\n## Usage\n\nTo use this output target, add it to your `stencil.config.ts`:\n\n```typescript  \nimport { Config } from '@stencil/core';\nimport { sass } from '@stencil/sass';\nimport { patternLabOutputTarget } from \"@netlogix/stencil-styleguide-output-target\";\nimport postcss from \"rollup-plugin-postcss\";\n\nexport const config: Config = {\n    namespace: 'stencil',\n    srcDir: 'source/script',\n    watchIgnoredRegex: /dependencyGraph.json/, // important for watching for changes in patternlab\n    outputTargets: [\n         // ... other output targets\n         patternLabOutputTarget({\n             rollupOptions:\n                 {\n                     input: 'source/css/style.scss',\n                     plugins: [\n                         postcss({\n                             modules: true,\n                             extract: true,\n                         }),\n                     ],\n                 },\n         }),\n         // ...\n    ],\n    devServer: {\n        openBrowser: false,\n        reloadStrategy: \"pageReload\", // important for hot reload to work with patternlab\n        root: 'public',\n    },\n    plugins: [\n        sass(),\n    ],\n    // ...\n};\n```\n## Configuration\nThe PatternlabOutput function takes an optional configuration object with the following properties:\n\n`rollupOptions`:\n\nAn object with rollup options to be merged with the default options.\n\nDefault:\n```\nrollupOptions: {\n      input: 'source/scss/style.scss',\n      plugins: [\n        postcss({\n          modules: true,\n          extract: true\n        })\n      ]\n    },\n```\n#\n`rollupOutputOptions`:\n\nAn object with rollup output options to be merged with the default options.\n\nDefault:\n```\nrollupOutputOptions: {\n      name: 'style',\n      dir: './public/css',\n      format: 'es'\n},\n```\n#\n`sourceDir`: the directory which will be watched. Default: `source/**/*`\n\n\n## License\nThis package is licensed under the MIT license.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetlogix%2Fstencil-styleguide-output-target","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnetlogix%2Fstencil-styleguide-output-target","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetlogix%2Fstencil-styleguide-output-target/lists"}