local-storefront 0.1.15 → 0.1.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +15 -8
  2. package/package.json +7 -7
package/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # local-storefront
2
2
 
3
- A local storefront for Shopify themes. Its command, `lsf`, serves a theme from your machine,
4
- rendered from JSON fixtures instead of the Shopify API: no network, no rate limit, and each
5
- test gets exactly the catalog, cart and customer it asks for.
3
+ Run a Shopify theme on your machine, without Shopify. Its command, local-storefront, serves a
4
+ theme rendered from JSON store data instead of the Shopify API: no network, no rate limit, and
5
+ each test gets exactly the catalog, cart and customer it asks for.
6
6
 
7
7
  ```bash
8
8
  npm install --save-dev local-storefront
@@ -12,9 +12,16 @@ npm install --save-dev local-storefront
12
12
  npx local-storefront serve
13
13
  ```
14
14
 
15
- Write `npx local-storefront`, not `npx lsf`: an unrelated package named `lsf` exists on npm,
16
- and `npx lsf` downloads and runs it wherever this package is not installed. Inside the
17
- `scripts` of `package.json`, where only installed commands are looked up, `lsf` is fine.
15
+ Write `npx local-storefront`, not `npx lsf`: an unrelated package named `lsf` exists on npm.
16
+ Inside the `scripts` of `package.json`, `local-storefront serve` is enough.
17
+
18
+ | Command | What it does |
19
+ |---|---|
20
+ | `npx local-storefront serve` | Serves the theme at <http://127.0.0.1:9292>. |
21
+ | `npx local-storefront validate` | Checks the store data. |
22
+ | `npx local-storefront check --fix` | Fixes what Shopify's strict Liquid parser rejects. |
23
+ | `npx local-storefront fmt` | Formats Liquid files as Prettier does. |
24
+ | `npx local-storefront profile <path>` | Shows what makes a page slow. |
18
25
 
19
26
  With Playwright:
20
27
 
@@ -32,7 +39,7 @@ export default defineConfig({
32
39
  });
33
40
  ```
34
41
 
35
- This package only contains a launcher. The `lsf` binary comes from a platform package that
36
- npm installs alongside it: macOS, Linux and Windows, on x64 and arm64.
42
+ This package only contains a launcher. The local-storefront binary comes from a platform package
43
+ that npm installs alongside it: macOS, Linux and Windows, on x64 and arm64.
37
44
 
38
45
  Documentation: <https://github.com/0xtlt/local-storefront>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "local-storefront",
3
- "version": "0.1.15",
3
+ "version": "0.1.17",
4
4
  "description": "A local storefront for Shopify themes: lsf renders a theme from JSON fixtures, without the Shopify API, for fast end-to-end tests.",
5
5
  "keywords": [
6
6
  "shopify",
@@ -29,11 +29,11 @@
29
29
  "node": ">=18"
30
30
  },
31
31
  "optionalDependencies": {
32
- "local-storefront-darwin-arm64": "0.1.15",
33
- "local-storefront-darwin-x64": "0.1.15",
34
- "local-storefront-linux-arm64": "0.1.15",
35
- "local-storefront-linux-x64": "0.1.15",
36
- "local-storefront-win32-arm64": "0.1.15",
37
- "local-storefront-win32-x64": "0.1.15"
32
+ "local-storefront-darwin-arm64": "0.1.17",
33
+ "local-storefront-darwin-x64": "0.1.17",
34
+ "local-storefront-linux-arm64": "0.1.17",
35
+ "local-storefront-linux-x64": "0.1.17",
36
+ "local-storefront-win32-arm64": "0.1.17",
37
+ "local-storefront-win32-x64": "0.1.17"
38
38
  }
39
39
  }