Skip to content

Instantly share code, notes, and snippets.

@thamas
Created October 19, 2018 10:36
Show Gist options
  • Save thamas/bdee7c2159233b04f054e8e0fcdfb9f7 to your computer and use it in GitHub Desktop.
Save thamas/bdee7c2159233b04f054e8e0fcdfb9f7 to your computer and use it in GitHub Desktop.

How do you guys keep changes to ./config/config.yml if you’re pulling down the patternlab composer project?

4 replies philw_ [1 hour ago] I’ve added this to my pattern_lab.sh script:

philw_ [1 hour ago]

# Installs plugin-data-transform in pattern-lab
cd ./pattern-lab
composer require 'aleksip/plugin-data-transform:^1.0.0'
# Add our copy of the config file.
cp ../patternlab.config.yml config/config.yml
cd ..

philw_ [1 hour ago] My root theme directory has a patternlab.config.yml file, which is copied to ./pattern-lab/config/config.yml by the postinstall script (edited)

philw_ [1 hour ago] It also requires any PL plugins I want that don’t come with Emulsify

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment