pattern-lab / patternlab-php-core

This repository provides the core functionality for Pattern Lab. It is meant to be used from within an Edition with a PatternEngine and StarterKit.
http://patternlab.io/
MIT License
43 stars 62 forks source link

Option for disabling keyboard-input and use sensible defaults from the config-file. #159

Open stmh opened 6 years ago

stmh commented 6 years ago

We are using a CI to deploy our websites. As part of the deployment process we want to build patternlab by running cd <patternlab-folder> && composer install && php core/console --generate. This is currently not possible, as patternlab requires that you press some keys when installing it.

To fix this I added a new config-option called existingPathsPolicy, where you can setup how patternlab should react.

So for a keyless installation of patternlab, all you need to do is to add these two lines to your config/config.yml-file:

overrideConfig: a
existingPathsPolicy: merge