@xcelera/cli 2.4.0 → 3.0.0
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/NOTICE +744 -0
- package/README.md +10 -10
- package/dist/action.js +441 -189
- package/dist/action.js.map +1 -1
- package/dist/cli.js +17 -17
- package/dist/cli.js.map +1 -1
- package/package.json +8 -15
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ A CLI for running Lighthouse performance audits using xcelera.dev
|
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
10
|
# Basic audit
|
|
11
|
-
xcelera audit --
|
|
11
|
+
xcelera audit --ref https://example.com --token your-api-token
|
|
12
12
|
```
|
|
13
13
|
|
|
14
14
|
### Authenticated Pages
|
|
@@ -17,18 +17,18 @@ For pages behind login, you can pass authentication credentials:
|
|
|
17
17
|
|
|
18
18
|
```bash
|
|
19
19
|
# With session cookie
|
|
20
|
-
xcelera audit --
|
|
20
|
+
xcelera audit --ref myapp-com-dashboard --cookie "session=abc123"
|
|
21
21
|
|
|
22
22
|
# With bearer token header
|
|
23
|
-
xcelera audit --
|
|
23
|
+
xcelera audit --ref myapp-com-admin \
|
|
24
24
|
--header "Authorization: Bearer eyJhbG..."
|
|
25
25
|
|
|
26
26
|
# Multiple cookies
|
|
27
|
-
xcelera audit --
|
|
27
|
+
xcelera audit --ref myapp-com-dashboard \
|
|
28
28
|
--cookie "session=abc123" --cookie "csrf=xyz"
|
|
29
29
|
|
|
30
30
|
# With Netscape cookie file (cookies.txt)
|
|
31
|
-
xcelera audit --
|
|
31
|
+
xcelera audit --ref myapp-com-dashboard \
|
|
32
32
|
--cookie-file ./cookies.txt
|
|
33
33
|
|
|
34
34
|
```
|
|
@@ -39,7 +39,7 @@ xcelera audit --url https://myapp.com/dashboard \
|
|
|
39
39
|
- name: Lighthouse Performance Audit
|
|
40
40
|
uses: xcelera/cli@v1
|
|
41
41
|
with:
|
|
42
|
-
|
|
42
|
+
ref: myapp-com-dashboard
|
|
43
43
|
token: ${{ secrets.XCELERA_TOKEN }}
|
|
44
44
|
```
|
|
45
45
|
|
|
@@ -50,7 +50,7 @@ For authenticated pages in CI:
|
|
|
50
50
|
- name: Lighthouse Audit (Cookie Auth)
|
|
51
51
|
uses: xcelera/cli@v1
|
|
52
52
|
with:
|
|
53
|
-
|
|
53
|
+
ref: myapp-com-dashboard
|
|
54
54
|
token: ${{ secrets.XCELERA_TOKEN }}
|
|
55
55
|
cookie: "session=value"
|
|
56
56
|
|
|
@@ -58,7 +58,7 @@ For authenticated pages in CI:
|
|
|
58
58
|
- name: Lighthouse Audit (Cookie File Auth)
|
|
59
59
|
uses: xcelera/cli@v1
|
|
60
60
|
with:
|
|
61
|
-
|
|
61
|
+
ref: myapp-com-dashboard
|
|
62
62
|
token: ${{ secrets.XCELERA_TOKEN }}
|
|
63
63
|
cookie-file: ./cookies.txt
|
|
64
64
|
|
|
@@ -66,7 +66,7 @@ For authenticated pages in CI:
|
|
|
66
66
|
- name: Lighthouse Audit (Bearer Auth)
|
|
67
67
|
uses: xcelera/cli@v1
|
|
68
68
|
with:
|
|
69
|
-
|
|
69
|
+
ref: myapp-com-admin
|
|
70
70
|
token: ${{ secrets.XCELERA_TOKEN }}
|
|
71
71
|
header: "Authorization: Bearer eybDfd..."
|
|
72
72
|
|
|
@@ -74,7 +74,7 @@ For authenticated pages in CI:
|
|
|
74
74
|
- name: Lighthouse Audit (Full Auth)
|
|
75
75
|
uses: xcelera/cli@v1
|
|
76
76
|
with:
|
|
77
|
-
|
|
77
|
+
ref: myapp-com-dashboard
|
|
78
78
|
token: ${{ secrets.XCELERA_TOKEN }}
|
|
79
79
|
auth: '{"cookies":[{"name":"session","value":"session_value"},{"name":"csrf","value":"csrf_value"}]}'
|
|
80
80
|
```
|