kickster 1.5.0 → 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.
- checksums.yaml +4 -4
- data/README.md +26 -13
- data/circle.yml +2 -2
- data/images/kickster-step2.png +0 -0
- data/images/kickster-step3.png +0 -0
- data/images/kickster-token.png +0 -0
- data/lib/kickster/version.rb +1 -1
- data/snippets/travis/README.md +1 -1
- data/template/.gitignore +0 -1
- data/template/.ruby-version +1 -1
- data/template/README.md.tt +13 -10
- data/template/_assets/images/apple-touch-icon.png +0 -0
- data/template/_assets/images/og-image.jpg +0 -0
- data/template/bin/deploy +10 -0
- data/template/bower.json.tt +1 -1
- data/template/circle.yml +1 -1
- data/template/favicon.ico +0 -0
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ccb57b7462de3a18ee009c3ba81a898e2983d19
|
4
|
+
data.tar.gz: f4441e9b06e9efdf6e6048fcb8349fd9b384e864
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c83d729620c1bc06965859b52672c44616acc6f5595149e1e3c32fb8481eaea460753a70a4b42d85d9e1200775883473e23c85c66fbde78bb510e311e531b184
|
7
|
+
data.tar.gz: b72c3e632c000cd29dd0c000e78bd088f65cc52b8417b1a989bd0c3ce907a6099e4166f4b70126ef4136531a04ecbd54fbc4147e2e269498978678cf916b666a
|
data/README.md
CHANGED
@@ -5,6 +5,17 @@ Kickster
|
|
5
5
|
|
6
6
|
Kickster provides a basic Jekyll project setup packed with web best practises and useful optimization tools increasing your overall project quality. Kickster ships with automated and worry-free deployment scripts for GitHub Pages.
|
7
7
|
|
8
|
+
Used tools:
|
9
|
+
|
10
|
+
- [Autoprefixer](https://github.com/postcss/autoprefixer)
|
11
|
+
- [Bower](http://bower.io/)
|
12
|
+
- [Circle CI](https://circleci.com/)
|
13
|
+
- [Html-proofer](https://github.com/gjtorikian/html-proofer)
|
14
|
+
- [Jekyll](http://jekyllrb.com/)
|
15
|
+
- [Jekyll assets](https://github.com/jekyll/jekyll-assets)
|
16
|
+
- [Jekyll Sitemap](https://github.com/jekyll/jekyll-sitemap)
|
17
|
+
- [HTML5 Boilerplate](https://html5boilerplate.com/) (Influenced by)
|
18
|
+
|
8
19
|
## Installation
|
9
20
|
|
10
21
|
Install the gem:
|
@@ -20,22 +31,14 @@ Setup your environment:
|
|
20
31
|
cd site_name
|
21
32
|
bin/setup
|
22
33
|
|
34
|
+
You can push your project to any branch except `gh-pages`. For `sitename.github.io` repo users make sure to use another branch than `master`.
|
35
|
+
|
23
36
|
## Development
|
24
37
|
|
25
38
|
Run Jekyll:
|
26
39
|
|
27
40
|
bundle exec jekyll serve
|
28
41
|
|
29
|
-
Used tools:
|
30
|
-
- [Autoprefixer](https://github.com/postcss/autoprefixer)
|
31
|
-
- [Bower](http://bower.io/)
|
32
|
-
- [Circle CI](https://circleci.com/)
|
33
|
-
- [Html-proofer](https://github.com/gjtorikian/html-proofer)
|
34
|
-
- [Jekyll](http://jekyllrb.com/)
|
35
|
-
- [Jekyll assets](https://github.com/jekyll/jekyll-assets)
|
36
|
-
- [Jekyll Sitemap](https://github.com/jekyll/jekyll-sitemap)
|
37
|
-
- [HTML5 Boilerplate](https://html5boilerplate.com/) (Influenced by)
|
38
|
-
|
39
42
|
*If you do not want the Kickster setup but just the deploy scripts then copy them from the `bin` folder.*
|
40
43
|
|
41
44
|
## Deploy to GitHub Pages
|
@@ -44,7 +47,7 @@ Run this in the root project folder in your console:
|
|
44
47
|
|
45
48
|
bin/deploy
|
46
49
|
|
47
|
-
*Don't forget to enable your repository on [Circle CI](https://circleci.com/docs/getting-started) and update the `_config.yml` file!*
|
50
|
+
*Don't forget to enable your repository on [Circle CI](https://circleci.com/docs/getting-started) and update the `_config.yml` file with your url!*
|
48
51
|
|
49
52
|
## Automated deployment with Circle CI
|
50
53
|
|
@@ -65,9 +68,19 @@ Replace your `circle.yml` file with [this](https://github.com/nielsenramon/kicks
|
|
65
68
|
|
66
69
|
#### 3. Enable Circle CI.
|
67
70
|
|
68
|
-
Make sure you enabled your repository on Circle CI.
|
71
|
+
Make sure you enabled your repository on Circle CI.
|
72
|
+
After that we have to create a Read/Write deployment key. All 3 steps can be found [here](https://circleci.com/docs/adding-read-write-deployment-key/).
|
73
|
+
|
74
|
+
In short:
|
75
|
+
|
76
|
+
1. Create a ssh key on your computer: `ssh-keygen -t rsa -b 4096 -C "your_email@example.com"` (leave the passphrase empty).
|
77
|
+
|
78
|
+
2. Create a new deploy key in your GitHub project and paste the public key in there and make sure you "Allow write access".
|
79
|
+
|
80
|
+

|
81
|
+
3. Create a new SSH key in the "SSH Permissions" tab under your project settings in Circle CI and paste the private key in there with the hostname: `github.com`.
|
69
82
|
|
70
|
-
|
83
|
+

|
71
84
|
|
72
85
|
That's it, start pushing changes and enjoy your automated deployments from now on!
|
73
86
|
|
data/circle.yml
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
machine:
|
2
2
|
ruby:
|
3
|
-
version: 2.4.
|
3
|
+
version: 2.4.1
|
4
4
|
|
5
5
|
dependencies:
|
6
6
|
pre:
|
@@ -13,4 +13,4 @@ test:
|
|
13
13
|
- ls -al
|
14
14
|
- cd test && bin/setup
|
15
15
|
- cd test && bundle exec jekyll build
|
16
|
-
- cd test && bundle exec htmlproofer ./_site --only-4xx --allow-hash-href
|
16
|
+
- cd test && bundle exec htmlproofer ./_site --only-4xx --allow-hash-href --assume-extension --check-opengraph
|
Binary file
|
Binary file
|
Binary file
|
data/lib/kickster/version.rb
CHANGED
data/snippets/travis/README.md
CHANGED
@@ -29,7 +29,7 @@ This is required to push to the GitHub repo from a script.
|
|
29
29
|
In GitHub go to `settings > Personal access tokens` and create a new one.
|
30
30
|
First give it a proper name so it is easy to recognize later. Then check `repo` (check `public_repo` if it is a public repository) and click on create.
|
31
31
|
|
32
|
-
|
32
|
+

|
33
33
|
|
34
34
|
Copy the generated token.
|
35
35
|
|
data/template/.gitignore
CHANGED
data/template/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.4.
|
1
|
+
2.4.1
|
data/template/README.md.tt
CHANGED
@@ -2,25 +2,28 @@
|
|
2
2
|
|
3
3
|
## Installation
|
4
4
|
|
5
|
+
Install the gem:
|
6
|
+
|
7
|
+
gem install kickster
|
8
|
+
|
9
|
+
Execute gem and scaffold Kickster files:
|
10
|
+
|
11
|
+
kickster new site_name
|
12
|
+
|
5
13
|
Setup your environment:
|
6
14
|
|
15
|
+
cd site_name
|
7
16
|
bin/setup
|
8
17
|
|
18
|
+
You can push your project to any branch except `gh-pages`. For `sitename.github.io` repo users make sure to use another branch than `master`.
|
19
|
+
|
9
20
|
## Development
|
10
21
|
|
11
22
|
Run Jekyll:
|
12
23
|
|
13
24
|
bundle exec jekyll serve
|
14
25
|
|
15
|
-
|
16
|
-
- [Autoprefixer](https://github.com/postcss/autoprefixer)
|
17
|
-
- [Bower](http://bower.io/)
|
18
|
-
- [Circle CI](https://circleci.com/)
|
19
|
-
- [Html-proofer](https://github.com/gjtorikian/html-proofer)
|
20
|
-
- [Jekyll](http://jekyllrb.com/)
|
21
|
-
- [Jekyll assets](https://github.com/jekyll/jekyll-assets)
|
22
|
-
- [Jekyll Sitemap](https://github.com/jekyll/jekyll-sitemap)
|
23
|
-
- [HTML5 Boilerplate](https://html5boilerplate.com/) (Influenced by)
|
26
|
+
*If you do not want the Kickster setup but just the deploy scripts then copy them from the `bin` folder.*
|
24
27
|
|
25
28
|
## Deploy to GitHub Pages
|
26
29
|
|
@@ -28,4 +31,4 @@ Run this in the root project folder in your console:
|
|
28
31
|
|
29
32
|
bin/deploy
|
30
33
|
|
31
|
-
[
|
34
|
+
*Don't forget to enable your repository on [Circle CI](https://circleci.com/docs/getting-started) and update the `_config.yml` file with your url!*
|
Binary file
|
Binary file
|
data/template/bin/deploy
CHANGED
@@ -2,9 +2,19 @@
|
|
2
2
|
|
3
3
|
# Run this script to deploy the app to Github Pages.
|
4
4
|
|
5
|
+
RED='\033[0;31m'
|
6
|
+
|
5
7
|
# Exit if any subcommand fails.
|
6
8
|
set -e
|
7
9
|
|
10
|
+
# Check if any changes are uncommited.
|
11
|
+
if ! git diff-files --quiet --ignore-submodules --
|
12
|
+
then
|
13
|
+
echo >&2 "${RED}Please commit your changes first before deploying!"
|
14
|
+
git diff-files --name-status -r --ignore-submodules -- >&2
|
15
|
+
exit 0
|
16
|
+
fi
|
17
|
+
|
8
18
|
echo "Started deploying"
|
9
19
|
|
10
20
|
# Checkout gh-pages branch.
|
data/template/bower.json.tt
CHANGED
data/template/circle.yml
CHANGED
data/template/favicon.ico
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kickster
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nielsen Ramon
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-04-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -68,6 +68,9 @@ files:
|
|
68
68
|
- Rakefile
|
69
69
|
- bin/kickster
|
70
70
|
- circle.yml
|
71
|
+
- images/kickster-step2.png
|
72
|
+
- images/kickster-step3.png
|
73
|
+
- images/kickster-token.png
|
71
74
|
- kickster.gemspec
|
72
75
|
- lib/kickster.rb
|
73
76
|
- lib/kickster/generator.rb
|