-
Notifications
You must be signed in to change notification settings - Fork 11
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
please support config file. #14
Comments
I have checked your code and find that config file is 'path/to/dir/esdoc.json'. please use the input string user-defined path instead when config is a STRING. |
So the solution is to require your config file like so |
This plugin supports ESDoc config file. The real issue is in the name of the file it looks for: tt should look for
In the meantime, you could do something like this ES6 code, which I myself use: let esdocConfigPath = path.join(process.cwd(), '.esdoc.json'), data, esdocConfig;
if (fs.existsSync(esdocConfigPath)) {
data = fs.readFileSync(esdocConfigPath, { encoding: 'utf8' });
esdocConfig = !data ? {} : JSON.parse(data);
console.log('Found ESDoc config in .esdoc.json!');
} else {
esdocConfig = {};
} |
the .esdocrc file can use in esdoc module. I didn't find a way to use config-file way in gulp-esdoc.
The text was updated successfully, but these errors were encountered: