Skip to content
This repository has been archived by the owner on Aug 25, 2018. It is now read-only.

Commit

Permalink
Merge pull request #115 from firebase/2-update
Browse files Browse the repository at this point in the history
0.5 release
  • Loading branch information
davideast committed Nov 21, 2014
2 parents e289555 + dbf36ea commit 69a2431
Show file tree
Hide file tree
Showing 32 changed files with 3,989 additions and 1,058 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
dist/
test/coverage/
node_modules/
bower_components/
bower_components/
test/coverage
30 changes: 25 additions & 5 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ module.exports = function(grunt) {
grunt.initConfig({
concat: {
dist: {
src: ['src/backfire.js'],
dest: 'dist/backfire.js'
src: ['src/backbonefire.js'],
dest: 'dist/backbonefire.js'
}
},

Expand All @@ -17,7 +17,7 @@ module.exports = function(grunt) {
},
app : {
files : {
'dist/backfire.min.js' : ['src/backfire.js']
'dist/backbonefire.min.js' : ['src/backbonefire.js']
}
}
},
Expand All @@ -44,12 +44,12 @@ module.exports = function(grunt) {
'unused' : true,
'trailing' : true
},
all : ['src/backfire.js']
all : ['src/backbonefire.js']
},

watch : {
scripts : {
files : 'src/backfire.js',
files : 'src/backbonefire.js',
tasks : ['default', 'notify:watch'],
options : {
interrupt : true
Expand All @@ -75,7 +75,24 @@ module.exports = function(grunt) {
autowatch: false,
singleRun: true
}
},

copy: {
main: {
src: 'src/backbonefire.js',
dest: 'examples/todos/js/backbonefire.js',
},
},

serve: {
options: {
port: 9000,
'serve': {
'path': 'examples/todos'
}
}
}

});

grunt.loadNpmTasks('grunt-contrib-concat');
Expand All @@ -84,10 +101,13 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-notify');
grunt.loadNpmTasks('grunt-karma');
grunt.loadNpmTasks('grunt-copy');
grunt.loadNpmTasks('grunt-serve');

// Unit tests
grunt.registerTask('test', ['karma:unit']);

grunt.registerTask('build', ['jshint', 'concat', 'uglify']);
grunt.registerTask('default', ['build', 'test']);
grunt.registerTask('todo', ['build', 'serve']);
};
Loading

0 comments on commit 69a2431

Please sign in to comment.