lighthouse-badges 1.2.0 → 1.2.2
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/.github/workflows/build.yml +14 -0
- package/Dockerfile +1 -2
- package/dist/package.json +7 -7
- package/package.json +7 -7
|
@@ -24,6 +24,20 @@ jobs:
|
|
|
24
24
|
with:
|
|
25
25
|
version: latest
|
|
26
26
|
|
|
27
|
+
- name: Setup Node.js environment
|
|
28
|
+
uses: actions/setup-node@v3
|
|
29
|
+
with:
|
|
30
|
+
node-version: 16
|
|
31
|
+
cache: "npm"
|
|
32
|
+
|
|
33
|
+
- name: Cache node_modules
|
|
34
|
+
uses: actions/cache@v3
|
|
35
|
+
with:
|
|
36
|
+
path: '**/node_modules'
|
|
37
|
+
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}
|
|
38
|
+
restore-keys: |
|
|
39
|
+
${{ runner.os }}-modules-
|
|
40
|
+
|
|
27
41
|
- name: Versions
|
|
28
42
|
run: |
|
|
29
43
|
echo "node: $(node -v)"
|
package/Dockerfile
CHANGED
|
@@ -19,9 +19,8 @@ RUN apk --update --no-cache add chromium git
|
|
|
19
19
|
|
|
20
20
|
# Add lighthouse
|
|
21
21
|
RUN mkdir -p /home/lighthouse
|
|
22
|
+
COPY dist /home/lighthouse/
|
|
22
23
|
WORKDIR /home/lighthouse
|
|
23
|
-
COPY dist/src /home/lighthouse/src
|
|
24
|
-
COPY dist/package.json /home/lighthouse/package.json
|
|
25
24
|
|
|
26
25
|
RUN npm install . && npm link && rm -rf /root/.npm
|
|
27
26
|
|
package/dist/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lighthouse-badges",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"description": "🚦Generate gh-badges (shields.io) based on Lighthouse performance.",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"bin": {
|
|
7
7
|
"lighthouse-badges": "src/index.js"
|
|
8
8
|
},
|
|
9
9
|
"scripts": {
|
|
10
|
-
"app:install": "npm i -g .",
|
|
10
|
+
"app:install": "cd dist && npm i -g .",
|
|
11
11
|
"app:reinstall": "npm-run-all app:uninstall app:install",
|
|
12
|
-
"app:uninstall": "npm uninstall -g @emazzotta/lighthouse-badges",
|
|
13
|
-
"build": "npm run clean && babel src --out-dir dist/src && sed 's#\"dist/src/index.js\"#\"src/index.js\"#' package.json > ./dist/package.json && cp README.md dist && cp LICENSE.md dist",
|
|
12
|
+
"app:uninstall": "npm uninstall -g @emazzotta/lighthouse-badges; npm uninstall -g .; npm uninstall -g lighthouse-badges",
|
|
13
|
+
"build": "npm run clean && babel src --out-dir dist/src && sed 's#\"dist/src/index.js\"#\"src/index.js\"#' package.json > ./dist/package.json && cp README.md dist && cp LICENSE.md dist && cp -r node_modules dist",
|
|
14
14
|
"ci:publish": "npm run build && npm publish --prefix dist",
|
|
15
15
|
"clean": "rm -rf *.svg *.html coverage dist results",
|
|
16
16
|
"docker:build": "npm run build && docker build --build-arg VCS_REF=`git rev-parse --short HEAD` --build-arg BUILD_DATE=`date -u +\"%Y-%m-%dT%H:%M:%SZ\"` --build-arg VERSION=latest -t emazzotta/lighthouse-badges .",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"badge-maker": "^3.3.1",
|
|
48
48
|
"chrome-launcher": "^0.15.1",
|
|
49
49
|
"clui": "^0.3.6",
|
|
50
|
-
"lighthouse": "^10.0.
|
|
50
|
+
"lighthouse": "^10.0.1",
|
|
51
51
|
"ramda": "^0.28.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
@@ -56,12 +56,12 @@
|
|
|
56
56
|
"@babel/plugin-transform-runtime": "^7.19.6",
|
|
57
57
|
"@babel/preset-env": "^7.20.2",
|
|
58
58
|
"@types/jest": "^29.4.0",
|
|
59
|
-
"eslint": "^8.
|
|
59
|
+
"eslint": "^8.34.0",
|
|
60
60
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
61
61
|
"eslint-plugin-import": "^2.27.5",
|
|
62
62
|
"husky": "^8.0.3",
|
|
63
63
|
"jest": "^29.4.2",
|
|
64
|
-
"lint-staged": "^13.1.
|
|
64
|
+
"lint-staged": "^13.1.2",
|
|
65
65
|
"npm-run-all": "^4.1.5"
|
|
66
66
|
},
|
|
67
67
|
"engines": {
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lighthouse-badges",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"description": "🚦Generate gh-badges (shields.io) based on Lighthouse performance.",
|
|
5
5
|
"main": "dist/src/index.js",
|
|
6
6
|
"bin": {
|
|
7
7
|
"lighthouse-badges": "dist/src/index.js"
|
|
8
8
|
},
|
|
9
9
|
"scripts": {
|
|
10
|
-
"app:install": "npm i -g .",
|
|
10
|
+
"app:install": "cd dist && npm i -g .",
|
|
11
11
|
"app:reinstall": "npm-run-all app:uninstall app:install",
|
|
12
|
-
"app:uninstall": "npm uninstall -g @emazzotta/lighthouse-badges",
|
|
13
|
-
"build": "npm run clean && babel src --out-dir dist/src && sed 's#\"dist/src/index.js\"#\"src/index.js\"#' package.json > ./dist/package.json && cp README.md dist && cp LICENSE.md dist",
|
|
12
|
+
"app:uninstall": "npm uninstall -g @emazzotta/lighthouse-badges; npm uninstall -g .; npm uninstall -g lighthouse-badges",
|
|
13
|
+
"build": "npm run clean && babel src --out-dir dist/src && sed 's#\"dist/src/index.js\"#\"src/index.js\"#' package.json > ./dist/package.json && cp README.md dist && cp LICENSE.md dist && cp -r node_modules dist",
|
|
14
14
|
"ci:publish": "npm run build && npm publish --prefix dist",
|
|
15
15
|
"clean": "rm -rf *.svg *.html coverage dist results",
|
|
16
16
|
"docker:build": "npm run build && docker build --build-arg VCS_REF=`git rev-parse --short HEAD` --build-arg BUILD_DATE=`date -u +\"%Y-%m-%dT%H:%M:%SZ\"` --build-arg VERSION=latest -t emazzotta/lighthouse-badges .",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"badge-maker": "^3.3.1",
|
|
48
48
|
"chrome-launcher": "^0.15.1",
|
|
49
49
|
"clui": "^0.3.6",
|
|
50
|
-
"lighthouse": "^10.0.
|
|
50
|
+
"lighthouse": "^10.0.1",
|
|
51
51
|
"ramda": "^0.28.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
@@ -56,12 +56,12 @@
|
|
|
56
56
|
"@babel/plugin-transform-runtime": "^7.19.6",
|
|
57
57
|
"@babel/preset-env": "^7.20.2",
|
|
58
58
|
"@types/jest": "^29.4.0",
|
|
59
|
-
"eslint": "^8.
|
|
59
|
+
"eslint": "^8.34.0",
|
|
60
60
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
61
61
|
"eslint-plugin-import": "^2.27.5",
|
|
62
62
|
"husky": "^8.0.3",
|
|
63
63
|
"jest": "^29.4.2",
|
|
64
|
-
"lint-staged": "^13.1.
|
|
64
|
+
"lint-staged": "^13.1.2",
|
|
65
65
|
"npm-run-all": "^4.1.5"
|
|
66
66
|
},
|
|
67
67
|
"engines": {
|