open the browser

This commit is contained in:
Dave Snider 2013-11-03 13:59:15 -08:00
parent 46b3c78b8b
commit ab76c92c18
3 changed files with 10 additions and 3 deletions

View File

@ -4,11 +4,16 @@ module.exports = function(grunt) {
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
grunt.initConfig({
open : {
dev: {
path: 'http://localhost:1919'
}
},
connect: {
server: {
options: {
port: 9000,
port: 1919,
base: 'demo_docs/build/html'
}
}
@ -86,8 +91,9 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-compass');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-open');
grunt.registerTask('default', ['bower_update','connect','watch']);
grunt.registerTask('default', ['exec:bower_update','clean:src','exec:build_sphinx','connect','open','watch']);
grunt.registerTask('build', ['clean:dist','compass:dist','copy:dist']);
}

View File

@ -11,7 +11,7 @@ Contents:
.. toctree::
:maxdepth: 2
test
Indices and tables
==================

View File

@ -10,6 +10,7 @@
"grunt-contrib-connect": "0.5.0",
"grunt-contrib-copy": "0.4.1",
"grunt-contrib-clean": "0.5.0",
"grunt-open": "0.2.2",
"matchdep": "~0.1.2"
}
}