@@ -143,14 +143,16 @@ module.exports = function(grunt) {
143
143
options : {
144
144
args : {
145
145
seleniumPort : 4444 ,
146
- specs : [ '.tmp/e2e/**/*.spec.js' , 'test/e2e/**/*.spec.js' ]
146
+ baseUrl : 'http://localhost:9999' ,
147
+ specs : [ '.tmp/doc-scenarios/**/*.spec.js' , 'test/e2e/**/*.spec.js' ]
147
148
}
148
149
}
149
150
}
150
151
// docs: {
151
152
// options: {
152
153
// args: {
153
- // baseUrl: 'http://localhost:9999'
154
+ // seleniumPort: 4444,
155
+
154
156
// }
155
157
// }
156
158
// }
@@ -224,7 +226,7 @@ module.exports = function(grunt) {
224
226
}
225
227
} ,
226
228
protractor : {
227
- files : [ '.tmp/e2e /**/*.spec.js' , 'test/e2e/**/*.spec.js' , '<%= dist %>/docs/** '] ,
229
+ files : [ '.tmp/doc-scenarios /**/*.spec.js' , 'test/e2e/**/*.spec.js' ] ,
228
230
tasks : [ 'protractor:auto' ]
229
231
} ,
230
232
@@ -292,12 +294,13 @@ module.exports = function(grunt) {
292
294
ngdocs : {
293
295
options : {
294
296
dest : '<%= dist %>/docs' ,
297
+ testingUrlPrefix : '<%= protractor.auto.options.args.baseUrl %>/docs/#/' ,
295
298
scripts : [
296
299
'//ajax.googleapis.com/ajax/libs/angularjs/1.2.4/angular.js' ,
297
300
'http://ajax.googleapis.com/ajax/libs/angularjs/1.2.4/angular-animate.js' ,
298
301
'bower_components/google-code-prettify/src/prettify.js' ,
299
302
'node_modules/marked/lib/marked.js' ,
300
- 'http:// <%= site %>/release/<%= pkg.name %>.js'
303
+ '<%= protractor.auto.options.args.baseUrl %>/release/<%= pkg.name %>.js'
301
304
] ,
302
305
styles : [
303
306
'misc/doc/css/prettify.css' ,
@@ -401,7 +404,7 @@ module.exports = function(grunt) {
401
404
// Testing tasks
402
405
// grunt.registerTask('test:ci', ['clean', 'jshint', 'ngtemplates', 'karma:sauce']);
403
406
grunt . registerTask ( 'test:ci' , [ 'clean' , 'jshint' , 'ngtemplates' , 'serialsauce' ] ) ;
404
- grunt . registerTask ( 'test:docs' , [ 'connect:' , 'protractor:docs' ] ) ;
407
+ grunt . registerTask ( 'test:docs' , [ 'connect:testserver ' , 'protractor:docs' ] ) ;
405
408
grunt . registerTask ( 'test:e2e' , [ 'protractor:singlerun' ] ) ;
406
409
407
410
// Test
@@ -417,12 +420,4 @@ module.exports = function(grunt) {
417
420
} ) ;
418
421
419
422
grunt . registerTask ( 'release' , [ 'clean' , 'build' , 'cut-release' , 'gh-pages' ] ) ;
420
-
421
- grunt . registerTask ( 'blah' , function ( ) {
422
- var ngdoc = require ( './node_modules/grunt-ngdocs/src/ngdoc.js' ) ;
423
-
424
- console . log ( ngdoc ) ;
425
- } ) ;
426
-
427
- grunt . registerTask ( 'butt' , [ 'shell:protractor-start' , 'watch:protractor' ] ) ;
428
423
} ;
0 commit comments