Skip to content

Commit

Permalink
Merge pull request #38 from pm98zz-c/37-line-width
Browse files Browse the repository at this point in the history
Issue #37: line width in info.yml
  • Loading branch information
illepic authored Apr 30, 2018
2 parents b5e2c4e + 1b38179 commit 017ad69
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions config.default.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ module.exports = {
'template.php',
'templates/**',
],
// max-width for lines in the theme info.yml
lineWidth: 80,
// run this command
command: 'drush cc all',
// in this directory
Expand Down
2 changes: 1 addition & 1 deletion lib/pattern-lab--php-twig.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ module.exports = (gulp, config, tasks) => {
fs.readFileSync(config.drupal.themeFile, 'utf8')
);
Object.assign(drupalThemeFile['component-libraries'], twigNamespaceConfig);
const newThemeFile = yaml.safeDump(drupalThemeFile);
const newThemeFile = yaml.safeDump(drupalThemeFile, { lineWidth: config.drupal.lineWidth });
fs.writeFileSync(config.drupal.themeFile, newThemeFile, 'utf8');
done();
}
Expand Down

0 comments on commit 017ad69

Please sign in to comment.