This repository was archived by the owner on May 1, 2020. It is now read-only.
- Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathviewing-patterns.html
More file actions
25 lines (16 loc) · 1.17 KB
/
viewing-patterns.html
File metadata and controls
25 lines (16 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
---
layout: docs
title: Viewing Patterns | Pattern Lab
heading: Viewing Patterns
---
{% capture m %}
Pattern Lab ships with [BrowserSync](https://www.browsersync.io/) to serve generated files to a browser. BrowserSync does a lot of cool things like reload files without a refresh, expose the site to your network, and synchronize page views across devices. To start the server do the following:
1. In a terminal window navigate to the root of your project
2. Type `gulp patternlab:serve`
> If using grunt, substitute `grunt` for `gulp` above.
Doing so will launch your local Pattern Lab install in your default browser at <a href="http://localhost:3000">http://localhost:3000</a>. The `Gruntfile|Gulpfile` at the root of your project contains additional configuration for BrowserSync.
## How to Stop the Server
To stop watching and serving files on Mac OS X and Windows you can press`CTRL+C` in the command line window where the process is running.
<strong>The PHP version of Pattern Lab is being deprecated in favor of a new unified Pattern Lab core. <a href='./php/viewing-patterns'>The PHP docs for this topic can be viewed here.</a></strong>
{% endcapture %}
{{ m | markdownify }}