Example use cases for performance tooling
Create a new top level folder named based on what it's demonstrating. If you
need to add more context, create a README.md
file within that folder.
Each story should have an index.html
file, and can contain any other static
assets that are required.
Run npm run genindex
afterwards to update the landing page.
First, clone the repository and run npm install
.
You now have two choices:
-
Run
npm run serve
, which will run a server in this repository's root, and visithttp://localhost:8787/{story-name}/index.html
. For example,http://localhost:8787/text-based-lcp/index.html
. -
Run
npm run serve {story-name}
, which will run a server for that story and visithttp://localhost:8787
to view that story.
Note: by default the server is only available on localhost
and not exposed to
the network. You can run npm run serve-network
to have it exposed to the
network.
This site is automatically deployed via GitHub Pages and available at https://chromedevtools.github.io/performance-stories.