@caweb/css-audit-webpack-plugin 1.0.12 → 2.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/bin/auditor/.github/workflows/build-report.yml +15 -14
- package/bin/auditor/.github/workflows/merge-trunk-to-report.yml +5 -4
- package/bin/auditor/.github/workflows/node.yaml +6 -9
- package/bin/auditor/.nvmrc +1 -1
- package/bin/auditor/package-lock.json +9954 -5695
- package/bin/auditor/package.json +16 -18
- package/bin/auditor/src/__tests__/selectors.js +14 -0
- package/bin/auditor/src/audits/media-queries.js +2 -4
- package/bin/auditor/src/audits/selectors.js +6 -4
- package/bin/auditor/src/formats/html.js +15 -15
- package/bin/auditor/src/utils/__tests__/get-specificity.js +23 -0
- package/bin/auditor/src/utils/get-specificity.js +30 -14
- package/index.js +79 -35
- package/package.json +7 -6
- package/css-audit.config.cjs +0 -5
- package/default.config.js +0 -19
|
@@ -14,19 +14,19 @@ jobs:
|
|
|
14
14
|
runs-on: ubuntu-latest
|
|
15
15
|
steps:
|
|
16
16
|
- name: Checkout CSS Audit
|
|
17
|
-
uses: actions/checkout@
|
|
18
|
-
|
|
19
|
-
ref: report
|
|
17
|
+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
18
|
+
|
|
20
19
|
- name: Checkout WordPress Core
|
|
21
|
-
uses: actions/checkout@
|
|
20
|
+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
22
21
|
with:
|
|
23
22
|
repository: WordPress/wordpress-develop
|
|
24
23
|
path: wordpress
|
|
25
24
|
|
|
26
|
-
- name:
|
|
27
|
-
uses: actions/setup-node@
|
|
25
|
+
- name: Use Node.js
|
|
26
|
+
uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3.9.1
|
|
28
27
|
with:
|
|
29
|
-
node-version:
|
|
28
|
+
node-version-file: ".nvmrc"
|
|
29
|
+
cache: "npm"
|
|
30
30
|
|
|
31
31
|
- name: Install dependencies
|
|
32
32
|
run: npm install
|
|
@@ -34,13 +34,14 @@ jobs:
|
|
|
34
34
|
- name: Build the audit report
|
|
35
35
|
run: npm run css-audit -- wordpress/src/wp-admin/css/*.css wordpress/src/wp-includes/css/*.css
|
|
36
36
|
|
|
37
|
-
- name:
|
|
38
|
-
|
|
37
|
+
- name: Remove WordPress files
|
|
38
|
+
run: rm -rf wordpress
|
|
39
|
+
|
|
40
|
+
- name: Commit and push
|
|
41
|
+
uses: actions-js/push@5a7cbd780d82c0c937b5977586e641b2fd94acc5 # 1.5
|
|
39
42
|
with:
|
|
40
|
-
|
|
41
|
-
author_email: 41898282+github-actions[bot]@users.noreply.github.com
|
|
43
|
+
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
42
44
|
message: "[Automated] Update report"
|
|
43
45
|
branch: "report"
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
46
|
+
rebase: true
|
|
47
|
+
force: true
|
|
@@ -8,10 +8,11 @@ jobs:
|
|
|
8
8
|
merge-branch:
|
|
9
9
|
runs-on: ubuntu-latest
|
|
10
10
|
steps:
|
|
11
|
-
- uses: actions/checkout@
|
|
11
|
+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
12
|
+
|
|
12
13
|
- name: Merge trunk -> report
|
|
13
|
-
uses:
|
|
14
|
+
uses: actions-js/push@5a7cbd780d82c0c937b5977586e641b2fd94acc5 # 1.5
|
|
14
15
|
with:
|
|
15
|
-
type: now
|
|
16
|
-
target_branch: report
|
|
17
16
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
17
|
+
message: ${{ github.event.head_commit.message }}
|
|
18
|
+
branch: "report"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
name:
|
|
1
|
+
name: JavaScript Tests
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
4
|
push:
|
|
@@ -13,17 +13,14 @@ jobs:
|
|
|
13
13
|
|
|
14
14
|
runs-on: ubuntu-latest
|
|
15
15
|
|
|
16
|
-
strategy:
|
|
17
|
-
matrix:
|
|
18
|
-
node-version: [14.x]
|
|
19
|
-
|
|
20
16
|
steps:
|
|
21
|
-
- uses: actions/checkout@
|
|
17
|
+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
22
18
|
|
|
23
|
-
- name: Use Node.js
|
|
24
|
-
uses: actions/setup-node@
|
|
19
|
+
- name: Use Node.js
|
|
20
|
+
uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3.9.1
|
|
25
21
|
with:
|
|
26
|
-
node-version:
|
|
22
|
+
node-version-file: ".nvmrc"
|
|
23
|
+
cache: "npm"
|
|
27
24
|
|
|
28
25
|
- run: npm install
|
|
29
26
|
|
package/bin/auditor/.nvmrc
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
20
|