Skip to content
This repository has been archived by the owner on Sep 7, 2020. It is now read-only.

Commit

Permalink
Added css files and css optimization.
Browse files Browse the repository at this point in the history
  • Loading branch information
NilsLattek committed Jul 10, 2012
1 parent 22122c4 commit f5d2c51
Show file tree
Hide file tree
Showing 11 changed files with 34 additions and 3 deletions.
5 changes: 5 additions & 0 deletions bin/build.sh
Expand Up @@ -24,6 +24,7 @@ cd $CURDIR

echo "Removing unnecessary js files from the build directory"
find $BUILDDIR/js -type f -not \( -name "main.js" -o -name "require.js" \) -delete
find $BUILDDIR/css -type f -not \( -name "index.css" \) -delete

echo "Removing collections directory"
rm -rf $BUILDDIR/js/collections
Expand All @@ -40,6 +41,10 @@ rm -rf $BUILDDIR/js/templates
echo "Removing views directory"
rm -rf $BUILDDIR/js/views

echo "Removing css directories"
rm -rf $BUILDDIR/css/layout
rm -rf $BUILDDIR/css/views

echo "Moving build.txt to current dir"
mv $BUILDDIR/build.txt $CURDIR

Expand Down
14 changes: 14 additions & 0 deletions bin/build.txt
@@ -1,4 +1,18 @@

css/index.css
----------------
css/layout/application.css
css/views/entry.css
css/index.css

css/layout/application.css
----------------
css/layout/application.css

css/views/entry.css
----------------
css/views/entry.css

js/libs/require/require.js
----------------
js/libs/require/require.js
Expand Down
1 change: 1 addition & 0 deletions client-build/css/index.css
@@ -0,0 +1 @@
body {margin: 0; padding: 0;}ul {list-style-type: none; margin: 0; padding: 0;}
Empty file added client-build/img/.gitkeep
Empty file.
2 changes: 1 addition & 1 deletion client-build/index.html
Expand Up @@ -5,7 +5,7 @@

<meta name="viewport" content="width=device-width; initial-scale=1.0; minimum-scale=1; maximum-scale=1.0; user-scalable=0;">

<!--<link rel="stylesheet" href="css/style.css">-->
<link rel="stylesheet" href="css/index.css">
<script data-main="js/main" src="js/libs/require/require.js"></script>
</head>
<body>
Expand Down
2 changes: 2 additions & 0 deletions client/css/index.css
@@ -0,0 +1,2 @@
@import url("layout/application.css");
@import url("views/entry.css");
4 changes: 4 additions & 0 deletions client/css/layout/application.css
@@ -0,0 +1,4 @@
body {
margin: 0;
padding: 0;
}
5 changes: 5 additions & 0 deletions client/css/views/entry.css
@@ -0,0 +1,5 @@
ul {
list-style-type: none;
margin: 0;
padding: 0;
}
Empty file added client/img/.gitkeep
Empty file.
2 changes: 1 addition & 1 deletion client/index.html
Expand Up @@ -5,7 +5,7 @@

<meta name="viewport" content="width=device-width; initial-scale=1.0; minimum-scale=1; maximum-scale=1.0; user-scalable=0;">

<!--<link rel="stylesheet" href="css/style.css">-->
<link rel="stylesheet" href="css/index.css">
<script data-main="js/main" src="js/libs/require/require.js"></script>
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion client/js/build.js
Expand Up @@ -5,7 +5,7 @@
mainConfigFile: 'main.js',
optimize: "uglify",
//optimize: "none",
//optimizeCss: "standard.keepLines",
optimizeCss: "standard", //standard.keepLines
inlineText: true,
findNestedDependencies: true,
paths: {
Expand Down

0 comments on commit f5d2c51

Please sign in to comment.