From 1abcd9a6456ad29bfe706bb59242468a2e9a6d9e Mon Sep 17 00:00:00 2001 From: Evan Lovely Date: Thu, 26 May 2016 16:39:42 -0700 Subject: [PATCH 1/3] adding start script for watch and serve --- README.md | 6 ++++++ composer.json | 1 + 2 files changed, 7 insertions(+) diff --git a/README.md b/README.md index b6b487b..8015e15 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 run-script start + ### 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" ], From febfea9a149c66d43db8bf7bf59bb02d1cded47d Mon Sep 17 00:00:00 2001 From: Evan Lovely Date: Thu, 26 May 2016 17:04:15 -0700 Subject: [PATCH 2/3] updating to shorter command --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8015e15..7e007b6 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ These are some helpful commands you can use on the command line for working with This will compile PL and watch for changes while running the local server: - composer run-script start + composer start ### List all of the available commands From 763c02ddbb8cf1b3628571505820cecb63472a44 Mon Sep 17 00:00:00 2001 From: Evan Lovely Date: Fri, 3 Jun 2016 11:53:19 -0700 Subject: [PATCH 3/3] Adding flag to prevent timeout --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7e007b6..6736391 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ These are some helpful commands you can use on the command line for working with This will compile PL and watch for changes while running the local server: - composer start + composer start --timeout=0 ### List all of the available commands