Skip to content

Commit

Permalink
Update Gruntfile and src to be more in line with docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon Tilley committed Feb 21, 2013
1 parent 14644eb commit 1c408f9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions Gruntfile.coffee
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
module.exports = (grunt) ->
grunt.loadNpmTasks 'grunt-coffeelint'
grunt.loadNpmTasks 'grunt-contrib-clean'
grunt.loadNpmTasks 'grunt-contrib-coffee'
grunt.loadNpmTasks 'grunt-contrib-concat'
grunt.loadNpmTasks 'grunt-contrib-uglify'
Expand All @@ -19,6 +20,10 @@ module.exports = (grunt) ->
level: 'error'
no_stand_alone_at:
level: 'error'
clean:
options:
force: true
build: ["compile/**", "build/**"]
coffee:
compile:
files: [
Expand All @@ -37,13 +42,13 @@ module.exports = (grunt) ->
banner: '<%= meta.banner %>'
dist:
src: 'compile/**/*.js'
dest: 'build/infinite-scroll.js'
dest: 'build/ng-infinite-scroll.js'
uglify:
options:
banner: '<%= meta.banner %>'
dist:
src: ['build/infinite-scroll.js']
dest: 'build/infinite-scroll.min.js'
src: ['build/ng-infinite-scroll.js']
dest: 'build/ng-infinite-scroll.min.js'
testacular:
unit:
options:
Expand All @@ -54,5 +59,5 @@ module.exports = (grunt) ->
runnerPort: 9101
keepalive: true

grunt.registerTask 'default', ['coffeelint', 'coffee', 'concat', 'uglify']
grunt.registerTask 'default', ['coffeelint', 'clean', 'coffee', 'concat', 'uglify']
grunt.registerTask 'test', ['testacular']
File renamed without changes.

0 comments on commit 1c408f9

Please sign in to comment.