-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error with dir.servers #4
Comments
Oh yes, be sure to use some sort of pattern match for the the grunt.initConfig({
watch: {
server: {
files: 'path/to/**/*.js`,
tasks: [ 'express-server', 'livereload' ]
}
}
}); In my project, I have "constants" to simplify things a bit: grunt.initConfig({
dirs: {
server: 'path/to/server/',
client: 'path/to/client'
},
files: {
all: '**/*',
js: '**/*.js',
html: '**/*.html'
},
watch: {
server: {
files: '<%= dirs.server + files.all %>',
tasks: [ 'express-server', 'livereload' ]
}
}
}); This way, What would you prefer the readme to say that would make more sense? |
Ahhh, yeah I think just including the constants in the example...thanks
|
I'm trying to get this setup on my project and it seems that the 'dirs.server' in the temlate is undefined. Am I supposed to add that in somewhere?
Running "regarde" task
Warning: An error occurred while processing a template (dirs is not defined). Use --force to continue.
Aborted due to warnings.
The text was updated successfully, but these errors were encountered: