Skip to content
This repository was archived by the owner on Jan 19, 2025. It is now read-only.

Commit 40bb9e5

Browse files
authored
Merge pull request #26 from chicio/lhci 🚀
Lighthouse CI 🚀
2 parents eaca112 + a648139 commit 40bb9e5

19 files changed

+101
-91
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ node_modules
66
.idea
77
*.code-workspace
88
vendor/
9-
.bundle/
9+
.bundle/
10+
.lighthouseci

.lighthouserc.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"ci": {
3+
"collect": {
4+
"numberOfRuns": 3,
5+
"staticDistDir": "./_site",
6+
"startServerCommand": "npm start",
7+
"url": [
8+
"http://localhost:4000/",
9+
"http://localhost:4000/blog/",
10+
"http://localhost:4000/blog/archive/",
11+
"http://localhost:4000/blog/tags/"
12+
]
13+
},
14+
"assert": {
15+
"preset": "lighthouse:recommended",
16+
"assertions": {
17+
"uses-optimized-images": "off",
18+
"uses-webp-images": "off",
19+
"uses-responsive-images": "off",
20+
"unused-css-rules": "off",
21+
"uses-text-compression": "off",
22+
"redirects-http": "off",
23+
"uses-http2": "off",
24+
"is-on-https": "off"
25+
}
26+
},
27+
"upload": {
28+
"target": "temporary-public-storage"
29+
}
30+
}
31+
}

.travis.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
language: node_js
2+
os: osx
23
node_js:
34
- 13.0.1
4-
env:
5-
global:
6-
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true
75
addons:
8-
apt:
9-
packages:
10-
- libcurl4-openssl-dev
11-
- zsh
12-
before_script:
6+
chrome: stable
7+
script:
138
- npm run setup
14-
script: npm run test
9+
- npm run test
10+
after_success:
11+
- lhci autorun

_css/blog-post-tags.scss

Lines changed: 11 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -2,40 +2,18 @@
22
margin-top: 25px;
33
margin-bottom: 25px;
44

5-
ul {
6-
padding: 0;
5+
a {
6+
display: inline-block;
7+
height: 46px;
78

8-
li:before {
9-
content: ""
10-
}
11-
12-
li {
13-
margin: 0;
14-
font-weight: 300;
15-
display: inline;
16-
list-style-type: none;
17-
text-transform: lowercase;
18-
19-
a {
20-
display: inline-block;
21-
margin: 4px;
22-
color: #ffffff;
23-
background-color: $primary-color;
24-
text-decoration: none;
25-
border-radius: 3px;
26-
27-
span {
28-
float: left;
29-
padding: .5px 5px;
30-
border-radius: 3px;
31-
font-size: 14px;
32-
}
33-
34-
.count {
35-
background-color: $primary-color-dark;
36-
border-radius: 3px;
37-
}
38-
}
9+
span {
10+
margin: 4px;
11+
color: #ffffff;
12+
background-color: $primary-color;
13+
text-decoration: none;
14+
border-radius: 3px;
15+
font-size: 14px;
16+
padding: .5px 5px;
3917
}
4018
}
4119
}

_css/blog-tags.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,16 @@
33
padding-bottom: 30px;
44

55
.blog-tag-title {
6-
font-size: 20px;
6+
font-size: 24px;
77
font-weight: bold;
8+
margin-bottom: 15px;
89
}
910

1011
.blog-tag-post {
1112
a {
1213
color: $accent-color;
14+
display: block;
15+
min-height: 46px;
1316
}
1417

1518
a:hover {

_includes/blog-post-tags.html

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
<div class="blog-tags">
2-
<ul>
32
{% for tag in include.tags %}
4-
<li>
53
<a onclick="track('{{ site.data.tracking.action.open_blog_tag }}', '{{ site.data.tracking.category.blog_post }}', '{{ site.data.tracking.label.body }}')"
64
href="/blog/tags#{{ tag }}">
75
<span>{{ tag }}</span>
86
</a>
9-
</li>
107
{% endfor %}
11-
</ul>
128
</div>

_includes/critical-blog-tags.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)