Skip to content

Commit

Permalink
Added grunt-contrib-connect
Browse files Browse the repository at this point in the history
  • Loading branch information
wilddeer committed Jul 11, 2015
1 parent a322dbb commit 63682f2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
16 changes: 14 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,21 @@ module.exports = function(grunt) {
},

watch: {
options: {
atBegin: true
},
files: ['src/**/*.js', 'src/**/*.css', 'package.json'],
tasks: ['build']
},

connect: {
server: {
options: {
port: 8002,
hostname: '*'
}
}
}
});

// build
Expand All @@ -104,8 +116,8 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-bump');
grunt.loadNpmTasks('grunt-shell');
grunt.loadNpmTasks('grunt-contrib-connect');
grunt.registerTask('build', ['uglify', 'concat']);
grunt.registerTask('release', ['bump-only:patch', 'uglify', 'concat', 'bump-commit', 'shell:push', 'shell:pushTags']);
grunt.registerTask('w', ['build', 'watch']);
grunt.registerTask('default', 'build');
grunt.registerTask('default', ['connect', 'watch']);
};
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"grunt-contrib-concat": "~0.3.0",
"grunt-contrib-watch": "~0.5.3",
"grunt-bump": "0.0.14",
"grunt-shell": "~0.7.0"
"grunt-shell": "~0.7.0",
"grunt-contrib-connect": "~0.10.1"
}
}

0 comments on commit 63682f2

Please sign in to comment.