Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I64 guard live reload #82

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,7 @@ gem "ffi", ">= 1.9.24"

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem "tzinfo-data", platforms: [:mingw, :mswin, :x64_mingw, :jruby]

group :development do
gem 'guard-livereload', '~> 2.5', require: false
end
32 changes: 31 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,31 @@ GEM
specs:
addressable (2.6.0)
public_suffix (>= 2.0.2, < 4.0)
coderay (1.1.3)
colorator (1.1.0)
concurrent-ruby (1.1.4)
em-websocket (0.5.1)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0.6.0)
eventmachine (1.2.7)
ffi (1.9.25)
formatador (0.2.5)
forwardable-extended (2.6.0)
guard (2.16.2)
formatador (>= 0.2.4)
listen (>= 2.7, < 4.0)
lumberjack (>= 1.0.12, < 2.0)
nenv (~> 0.1)
notiffany (~> 0.0)
pry (>= 0.9.12)
shellany (~> 0.0)
thor (>= 0.18.1)
guard-compat (1.2.1)
guard-livereload (2.5.2)
em-websocket (~> 0.5)
guard (~> 2.8)
guard-compat (~> 1.0)
multi_json (~> 1.8)
http_parser.rb (0.6.0)
i18n (0.9.5)
concurrent-ruby (~> 1.0)
Expand All @@ -37,9 +54,19 @@ GEM
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
ruby_dep (~> 1.2)
lumberjack (1.2.8)
mercenary (0.3.6)
method_source (1.0.0)
multi_json (1.15.0)
nenv (0.3.0)
notiffany (0.1.3)
nenv (~> 0.1)
shellany (~> 0.0)
pathutil (0.16.2)
forwardable-extended (~> 2.6)
pry (0.13.1)
coderay (~> 1.1)
method_source (~> 1.0)
public_suffix (3.0.3)
rb-fsevent (0.10.3)
rb-inotify (0.10.0)
Expand All @@ -52,14 +79,17 @@ GEM
sass-listen (4.0.0)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
shellany (0.0.1)
thor (1.0.1)

PLATFORMS
ruby

DEPENDENCIES
ffi (>= 1.9.24)
guard-livereload (~> 2.5)
jekyll (~> 3.7.4)
tzinfo-data

BUNDLED WITH
1.17.1
2.1.4
38 changes: 38 additions & 0 deletions Guardfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# A sample Guardfile
# More info at https://github.com/guard/guard#readme

## Uncomment and set this to only include directories you want to watch
# directories %w(app lib config test spec features) \
# .select{|d| Dir.exist?(d) ? d : UI.warning("Directory #{d} does not exist")}

## Note: if you are using the `directories` clause above and you are not
## watching the project directory ('.'), then you will want to move
## the Guardfile to a watched dir and symlink it back, e.g.
#
# $ mkdir config
# $ mv Guardfile config/
# $ ln -s config/Guardfile .
#
# and, you'll have to watch "config/Guardfile" instead of "Guardfile"

guard 'livereload' do
imgs = [
"jpg",
"jpeg",
"png",
"gif",
"svg"
]
imgs.each do |ext, type|
watch(%r{assets/img/(!\.)+\.#{ext}})
end
watch(%r{assets/css/.+\.css})
watch(%r{css/.+\.css})
watch(%r{js/(.+\/)?.+\.js})
watch(%r{fonts/.+\.(eot|svg|ttf|woff)})
watch(%r{locale/.{2,3}/.+\.json})
watch(%{_includes/.+\.html})
watch(%r{_layouts/.+\.html})
watch(%r{_sass/.+\.sass})
watch(%r{.+.html})
end
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ This website is implemented with [Jekyllrb](https://jekyllrb.com/). After instal
```shell
$ bundle exec jekyll serve
```
The project has [Guard LiveReload](https://github.com/guard/guard-livereload) configured. If you want to use it, once you got the development
server running, open a new consol terminal in the project root directory and execute:

```shell
$ bundle exec guard
```

If you want to develop using Docker instead, install [Docker](https://docs.docker.com/install/) and [docker-compose](https://docs.docker.com/compose/install/) and run:
```shell
Expand Down
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,6 @@ plugins:
exclude:
- Gemfile
- Gemfile.lock
- Guardfile
- Dockerfile
- docker-compose.yml