Open crguezl opened 2 years ago
The current code in file config.ts is to check if the file exist and otherwise to create a minimal file from the template:
config.ts
export let config: configType; if (!fs.existsSync(configPath)) { console.log("No config file detected"); console.log("Creating new config..."); fs.copyFileSync(__dirname + "/../utils/config.template.json", configPath, fs.constants.COPYFILE_EXCL); }
Alternative to explore:
github-user/gh-edu-profile
config.json
gh-edu-profile
It is a lot of work
b8aa6085f6336f23154e653714aa87da27c2af7f
update
Improvement to keep the configuration file in a separated user repo
The current code in file
config.ts
is to check if the file exist and otherwise to create a minimal file from the template:Alternative to explore:
github-user/gh-edu-profile
in GitHub and if soconfig.json
from there by cloning the repo,gh-edu-profile
in the extension foldergh-edu-profile
github-user/gh-edu-profile
and push the config fileIt is a lot of work