diff --git a/README.md b/README.md index b6b487b..6736391 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,12 @@ To update Pattern Lab please refer to each component's GitHub repository. The co These are some helpful commands you can use on the command line for working with Pattern Lab. +### One line start + +This will compile PL and watch for changes while running the local server: + + composer start --timeout=0 + ### List all of the available commands To list all available commands type: diff --git a/composer.json b/composer.json index 7918927..c2b0d8b 100644 --- a/composer.json +++ b/composer.json @@ -30,6 +30,7 @@ "pattern-lab/styleguidekit-twig-default": "^2.0.0" }, "scripts": { + "start": "php core/console --server --quiet & php core/console --watch", "post-install-cmd": [ "PatternLab\\Installer::postInstallCmd" ],