{"id":20028734,"url":"https://github.com/phase2/pattern-lab-drupal-theme","last_synced_at":"2025-10-14T07:18:15.381Z","repository":{"id":137099872,"uuid":"58588137","full_name":"phase2/pattern-lab-drupal-theme","owner":"phase2","description":null,"archived":false,"fork":false,"pushed_at":"2017-03-15T11:01:54.000Z","size":419,"stargazers_count":21,"open_issues_count":6,"forks_count":7,"subscribers_count":20,"default_branch":"8.x-1.x","last_synced_at":"2025-05-15T18:51:41.972Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/phase2.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":"2016-05-11T22:50:21.000Z","updated_at":"2022-09-02T13:39:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"ca3a325f-18ca-4444-9b1c-74b894c738f4","html_url":"https://github.com/phase2/pattern-lab-drupal-theme","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/phase2/pattern-lab-drupal-theme","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phase2%2Fpattern-lab-drupal-theme","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phase2%2Fpattern-lab-drupal-theme/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phase2%2Fpattern-lab-drupal-theme/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phase2%2Fpattern-lab-drupal-theme/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phase2","download_url":"https://codeload.github.com/phase2/pattern-lab-drupal-theme/tar.gz/refs/heads/8.x-1.x","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phase2%2Fpattern-lab-drupal-theme/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279018217,"owners_count":26086303,"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-14T02:00:06.444Z","response_time":60,"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-13T09:16:16.579Z","updated_at":"2025-10-14T07:18:15.364Z","avatar_url":"https://github.com/phase2.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pattern Lab Theme\n\n# Setup\n\n    npm install\n    cd pattern-lab\n    composer install\n\nAdditionally, the [`components` Drupal module](https://www.drupal.org/project/components) must be enabled:\n\n    drush dl components\n    drush en components -y\n\n## Commands\n\nCompile the site:\n\n    npm run compile\n\nStart up watches and local server:\n\n    npm run start\n\nRun Tests:\n\n    npm run test\n\n## Configuration\n\nIt's almost all done in `config.yml`. End all paths with a `/` please (i.e. `path/to/dir/`). The local `gulpfile.js` passes the `config` object to [`p2-theme-core`](https://github.com/phase2/p2-theme-core) - which can be viewed at `node_modules/p2-theme-core/` (most stuff in `lib/`).\n\nDocumentation for many of the features are found in `node_modules/p2-theme-core/docs/` – those are [hosted here](http://p2-theme-core.readthedocs.org) too.\n\n### Linting Config\n\n- Scss: edit `.sass-lint.yml` - [rule docs](https://github.com/sasstools/sass-lint/tree/master/docs/rules)\n\n## More control\n\nThe `npm run` commands above basically trigger gulp without having to install a global dependency. For fine grained control of tasks, install gulp globally with `npm install --global gulp` and then run `gulp help` for a list of all available tasks.\n\nAdd anything to `gulpfile.js` that you want! Also, you can copy any file from `node_modules/p2-theme-core/lib/` into your repo and use it as a starting point (may need to install packages from `p2-theme-core` too.)\n\nMany of the features can be turned off, for example if we didn't want all the JS features like linting and concatenation, just toggle `enabled` under `js` in `config.yml`. So you'd just open `config.yml` and change this:\n\n```diff\njs:\n-    enabled: true\n+    enabled: false\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphase2%2Fpattern-lab-drupal-theme","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphase2%2Fpattern-lab-drupal-theme","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphase2%2Fpattern-lab-drupal-theme/lists"}