Skip to content

Commit

Permalink
Replace connect as browserSync
Browse files Browse the repository at this point in the history
  • Loading branch information
hueitan committed May 14, 2014
1 parent e3710c8 commit 41215a9
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
20 changes: 19 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,24 @@ module.exports = function (grunt) {
}
}
},
browserSync: {
dev: {
bsFiles: {
src: ['index.html', 'demo/**', 'dist/angular-validation.js']
},
options: {
host: "localhost",
ports: {
min: 8000,
max: 8100
},
server: {
baseDir: '.'
},
watchTask: true
}
}
},
watch: {
files: ['src/*.js'],
tasks: ['build'],
Expand All @@ -73,7 +91,7 @@ module.exports = function (grunt) {
require( "load-grunt-tasks" )( grunt );

// Register Task
grunt.registerTask('dev', ['connect', 'watch']);
grunt.registerTask('dev', ['browserSync', 'watch']);
grunt.registerTask('build', ['clean', 'concat', 'uglify'])

};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"devDependencies": {
"grunt": "~0.4.4",
"grunt-contrib-watch": "~0.6.1",
"grunt-contrib-connect": "~0.7.0",
"grunt-browser-sync": "~0.7.4",
"grunt-contrib-concat": "~0.4.0",
"grunt-contrib-uglify": "~0.4.0",
"grunt-contrib-copy": "~0.5.0",
Expand Down

0 comments on commit 41215a9

Please sign in to comment.