Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added 10k to master for easier hosting on gh-pages
- Loading branch information
Showing
10 changed files
with
1,091 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Taskboard 10k | ||
=============== | ||
|
||
This is a 10kB version of Taskboard-Lite prepared for 10k Apart contest. | ||
Available online at http://10k.aneventapart.com/Entry/303 | ||
|
||
DESCRIPTION | ||
------------- | ||
|
||
Taskboard 10k is a light-weight on-line whiteboard for your task and notes about life, the universe and everything. | ||
It's easy to use like a fridge door with sticky notes. | ||
|
||
|
||
LICENSE | ||
--------- | ||
|
||
Copyright 2010 Bartek Szopka. Released under MIT License. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
|
||
Taskboard 10k | ||
|
||
Author: Bartek Szopka <bartek.szopka+10k@gmail.com> | ||
Date: 2010.08.24 | ||
===================================================== | ||
|
||
|
||
DESCRIPTION | ||
============= | ||
|
||
Taskboard 10k is a light-weight on-line whiteboard for your task and notes about life, the universe and everything. | ||
It's easy to use like a fridge door with sticky notes. | ||
|
||
You like to get things done? - Use it as a colorful todo list. | ||
|
||
Are you an agile enthusiast? - Turn in into kanban or scrum board. | ||
|
||
|
||
Inspired by: | ||
|
||
* Cognifide's Taskboard (http://taskboard.cognifide.com) | ||
* StickyScreen (http://www.stickyscreen.org/) | ||
|
||
Icons taken from Fugue Icon set by Yusuke Kamiyamane http://p.yusukekamiyamane.com | ||
|
||
|
||
CONTENTS OF THE PACKAGE | ||
========================= | ||
|
||
css\s.css - style sheet (minified) | ||
img\i.png - icons | ||
js\s.js - script (minified) | ||
index.html - HTML (minified) | ||
src\ - full, non-minified, commented source files -- if anyone is brave enough to read them ;) | ||
README - this file | ||
|
||
MINIFICATION | ||
============== | ||
|
||
Style-sheet (css\s.css) and script (js\s.js) were minified using YUI Compressor (2.4.2), with default settings. | ||
HTML (index.html) was minified using HTML Compressor (0.9.1) with remove-intertag-spaces and remove-quotes options | ||
|
||
Google Closure Compiler was considered as a minifier for script, but as it assumes gzip | ||
compression it creates bigger file size (by inlining constant strings, etc). | ||
That was a nice lesson learned! | ||
|
||
Icons sprite file was optimized using PngOptimizer 1.8. | ||
|
||
Final minified file sizes | ||
--------------------------- | ||
|
||
css\s.css 2820 | ||
img\i.png 1648 | ||
js\s.js 5289 | ||
index.html 441 | ||
----------------- | ||
10198 | ||
+ 42 (just a coincidence?) | ||
====== | ||
10240 | ||
|
||
|
||
BROWSERS | ||
==================== | ||
|
||
Taskboard 10k was developed on Chromium 6 and Firefox 3.6 (Ubuntu 10.4) | ||
|
||
Tested using following browsers | ||
--------------------------------- | ||
|
||
IE9 Platform Preview 4 (Windows 7) | ||
-- small rendering issues of card shadows during animations or drag & drop | ||
-- tiny issues with unexpected mousemove events being triggered on mousedown | ||
-- Ctrl+P hotkey was changed to Ctrl+G (as printing is not prevented by returning false) | ||
-- Ctrl+S hotkey is not working (cannot prevent opening save dialog) | ||
|
||
Firefox 3.6 (Windows XP, Ubuntu 10.4) | ||
-- workaround was needed as 'formatblock' command was not working | ||
|
||
Chrome 5 + Chromium 6 (Windows XP, Ubuntu 10.4) | ||
-- inset shadow not used on tags because of rendering problems | ||
|
||
Safari 5 (Windows XP) | ||
|
||
Opera 10.6 (Windows XP, Ubuntu 10.4) | ||
-- Ctrl+* hotkeys are not working | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
verbose false | ||
|
||
OUTPUT_PATH = 'dist' | ||
|
||
CLEAN = FileList[OUTPUT_PATH] | ||
HTML = FileList[File.join(OUTPUT_PATH, '/*.html')] | ||
JS = FileList[File.join(OUTPUT_PATH, '/js/*.js')] | ||
CSS = FileList[File.join(OUTPUT_PATH, '/css/*.css')] | ||
|
||
task :default => :build | ||
|
||
desc "Builds the site from scratch" | ||
task :build => ['clean', 'copy', 'src', 'minify', 'count'] | ||
|
||
desc "Cleans output directory" | ||
task :clean => :dist do | ||
CLEAN.each do |f| | ||
sh 'rm ' + ('-r ' if File.directory? f) + f | ||
end | ||
end | ||
|
||
directory 'dist' | ||
directory 'dist/js' | ||
directory 'dist/css' | ||
directory 'dist/img' | ||
|
||
task :copy => ['dist', 'dist/css', 'dist/js', 'dist/img'] do | ||
cp 'index.html', 'dist' | ||
cp 'css/s.css', 'dist/css' | ||
cp 'js/s.js', 'dist/js' | ||
cp 'img/i.png', 'dist/img' | ||
cp 'README.10k', 'dist/README' | ||
end | ||
|
||
directory 'dist/src' | ||
directory 'dist/src/js' | ||
directory 'dist/src/css' | ||
directory 'dist/src/img' | ||
|
||
task :src => ['dist/src', 'dist/src/js', 'dist/src/css', 'dist/src/img'] do | ||
cp 'index.html', 'dist/src' | ||
cp 'css/s.css', 'dist/src/css' | ||
cp 'js/s.js', 'dist/src/js' | ||
cp 'img/i.png', 'dist/src/img' | ||
end | ||
|
||
|
||
desc "Minifies everything" | ||
task :minify => ['minify:html', 'minify:js', 'minify:css'] | ||
|
||
namespace "minify" do | ||
|
||
|
||
desc "Minifies HTML files in output directory" | ||
task :html do | ||
HTML.each do |file| | ||
run_on_file 'java -jar lib/htmlcompressor-0.9.1.jar --remove-intertag-spaces --remove-quotes', file | ||
end | ||
end | ||
|
||
desc "Minifies JavaScript files using Google Closure Compiler" | ||
task :js do | ||
JS.each do |file| | ||
# run_on_file 'java -jar lib/compiler.jar --js', file | ||
run_on_file 'java -jar lib/yuicompressor-2.4.2.jar', file | ||
end | ||
end | ||
|
||
desc "Minifies CSS files using YUI Compressor" | ||
task :css do | ||
CSS.each do |file| | ||
run_on_file 'java -jar lib/yuicompressor-2.4.2.jar', file | ||
end | ||
end | ||
|
||
def run_on_file(command, file) | ||
sh "#{command} #{file} > .tmp" | ||
sh "cp .tmp #{file}" | ||
sh "rm .tmp" | ||
end | ||
|
||
end | ||
|
||
task :count do | ||
sum_size = 0 | ||
['index.html', 'css/s.css', 'js/s.js', 'img/i.png'].each { |file| | ||
size = File.size(File.join('dist', file)) | ||
puts file.ljust(15) + size.to_s.rjust(5) | ||
sum_size += size | ||
} | ||
puts ("-"*7).rjust(20) | ||
puts sum_size.to_s.rjust(20) | ||
puts (sum_size - 10240).to_s.rjust(20) | ||
end | ||
|
Oops, something went wrong.