Skip to content

jeffm2001/p2-theme-core

 
 

Repository files navigation

Read the Docs Badge Build Status

NPM

NPM

This is one of two pieces of our themes:

  • pattern-lab-starter - a starter set of files for Drupal theming that includes a Twig powered Pattern Lab and beginning Sass & other front end tools. Uses p2-theme-core for automation.
  • p2-theme-core (this repo) - the core gulp tasks that handles most of the theme's automation.

Phase2 Theme Core

Here is the core gulp tasks used in our themes that are generated by yo p2-theme. Ideally, the changes to how a theme install works would be done by passing in a different config.yml.

More docs in docs/ folder – these docs are hosted in Read the Docs!

Features

  • Scss => CSS compiling with Libsass, PostCSS, linting, and SourceMaps
  • Pattern Lab Twig compiling & BrowserSync live reload and style injection
  • SVG => Font Icons compiling with support for adding mixins and classes to Scss along with a demo page in Pattern Lab
  • JS compiling via Babel, linting and aggregation
  • Drupal file watching to trigger Drush cache clears

All is easily configurable by changing values in your config.yml file in your project. These values are merged into the config.default.yml file - look there for the available options and defaults.

About

Core configuration for our theme

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 89.7%
  • CSS 8.8%
  • HTML 1.5%