mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
open the browser
This commit is contained in:
parent
46b3c78b8b
commit
ab76c92c18
10
Gruntfile.js
10
Gruntfile.js
|
@ -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']);
|
||||
|
||||
}
|
||||
|
|
|
@ -11,7 +11,7 @@ Contents:
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
|
||||
test
|
||||
|
||||
Indices and tables
|
||||
==================
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user