I'm trying to figure out a way to break out a watch
target from the rest of the block. Currently my watch target looks like this:
watch: {
options: {
// Parent-level options
},
coffee: {
// ...
},
stylus: {
// ...
},
test: {
options: {
// Test-specific options
},
files: {
// ...
}
tasks: {
// ...
}
}
}
The problem I'm facing is that my test options include a different livereload port than the top level, so I can simultaneously run grunt server
and grunt test
with livereload
ing and not have them interfere with each other.
Beneath that, I have a server
alias and a test
alias. What I'm looking for is to break the test
watch target out into another task so I can simply run watch
in my server alias and something like watch-test
for testing, such that the server task doesn't run the test target.
Any ideas? Please let me know if I've left out anything important or this isn't clear. Thanks!