Skip to content

Commit

Permalink
Commiting inital set of files
Browse files Browse the repository at this point in the history
  • Loading branch information
Matija Urh committed Aug 3, 2011
0 parents commit 9c08f6c
Show file tree
Hide file tree
Showing 8 changed files with 103 additions and 0 deletions.
1 change: 1 addition & 0 deletions css_code.min
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#header{font:75% "Lucida Grande","Trebuchet MS",Verdana,sans-serif;padding:10px}#wrapper{width:100%;height:300px;margin-left:20px}#footer{background-image:none;padding:0}
8 changes: 8 additions & 0 deletions first.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#header{
font: 75% "Lucida Grande", "Trebuchet MS", Verdana, sans-serif;
padding: 10px;}

#wrapper{
width: 100%;
height: 300px;
margin-left: 20px;}
30 changes: 30 additions & 0 deletions first.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/**
* This is organized file
*/

/**
* Functions
*/
function one() {
// Function one here
}

function two() {
// Function two here
}

/**
* Helpers
*/
function helper() {
// Helper here
}

/**
* Document ready
*/

$(document).ready(function () {
one();
helper();
});
49 changes: 49 additions & 0 deletions grouper.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
#!/bin/bash
echo
echo Hello. Grouper here
echo - - - - - - - - - -
echo
echo - JS files

# Empty js_code file
echo "" > js_code.js.all
echo "/* File with all JS code */" > js_code.js.all

for f in *.js;
do
echo "Putting file $f into .all";
echo "\n/*--- $f ---*/\n" >> js_code.js.all
cat $f >> js_code.js.all
done

# Rename js_code.js.all
mv js_code.js.all js_code.js

# Compress js file
java -jar yuicompressor-2.4.7pre.jar js_code.js -o js_code.min.js

rm js_code.js
mv js_code.min.js js_code.min

echo
echo - CSS files

# Empty css_code file
echo "" > css_code.css.all
echo "/* File with all CSS code */" > css_code.css.all

for f in *.css;
do
echo "Putting file $f into .all";
echo "\n/*--- $f ---*/\n" >> css_code.css.all
cat $f >> css_code.css.all
done

# Rename css_code.css.all
mv css_code.css.all css_code.css

# Compress css file
java -jar yuicompressor-2.4.7pre.jar css_code.css -o css_code.min.css

rm css_code.css
mv css_code.min.css css_code.min
1 change: 1 addition & 0 deletions js_code.min
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
function one(){}function two(){}function helper(){}$(document).ready(function(){one();helper()});function abracadabra(){}$(document).ready(function(){abracadabra()});
3 changes: 3 additions & 0 deletions last.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#footer {
background-image: none;
padding: 0;}
11 changes: 11 additions & 0 deletions last.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/**
* This is unorganized file
*/

function abracadabra(){
// Rabbit out of the hat
}

$(document).ready(function () {
abracadabra();
});
Binary file added yuicompressor-2.4.7pre.jar
Binary file not shown.

0 comments on commit 9c08f6c

Please sign in to comment.