Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Vim bindings, Rake tasks

  • Loading branch information...
commit 1692dc12ef379d65e86aea47db7d5f3f1b7fa4c6 1 parent 2dfcb96
Steven G. Harms authored
4 Gemfile.lock
View
@@ -9,6 +9,8 @@ GEM
eventmachine (0.12.10)
execjs (1.2.12)
multi_json (~> 1.0)
+ guard (0.8.8)
+ thor (~> 0.14.6)
isolate (3.2.1)
multi_json (1.0.4)
rack (1.3.5)
@@ -27,6 +29,7 @@ GEM
daemons (>= 1.0.9)
eventmachine (>= 0.12.6)
rack (>= 1.0.0)
+ thor (0.14.6)
tilt (1.3.3)
PLATFORMS
@@ -34,6 +37,7 @@ PLATFORMS
DEPENDENCIES
coffee-script
+ guard
isolate
sass
sinatra
6 Rakefile
View
@@ -0,0 +1,6 @@
+task :default => :halbert
+
+desc 'Start the Sinatra server for Halbert'
+task :halbert do
+ sh %{thin -C prod.yml -R config.ru start}
+end
1  config.ru
View
@@ -5,5 +5,4 @@ require 'coffee-script'
require 'tilt'
require './app'
-
run Sinatra::Application
3  prod.yml
View
@@ -0,0 +1,3 @@
+---
+address: localhost
+port: 4567
0  public/css/testing.css → public/css/custom.css
View
File renamed without changes
0  public/css/testing.scss → public/css/custom.scss
View
File renamed without changes
7 public/js/custom.coffee
View
@@ -0,0 +1,7 @@
+window.larry = () ->
+ console.log 'hiya'
+ console.log 'bear'
+ console.log 'muja'
+
+
+
6 public/js/custom.js
View
@@ -0,0 +1,6 @@
+
+ window.larry = function() {
+ console.log('hiya');
+ console.log('bear');
+ return console.log('muja');
+ };
4 public/views/layout.slim
View
@@ -8,7 +8,9 @@ head
script src='/js/underscore.js'
script src='/js/jquery.js'
- link href='/css/testing.css' media='screen' rel='stylesheet' type='text/css'
+ /! Here are the user custom resource files
+ link href='/css/custom.css' media='screen' rel='stylesheet' type='text/css'
+ script src='/js/custom.js'
body
== yield
9 vim_options.vim
View
@@ -1,3 +1,4 @@
+" SASS helpers
function! SGHSassCompile()
write
let file = expand("%")
@@ -6,4 +7,10 @@ function! SGHSassCompile()
let result = system("sass " . file . " " . css_file)
echo "Created " css_file
endfunction
-:map! <Leader>sc :call SGHSassCompile()<CR>
+au BufWritePost *.scss call SGHSassCompile()
+au BufNewFile,BufReadPost *.scss nnoremap <leader>sc :call SGHSassCompile()<CR>
+
+" Coffeescript helpers
+au BufWritePost *.coffee silent CoffeeMake!
+au BufNewFile,BufReadPost *.coffee setl foldmethod=indent nofoldenable shiftwidth=2 expandtab
+au BufNewFile,BufReadPost *.coffee nnoremap <leader>cc :w<cr>:CoffeeRun<cr>
Please sign in to comment.
Something went wrong with that request. Please try again.