Skip to content

Commit

Permalink
use grunt to compile haml
Browse files Browse the repository at this point in the history
  • Loading branch information
jhchen committed Mar 25, 2013
1 parent 1a4e977 commit 2376fd2
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 58 deletions.
6 changes: 0 additions & 6 deletions Gemfile

This file was deleted.

50 changes: 0 additions & 50 deletions Gemfile.lock

This file was deleted.

23 changes: 21 additions & 2 deletions Gruntfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ module.exports = (grunt) ->
grunt.loadNpmTasks 'grunt-contrib-coffee'
grunt.loadNpmTasks 'grunt-contrib-copy'
grunt.loadNpmTasks 'grunt-contrib-concat'
grunt.loadNpmTasks 'grunt-contrib-haml'
grunt.loadNpmTasks 'grunt-contrib-sass'
grunt.loadNpmTasks 'grunt-contrib-watch'

Expand All @@ -13,7 +14,7 @@ module.exports = (grunt) ->
meta:
version: '0.2.0'

clean: ['bin/**/*.js']
clean: ['bin', 'build']

coffee:
demo:
Expand Down Expand Up @@ -81,6 +82,18 @@ module.exports = (grunt) ->
dest: 'bin/lib/'
src: ['*.js', 'rangy/*.js']

haml:
demo:
expand: true
dest: 'bin/'
src: ['demo/*.haml']
ext: ['.html']
tests:
expand: true
dest: 'bin/'
src: ['tests/*.haml']
ext: ['.html']

sass:
demo:
expand: true
Expand All @@ -95,6 +108,12 @@ module.exports = (grunt) ->
fuzzer:
files: ['tests/scripts/fuzzer.coffee']
tasks: ['coffee:fuzzer']
haml:
files: ['demo/*.haml']
tasks: ['haml:demo']
sass:
files: ['demo/styles/*.sass']
tasks: ['sass:demo']
src:
files: ['src/*.coffee', 'node_modules/tandem-core/src/*']
tasks: ['coffeeify:src', 'copy:build']
Expand All @@ -103,4 +122,4 @@ module.exports = (grunt) ->
tasks: ['coffee:unit']

# Default task.
grunt.registerTask 'default', ['clean', 'coffee', 'coffeeify', 'concat', 'copy']
grunt.registerTask 'default', ['clean', 'coffee', 'coffeeify', 'concat', 'copy', 'haml', 'sass']
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"grunt-contrib-coffee": "0.6.x",
"grunt-contrib-concat": "0.1.x",
"grunt-contrib-copy": "0.4.x",
"grunt-contrib-haml": "0.1.x",
"grunt-contrib-sass": "0.2.x",
"grunt-contrib-watch": "0.3.x",
"jade": "0.28.x",
Expand Down

0 comments on commit 2376fd2

Please sign in to comment.