Releases: phase2/p2-theme-core
Releases · phase2/p2-theme-core
v11.0.0
v10 Gulp stability
Update gulp commit to "gulp": "github:gulpjs/gulp#89acc5c"
v9 Gulp stability
Update gulp to "gulp": "github:gulpjs/gulp#89acc5c"
gulp-inject lock, yml line width
- Lock gulp-inject to 4.3.1
- yml option enabled for default 80 character output
- travis build tweaks to ensure npm5 and pattern-lab-starter (particle) v9
Lock gulp to pre-alpha.3
- Lock gulp to commit prior to
alpha.3
that breaks our use of gulp filesystem functions
Twig namespaces
Adding new patternLab.twigNamespaces
functionality for more resilient and flexible include paths. Can now just do @molecules/filename.twig
instead of @molecules/path/to/filename.twig
. Injects config into Drupal theme file and Pattern Lab config file; requires both the Drupal Component Libraries module and the Pattern Lab Twig Namespaces plugin.
Example config:
patternLab: {
twigNamespaces: {
addToDrupalThemeFile: true,
sets: ['base', 'atoms', 'molecules', 'organisms', 'templates', 'pages'].map((item, i) => ({
namespace: item,
paths: [`source/_patterns/0${i}-${item}`],
}))
}
},
drupal: {
themeFile: 'patternlab.info.yml'
}