Skip to content
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.

adding start script for watch and serve #16

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
],
Expand Down