{"id":14968530,"url":"https://github.com/bryanbuchs/drupal-theme","last_synced_at":"2025-10-26T02:31:15.456Z","repository":{"id":237501339,"uuid":"794570398","full_name":"bryanbuchs/drupal-theme","owner":"bryanbuchs","description":"Starterkit for a component-driven Drupal theme","archived":false,"fork":false,"pushed_at":"2025-01-27T17:33:59.000Z","size":1844,"stargazers_count":0,"open_issues_count":6,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-31T13:43:30.510Z","etag":null,"topics":["drupal","storybook","vitejs"],"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/bryanbuchs.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":"2024-05-01T13:42:35.000Z","updated_at":"2024-12-18T20:43:48.000Z","dependencies_parsed_at":"2024-06-06T22:11:24.952Z","dependency_job_id":"be35ab3d-91f0-4a10-8716-b0356c5efeab","html_url":"https://github.com/bryanbuchs/drupal-theme","commit_stats":{"total_commits":114,"total_committers":3,"mean_commits":38.0,"dds":0.4385964912280702,"last_synced_commit":"2a92bf51083172d826b987c66f10b6cd93fc94fe"},"previous_names":["bryanbuchs/drupal-theme"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bryanbuchs%2Fdrupal-theme","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bryanbuchs%2Fdrupal-theme/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bryanbuchs%2Fdrupal-theme/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bryanbuchs%2Fdrupal-theme/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bryanbuchs","download_url":"https://codeload.github.com/bryanbuchs/drupal-theme/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238247984,"owners_count":19440879,"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":["drupal","storybook","vitejs"],"created_at":"2024-09-24T13:40:04.363Z","updated_at":"2025-10-26T02:31:15.448Z","avatar_url":"https://github.com/bryanbuchs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Drupal Theme Build System\n\nThis repo is limited to the dependencies and configuration to build CSS/JS files for a Drupal theme, with a Storybook interface for component development. A Drupal theme will need to be generated first (https://www.drupal.org/docs/core-modules-and-themes/core-themes/starterkit-theme). Then copy the files from this repo into that folder.\n\n# Quick Start\n\n- `npm run build` compiles and optimizes the output\n- `npm start` watches files for changes in any linked files (`import from...` or `background-image:...`), and compiles the results to `dist/`. Also starts a browsersync instance with a proxy to a lando server\n- `npm run storybook` launches the storybook ui in a browser.\n\n## Notes\n\n* `components` are expected to follow the conventions from https://github.com/bryanbuchs/generator-component (`yo generate component`)\n* Vite will look for `components/**/*.library.js` files and the results of each will be compiled to the `dist` directory, and will be registered as libraries for the corresponding SDC.\n* The mixin and settings files in the root `less` directory are automatically loaded when processing LESS.\n* Images smaller than 10kb referenced in CSS/LESS will be inlined as data-url in the compiled CSS.\n* SVGs can be inlined the same way, or by using [postcss-inline-svg](https://github.com/bryanbuchs/postcss-inline-svg) if fill/stroke colors need to be adjusted per-rule.\n* `postcss-inline-svg` will look for SVGs at these paths, in order:\n  * same directory as the component\n  * the shared `/images` folder\n  * installed in `node_modules`\n  * A FontAwesome icon, using the pattern `[solid|regular|brands]/[icon].svg`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbryanbuchs%2Fdrupal-theme","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbryanbuchs%2Fdrupal-theme","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbryanbuchs%2Fdrupal-theme/lists"}