Skip to content

Commit 651c787

Browse files
author
Houssein Djirdeh
committed
add sw + firebase + travis ci
1 parent 189e647 commit 651c787

File tree

10 files changed

+136
-61
lines changed

10 files changed

+136
-61
lines changed

.firebaserc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"projects": {
3+
"default": "git-point-site"
4+
}
5+
}

.travis.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
language: ruby
2+
rvm:
3+
- 2.3.3
4+
5+
before_install:
6+
- nvm install 7
7+
- npm install
8+
9+
script:
10+
- npm run build
11+
- npm run precache
12+
13+
deploy:
14+
firebase deploy --token $FIREBASE_TOKEN
15+
16+
notifications:
17+
email:
18+
on_failure: change
19+
on_success: change

_includes/head.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
<link rel="canonical" href="{{ page.url | replace:'index.html','' | absolute_url }}">
1111
<link rel="alternate" type="application/rss+xml" title="{{ site.title | escape }}" href="{{ " /feed.xml
1212
" | relative_url }}"> {% if jekyll.environment == 'production' and site.google_analytics %} {% include google-analytics.html %} {% endif %}
13-
14-
<script async defer src="https://buttons.github.io/buttons.js"></script>
13+
<link rel="manifest" href="/assets/manifest.json">
14+
<link rel="icon" href="{{ "/assets/favicon.ico" | relative_url }}">
1515
</head>

_includes/header.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="vh-85 dt w-100 bg-header bg-primary avenir flex flex-column items-center justify-center">
1+
<div class="vh-85 dt w-100 bg-header bg-primary flex flex-column items-center justify-center">
22
<div class="dtc v-mid tc ph3 ph4-l">
33
<div class="link header-logo br-100 pa4 ba bg-dark-gray h4 w4 dib flex items-center justify-center" href="/">
44
<img class="w4" src="/assets/images/logo-white.png" alt="GitPoint">

_layouts/home.html

Lines changed: 62 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -97,68 +97,72 @@ <h2 class="f3 f2-m f2-l fw6 tc dark-gray mb2">
9797
<div class="pv5 ph4 avenir bg-tertiary flex justify-center">
9898
<div class="flex flex-column flex-row-l items-center items-start-l tc tl-ns flex-wrap justify-between w-80">
9999

100-
<div class="flex flex-column w6 w5-l mb0-ns">
101-
<h2 class="f4 fw6 white mb2">
102-
Why GitPoint?
103-
</h2>
104-
105-
<p class="f5 white lh-copy mw7">
106-
Every single unofficial client that I tried to user were either simple, single-feature applications
107-
or required payment for even the most basic of requirements (such as accessing a private repository or commenting on an issue).
108-
</p>
109-
110-
<p class="f5 white lh-copy mw7">
111-
I was suprised to not be able to find a single client that had everything I
112-
needed, so I built this bad boy.
113-
</p>
114-
</div>
100+
<div class="w-40-l">
101+
<div class="flex flex-column w6 mb4">
102+
<h2 class="f4 fw6 white mb2">
103+
Why GitPoint?
104+
</h2>
105+
106+
<p class="f5 white lh-copy mw7">
107+
Every single unofficial client that I tried to user were either simple, single-feature applications
108+
or required payment for even the most basic of requirements (such as accessing a private repository or commenting on an issue).
109+
</p>
115110

116-
<div class="flex flex-column w6 w5-l mb0-ns">
117-
<h2 class="f4 fw6 white mb2">
118-
Y no Android version?!?
119-
</h2>
120-
121-
<p class="f5 white lh-copy mw7">
122-
Every single unofficial client that I tried to user were either simple, single-feature applications
123-
or required payment for even the most basic of requirements (such as accessing a private repository or commenting on an issue).
124-
</p>
125-
126-
<p class="f5 white lh-copy mw7">
127-
I was suprised to not be able to find a single client that had everything I
128-
needed, so I built this bad boy.
129-
</p>
130-
</div>
111+
<p class="f5 white lh-copy mw7">
112+
I was suprised to not be able to find a single client that had everything I
113+
needed, so I built this bad boy.
114+
</p>
115+
</div>
131116

132-
<div class="flex flex-column w6 w5-l mb0-ns">
133-
<h2 class="f4 fw6 white mb2">
134-
Does this have everything?
135-
</h2>
136-
137-
<p class="f5 white lh-copy mw7">
138-
Nope. Well, not yet. There are definitely features that still need to be included (plus
139-
you may very well notice a few bugs here and there right now).
140-
</p>
141-
142-
<p class="f5 white lh-copy mw7">
143-
Please take a look at the issue list to see all of the features we plan on adding. Please don't
144-
hesitate to file an issue for a bug or a feature request!
145-
</p>
117+
<div class="flex flex-column w6 mb4 mb0-l">
118+
<h2 class="f4 fw6 white mb2">
119+
Y no Android version?!?
120+
</h2>
121+
122+
<p class="f5 white lh-copy mw7">
123+
Every single unofficial client that I tried to user were either simple, single-feature applications
124+
or required payment for even the most basic of requirements (such as accessing a private repository or commenting on an issue).
125+
</p>
126+
127+
<p class="f5 white lh-copy mw7">
128+
I was suprised to not be able to find a single client that had everything I
129+
needed, so I built this bad boy.
130+
</p>
131+
</div>
146132
</div>
147133

148-
<div class="flex flex-column w6 w5-l">
149-
<h2 class="f4 fw6 white mb2">
150-
Can I contribute?
151-
</h2>
152-
153-
<p class="f5 white lh-copy mw7">
154-
Yes please! Please feel free to put up an issue or PR for any issue or feature request.
155-
Even if you have little to no experience with React Native, I'll be more than happy to help :).
156-
</p>
157-
158-
<p class="f5 white lh-copy mw7">
159-
Take a look at CONRIBUTING.md for all the steps you need to get the project running locally as well
160-
how you can contribute.
161-
</p>
134+
<div class="w-40-l">
135+
<div class="flex flex-column w6 mb4">
136+
<h2 class="f4 fw6 white mb2">
137+
Does this have everything?
138+
</h2>
139+
140+
<p class="f5 white lh-copy mw7">
141+
Nope. Well, not yet. There are definitely features that still need to be included (plus
142+
you may very well notice a few bugs here and there right now).
143+
</p>
144+
145+
<p class="f5 white lh-copy mw7">
146+
Please take a look at the issue list to see all of the features we plan on adding. Please don't
147+
hesitate to file an issue for a bug or a feature request!
148+
</p>
149+
</div>
150+
151+
<div class="flex flex-column w6">
152+
<h2 class="f4 fw6 white mb2">
153+
Can I contribute?
154+
</h2>
155+
156+
<p class="f5 white lh-copy mw7">
157+
Yes please! Please feel free to put up an issue or PR for any issue or feature request.
158+
Even if you have little to no experience with React Native, I'll be more than happy to help :).
159+
</p>
160+
161+
<p class="f5 white lh-copy mw7">
162+
Take a look at CONRIBUTING.md for all the steps you need to get the project running locally as well
163+
how you can contribute.
164+
</p>
165+
</div>
162166
</div>
163167
</div>
164168
</div>

assets/favicon.ico

1.12 KB
Binary file not shown.

assets/manifest.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"name": "GitPoint Site",
3+
"short_name": "GitPoint Site",
4+
"description": "GitPoint for iOS",
5+
"theme_color": "#eef2f5",
6+
"background_color": "#333",
7+
"start_url": "/",
8+
"display": "standalone",
9+
"icons": [
10+
{
11+
"src": "/assets/images/logo-black.png",
12+
"type": "image/png",
13+
"sizes": "512x512"
14+
}
15+
]
16+
}

firebase.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"hosting": {
3+
"public": "_site",
4+
"ignore": [
5+
"firebase.json",
6+
"Gemfile",
7+
"Gemfile.lock",
8+
"Rakefile",
9+
"CNAME",
10+
"README.md"
11+
]
12+
}
13+
}

package.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"name": "gitpoint",
3+
"description": "GitHub for iOS",
4+
"scripts": {
5+
"build": "JEKYLL_ENV=production bundle exec jekyll build",
6+
"precache": "sw-precache --config=sw-precache-config.js --root=_site --verbose"
7+
},
8+
"devDependencies": {
9+
"sw-precache": "^5.1.1"
10+
}
11+
}

sw-precache-config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = {
2+
staticFileGlobs: [
3+
"_site/**/*.html",
4+
"_site/assets/**/*"
5+
],
6+
stripPrefix: '_site/'
7+
};

0 commit comments

Comments
 (0)