|
19 | 19 | * start the connect server and leave it running; the tests
|
20 | 20 | * can then be opened at localhost:9001/test/test.html
|
21 | 21 | *
|
| 22 | + * grunt yui:dev - This rebuilds the inline documentation. It also rebuilds |
| 23 | + * each time a change to the source is detected. You can preview |
| 24 | + * the reference at localhost:9001/test/test.html |
| 25 | + * |
22 | 26 | * Note: `grunt test:nobuild` will skip the build step when running the tests,
|
23 | 27 | * and only runs the test files themselves through the linter: this can save
|
24 | 28 | * a lot of time when authoring test specs without making any build changes.
|
@@ -231,7 +235,8 @@ module.exports = function(grunt) {
|
231 | 235 | run: true,
|
232 | 236 | log: true,
|
233 | 237 | logErrors: true,
|
234 |
| - timeout: 100000 |
| 238 | + timeout: 100000, |
| 239 | + growlOnSuccess: false |
235 | 240 | }
|
236 | 241 | }
|
237 | 242 | },
|
@@ -328,6 +333,11 @@ module.exports = function(grunt) {
|
328 | 333 | }
|
329 | 334 | }
|
330 | 335 | },
|
| 336 | + open: { |
| 337 | + yui: { |
| 338 | + path: 'http://0.0.0.0:9001/docs/reference/' |
| 339 | + } |
| 340 | + }, |
331 | 341 | 'saucelabs-mocha': {
|
332 | 342 | all: {
|
333 | 343 | options: {
|
@@ -391,6 +401,7 @@ module.exports = function(grunt) {
|
391 | 401 | // Load the external libraries used.
|
392 | 402 | grunt.loadNpmTasks('grunt-contrib-compress');
|
393 | 403 | grunt.loadNpmTasks('grunt-contrib-connect');
|
| 404 | + grunt.loadNpmTasks('grunt-open'); |
394 | 405 | grunt.loadNpmTasks('grunt-contrib-copy');
|
395 | 406 | grunt.loadNpmTasks('grunt-eslint');
|
396 | 407 | grunt.loadNpmTasks('grunt-contrib-watch');
|
@@ -433,6 +444,14 @@ module.exports = function(grunt) {
|
433 | 444 | grunt.registerTask('test:nobuild', ['eslint:test', 'connect', 'mocha']);
|
434 | 445 | grunt.registerTask('yui', ['yuidoc:prod', 'minjson', 'typescript']);
|
435 | 446 | grunt.registerTask('yui:test', ['yuidoc:prod', 'connect', 'mocha:yui']);
|
| 447 | + grunt.registerTask('yui:dev', [ |
| 448 | + 'yui:prod', |
| 449 | + 'build', |
| 450 | + 'connect', |
| 451 | + 'open:yui', |
| 452 | + 'watch:yui' |
| 453 | + ]); |
| 454 | + grunt.registerTask('yui:build', ['requirejs:yuidoc_theme', 'yui']); |
436 | 455 | grunt.registerTask('default', ['test']);
|
437 | 456 | grunt.registerTask('saucetest', ['connect', 'saucelabs-mocha']);
|
438 | 457 | };
|
0 commit comments