coffeescript + little bit more design

This commit is contained in:
Lorin Werthen 2016-06-09 17:57:40 +02:00
parent 9339cf5a75
commit 4beb5f6347
5 changed files with 46 additions and 9 deletions

View file

@ -6,6 +6,7 @@ ruby '2.3.1'
gem 'nanoc' gem 'nanoc'
gem 'kramdown' gem 'kramdown'
gem 'coffee-script'
group :development do group :development do
gem 'adsf' gem 'adsf'

View file

@ -4,9 +4,14 @@ GEM
adsf (1.2.1) adsf (1.2.1)
rack (>= 1.0.0) rack (>= 1.0.0)
coderay (1.1.1) coderay (1.1.1)
coffee-script (2.4.1)
coffee-script-source
execjs
coffee-script-source (1.10.0)
colored (1.2) colored (1.2)
cri (2.7.0) cri (2.7.0)
colored (~> 1.2) colored (~> 1.2)
execjs (2.7.0)
ffi (1.9.10) ffi (1.9.10)
formatador (0.2.5) formatador (0.2.5)
guard (2.14.0) guard (2.14.0)
@ -54,9 +59,13 @@ PLATFORMS
DEPENDENCIES DEPENDENCIES
adsf adsf
coffee-script
guard-nanoc guard-nanoc
kramdown kramdown
nanoc nanoc
RUBY VERSION
ruby 2.3.1p112
BUNDLED WITH BUNDLED WITH
1.12.5 1.12.5

5
Rules
View file

@ -12,6 +12,11 @@ compile '/**/*.erb' do
filter :erb filter :erb
end end
compile '/**/*.coffee' do
filter :coffeescript
write "#{item.identifier.without_ext}.js"
end
# Markdown # Markdown
compile '/**/*.md' do compile '/**/*.md' do
filter :kramdown filter :kramdown

9
content/index.coffee Normal file
View file

@ -0,0 +1,9 @@
$.get 'https://api.github.com/orgs/ZeusWPI/events', (data) ->
for e in data
console.log e
$('#github-feed ul').append(
$('<li />').append(
$('<img />',
style: 'width: 50px;',
src: e.actor.avatar_url
)))

File diff suppressed because one or more lines are too long