local-storefront 0.1.1 → 0.1.3
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.
- package/README.md +6 -2
- package/package.json +9 -8
package/README.md
CHANGED
|
@@ -9,9 +9,13 @@ npm install --save-dev local-storefront
|
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
|
-
npx
|
|
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.
|
|
18
|
+
|
|
15
19
|
With Playwright:
|
|
16
20
|
|
|
17
21
|
```ts
|
|
@@ -21,7 +25,7 @@ import { defineConfig } from '@playwright/test';
|
|
|
21
25
|
export default defineConfig({
|
|
22
26
|
use: { baseURL: 'http://127.0.0.1:9292' },
|
|
23
27
|
webServer: {
|
|
24
|
-
command: 'npx
|
|
28
|
+
command: 'npx local-storefront serve --port 9292 --static --quiet --strict',
|
|
25
29
|
url: 'http://127.0.0.1:9292/__lsf/status',
|
|
26
30
|
reuseExistingServer: !process.env.CI,
|
|
27
31
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "local-storefront",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
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",
|
|
@@ -19,7 +19,8 @@
|
|
|
19
19
|
"url": "git+https://github.com/0xtlt/local-storefront.git"
|
|
20
20
|
},
|
|
21
21
|
"bin": {
|
|
22
|
-
"lsf": "bin/lsf.js"
|
|
22
|
+
"lsf": "bin/lsf.js",
|
|
23
|
+
"local-storefront": "bin/lsf.js"
|
|
23
24
|
},
|
|
24
25
|
"files": [
|
|
25
26
|
"bin/lsf.js"
|
|
@@ -28,11 +29,11 @@
|
|
|
28
29
|
"node": ">=18"
|
|
29
30
|
},
|
|
30
31
|
"optionalDependencies": {
|
|
31
|
-
"local-storefront-darwin-arm64": "0.1.
|
|
32
|
-
"local-storefront-darwin-x64": "0.1.
|
|
33
|
-
"local-storefront-linux-arm64": "0.1.
|
|
34
|
-
"local-storefront-linux-x64": "0.1.
|
|
35
|
-
"local-storefront-win32-arm64": "0.1.
|
|
36
|
-
"local-storefront-win32-x64": "0.1.
|
|
32
|
+
"local-storefront-darwin-arm64": "0.1.3",
|
|
33
|
+
"local-storefront-darwin-x64": "0.1.3",
|
|
34
|
+
"local-storefront-linux-arm64": "0.1.3",
|
|
35
|
+
"local-storefront-linux-x64": "0.1.3",
|
|
36
|
+
"local-storefront-win32-arm64": "0.1.3",
|
|
37
|
+
"local-storefront-win32-x64": "0.1.3"
|
|
37
38
|
}
|
|
38
39
|
}
|