Adding in some coffeescript.

This commit is contained in:
Paul R. Tagliamonte 2013-03-10 14:20:09 -04:00
parent 3afdbc5487
commit cbf9aa17c4
3 changed files with 13 additions and 2 deletions

1
site/.gitignore vendored
View File

@ -1 +1,2 @@
static/css/hy.css
static/js/main.js

View File

@ -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
View File

@ -0,0 +1,6 @@
foo = (x) ->
if x < 2
return x
foo(x - 1) + foo(x - 2)
alert(foo(10))