Permalink
Browse files

first commit

  • Loading branch information...
0 parents commit 36551ede68ed6a9c2d9deadf7c7b90d04b7b1220 @pibako pibako committed Jun 4, 2012
Showing with 138 additions and 0 deletions.
  1. +3 −0 .gitmodules
  2. +8 −0 Gemfile
  3. +32 −0 Gemfile.lock
  4. +34 −0 Rakefile
  5. +33 −0 Readme.org
  6. +1 −0 app
  7. +27 −0 config.ru
@@ -0,0 +1,3 @@
+[submodule "app"]
+ path = app
+ url = git@github.com:kowalski-consulting/kowalski-consulting.github.com.git
@@ -0,0 +1,8 @@
+source "http://rubygems.org"
+
+gem 'rake'
+gem 'rack'
+gem 'webrick'
+gem 'coffee-script'
+gem 'sass'
+gem 'sprockets'
@@ -0,0 +1,32 @@
+GEM
+ remote: http://rubygems.org/
+ specs:
+ coffee-script (2.2.0)
+ coffee-script-source
+ execjs
+ coffee-script-source (1.3.1)
+ execjs (1.3.1)
+ multi_json (~> 1.0)
+ hike (1.2.1)
+ multi_json (1.3.4)
+ rack (1.4.1)
+ rake (0.9.2.2)
+ sass (3.1.17)
+ sprockets (2.4.1)
+ hike (~> 1.2)
+ multi_json (~> 1.0)
+ rack (~> 1.0)
+ tilt (~> 1.1, != 1.3.0)
+ tilt (1.3.3)
+ webrick (1.3.1)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ coffee-script
+ rack
+ rake
+ sass
+ sprockets
+ webrick
@@ -0,0 +1,34 @@
+task :default => [:compile]
+
+coffee_path = File.dirname(__FILE__) + "/app/assets/javascripts"
+scss_path = File.dirname(__FILE__) + "/app/assets/stylesheets"
+
+coffee_files = FileList[coffee_path + '/*.coffee']
+scss_files = FileList[scss_path + '/*.scss']
+
+desc "Compile assets"
+task :compile => [:compile_coffee, :compile_scss]
+
+desc "Compile coffeescripts"
+task :compile_coffee do
+ coffee_files.each do |file|
+ sh "coffee -c #{file}"
+ end
+end
+
+desc "Compile scss"
+task :compile_scss do
+ scss_files.each do |file|
+ sh "scss #{file} #{file.ext('css')}"
+ end
+end
+
+desc "Cleanup css and js"
+task :cleanup do
+ coffee_files.each do |file|
+ sh "rm #{file.ext('js')}" if File.exist? file.ext('js')
+ end
+ scss_files.each do |file|
+ sh "rm #{file.ext('css')}" if File.exist? file.ext('css')
+ end
+end
@@ -0,0 +1,33 @@
+* Workflow
+** Prerequisites
+ - Install node using brew
+ : $ brew install node
+ - Install npm
+ : $ curl http://npmjs.org/install.sh | sh
+ - Install coffeescript
+ : $ npm install -g coffee-script
+** Development
+*** Set up dependencies
+ : $ bundle install
+*** Cleanup all generated js and css
+ : $ bundle exec rake cleanup
+*** Run rake server - it will compile your assets on the fly
+ : $ bundle exec rackup config.ru
+*** Go to localhost:9292 and see your site
+
+** Deployment
+*** Compile all assets - this will produce all css and js files
+ : $ bundle exec rake
+
+
+* Tasks
+
+** TODO Add links to the technology sites
+
+** TODO Add links to LinkedIn profiles and maybe Twitter accounts
+
+** TODO Add SmartCampus screenshots
+
+** TODO Make the Project background $baseColor
+
+
1 app
Submodule app added at 8525dd
@@ -0,0 +1,27 @@
+require 'sprockets'
+
+project_root = File.expand_path(File.dirname(__FILE__))
+assets = Sprockets::Environment.new(project_root) do |env|
+ env.logger = Logger.new(STDOUT)
+end
+
+assets.append_path('app/assets')
+assets.append_path('app/assets/javascripts')
+assets.append_path('app/assets/stylesheets')
+
+map "/assets" do
+ run assets
+end
+
+map "/" do
+ run lambda { |env|
+ [
+ 200,
+ {
+ 'Content-Type' => 'text/html',
+ 'Cache-Control' => 'public, max-age=86400'
+ },
+ File.open('app/index.html', File::RDONLY)
+ ]
+ }
+end

0 comments on commit 36551ed

Please sign in to comment.