Add stump of web project.

This commit is contained in:
Jason A. Donenfeld 2011-05-05 20:03:47 -04:00
parent 1928ae585d
commit 8d66a56b91
19 changed files with 8934 additions and 0 deletions

View File

4
web/.htaccess Normal file
View File

@ -0,0 +1,4 @@
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript application/json
<FilesMatch "(Makefile)|(.*\.pyc)">
deny from all
</FilesMatch>

35
web/Makefile Normal file
View File

@ -0,0 +1,35 @@
JS_DIR = js
CSS_DIR = css
JS_MIN = $(JS_DIR)/scripts.min.js
CSS_MIN = $(CSS_DIR)/styles.min.css
JS_MIN_FILES := $(patsubst %.js, %.min.js, $(filter-out %.min.js, $(wildcard $(JS_DIR)/*.js)))
CSS_MIN_FILES := $(patsubst %.css, %.min.css, $(filter-out %.min.css, $(wildcard $(CSS_DIR)/*.css)))
JS_COMPILER = utils/google-compiler --warning_level QUIET
CSS_COMPILER = utils/yuicompressor --type css
.PHONY: all clean
all: $(JS_MIN) $(CSS_MIN)
%.min.js: %.js
@echo "Compiling javascript" $<
@$(JS_COMPILER) --js $< --js_output_file $@
%.min.css: %.css
@echo "Compiling stylesheet" $<
@$(CSS_COMPILER) -o $@ $<
$(JS_MIN): $(JS_MIN_FILES)
@echo "Assembling compiled javascripts"
@cat $^ > $@
$(CSS_MIN): $(CSS_MIN_FILES)
@echo "Assembling compiled stylesheets"
@cat $^ > $@
clean:
@rm -fv $(JS_MIN) $(JS_MIN_FILES) $(CSS_MIN) $(CSS_MIN_FILES)

1
web/css/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
*.min.css

3
web/css/.htaccess Normal file
View File

@ -0,0 +1,3 @@
<FilesMatch "(?<!min)\.css">
deny from all
</FilesMatch>

0
web/css/000-main.css Normal file
View File

15
web/index.html Normal file
View File

@ -0,0 +1,15 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>PhotoFloat</title>
<link href="css/styles.min.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/scripts.min.js"></script>
</head>
<body>
<div id="debug">Debug info here...</div>
</body>
</html>

1
web/js/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
*.min.js

3
web/js/.htaccess Normal file
View File

@ -0,0 +1,3 @@
<FilesMatch "(?<!min)\.js">
deny from all
</FilesMatch>

8865
web/js/000-jquery-1.6.js Normal file

File diff suppressed because it is too large Load Diff

1
web/utils/.htaccess Normal file
View File

@ -0,0 +1 @@
deny from all

3
web/utils/google-compiler Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
me=$(dirname "$0")
java -jar "$me/google-compiler.jar" $@

Binary file not shown.

3
web/utils/yuicompressor Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
me=$(dirname "$0")
java -jar "$me/yuicompressor-2.4.6.jar" $@

Binary file not shown.