require("tasks/observe")(grunt, gruntModuleDirectory)
this function registers a grunt task to run tests (and optionally documentation) on file changes. The below tasks are created
watch:libfor watching lib file changes and runninglib-queuewhen files changewatch:testfor watching test file changes and runningtest-queuewhen files change. This task is only available if test files exist.watch:buildfor watching build file changes and runningbuild-queuewhen files changelib-queuewhich runs the jshint and test scripts for lib files. If docs option is set, instead of jshint and test scripts, the documentation script is run.test-queuewhich runs the jshint script for lib files and test scripts. If the test files do not exist, this script is not generated.build-queuewhich runs the jshint and test scripts for build fileswatchwatches for lib, test and script changes togetherobserveruns the initial list of tasks and starts the watchdeafaultis an alias for observe
Parameters:
| Name | Type | Description |
|---|---|---|
grunt |
* | the grunt object |
gruntModuleDirectory |
string | the directory where the grunt modules are located |
- Source:
this module registers a grunt task to run tests (and optionally documentation) on file changes.
- Source: