Adding in some coffeescript.
This commit is contained in:
parent
3afdbc5487
commit
cbf9aa17c4
1
site/.gitignore
vendored
1
site/.gitignore
vendored
@ -1 +1,2 @@
|
||||
static/css/hy.css
|
||||
static/js/main.js
|
||||
|
@ -10,12 +10,16 @@ all: build
|
||||
@echo "Nice."
|
||||
|
||||
|
||||
build: clean
|
||||
build: clean less coffee
|
||||
|
||||
less:
|
||||
$(LESSC) $(LESSCFLAGS) less/hy.less > $(STATIC_CSS)/hy.css
|
||||
|
||||
coffee:
|
||||
coffee -o static/js -c ./coffee/*
|
||||
|
||||
clean:
|
||||
rm -f $(STATIC_CSS)/hy.css
|
||||
|
||||
|
||||
.PHONY: build clean
|
||||
.PHONY: build clean less coffee
|
||||
|
6
site/coffee/main.coffee
Normal file
6
site/coffee/main.coffee
Normal file
@ -0,0 +1,6 @@
|
||||
foo = (x) ->
|
||||
if x < 2
|
||||
return x
|
||||
foo(x - 1) + foo(x - 2)
|
||||
|
||||
alert(foo(10))
|
Loading…
Reference in New Issue
Block a user