Permalink
Browse files

create js file shell

  • Loading branch information...
Dan Lawless
Dan Lawless committed Mar 19, 2010
1 parent 5a82f96 commit f7b46e00fb69543bc00a7f19485973951396b1b9
Showing with 12 additions and 2 deletions.
  1. +12 −2 bin/groove
View
@@ -63,6 +63,7 @@ RUBY
<title>#{name}</title>
<link rel="stylesheet" href="/css/screen.css" media="screen">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js" async></script>
+ <script src="/js/app.js" async></script>
</head>
<body>
<header>
@@ -101,7 +102,7 @@ CSS
border-radius: @radius;
}
-.shadow (@x-offset: 1px, @y-offset: 1px, @blur: 1px, @color: @white) {
+.shadow (@x-offset: 1px, @y-offset: 1px, @blur: 1px, @color: #fff) {
box-shadow: @x-offset @y-offset @blur @color;
-moz-box-shadow: @x-offset @y-offset @blur @color;
-webkit-box-shadow: @x-offset @y-offset @blur @color;
@@ -123,13 +124,22 @@ CSS
*line-height: 999px;
}
-.text-shadow (@color: @black) {
+.text-shadow (@color: #000) {
text-shadow: @color 1px 1px 0;
}
CSS
end
end
+ def create_javascript
+ create_file("#{name}/public/js/app.js") do
+<<-JS
+$(document).ready(function() {
+});
+JS
+ end
+ end
+
def create_gitignore
create_file("#{name}/.gitignore") do
<<-RUBY

0 comments on commit f7b46e0

Please sign in to comment.