Add stump of web project.
This commit is contained in:
parent
1928ae585d
commit
8d66a56b91
0
.gitignore → scanner/.gitignore
vendored
0
.gitignore → scanner/.gitignore
vendored
4
web/.htaccess
Normal file
4
web/.htaccess
Normal 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
35
web/Makefile
Normal 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
1
web/css/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
*.min.css
|
3
web/css/.htaccess
Normal file
3
web/css/.htaccess
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<FilesMatch "(?<!min)\.css">
|
||||||
|
deny from all
|
||||||
|
</FilesMatch>
|
0
web/css/000-main.css
Normal file
0
web/css/000-main.css
Normal file
15
web/index.html
Normal file
15
web/index.html
Normal 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
1
web/js/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
*.min.js
|
3
web/js/.htaccess
Normal file
3
web/js/.htaccess
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<FilesMatch "(?<!min)\.js">
|
||||||
|
deny from all
|
||||||
|
</FilesMatch>
|
8865
web/js/000-jquery-1.6.js
Normal file
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
1
web/utils/.htaccess
Normal file
@ -0,0 +1 @@
|
|||||||
|
deny from all
|
3
web/utils/google-compiler
Executable file
3
web/utils/google-compiler
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
me=$(dirname "$0")
|
||||||
|
java -jar "$me/google-compiler.jar" $@
|
BIN
web/utils/google-compiler.jar
Normal file
BIN
web/utils/google-compiler.jar
Normal file
Binary file not shown.
3
web/utils/yuicompressor
Executable file
3
web/utils/yuicompressor
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
me=$(dirname "$0")
|
||||||
|
java -jar "$me/yuicompressor-2.4.6.jar" $@
|
BIN
web/utils/yuicompressor-2.4.6.jar
Normal file
BIN
web/utils/yuicompressor-2.4.6.jar
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user