ichigoo
Version:
Static site generator with React and GraphQL
19 lines (14 loc) • 356 B
JavaScript
/**
* Read and return config from main project's
* ichigoo-config.js
*/
const resolveCwd = require("resolve-cwd");
const IchigooConfig = () => {
const cmd = resolveCwd.silent("./ichigoo-config.js");
if (!cmd) {
throw new Error("There's no config file");
}
const config = require(cmd);
return config;
};
module.exports = IchigooConfig;