Repository navigation
Conversation
|
Couple of comments
+1 on the return statement fix |
|
|
gulpfile locating: I would prefer if we used a 3rd party module for walking up to find the gulpfile (grunt uses findup-sync for this) Testing/chdir: Don't do a chdir in the function - do it before the gulpfile is loaded. I want the getGulpFile function to have no side effects. As for require.extensions being deprecated: If they ever remove it or an alternative arises I will revisit changing it. The changes you put in break support for coffee-script (which I personally use). |
|
+1 for findup-sync You're still doing a |
|
@jsdevel the function name is what determines if it should have side effects. get(something) should not set something externally as well. set(something) or load(something) is perfectly fine to have some side effects in |
|
@contra I disagree about set and load in relation to external side effects. setProperties() would be strange if it did a chdir. I think a better option would be to scope if (!gulpFile) {
cliGulp.log(chalk.red('No Gulpfile found'));
process.exit(1);
} else {
process.chdir(path.dirname(gulpFile));
}I'm happy with your solution though. Now I can |
|
2.4 is published let me know if your problem is still unsolved |
No description provided.