exports.writeFile = (filePath, file, message) => {
// check if store.name if there is add it to the filePath argument.
fs.writeFile(filePath, file, err => {
if (err) console.error(err);
message ? log(message) : "";
});
};
exports.writeFileSync = (filePath, file, message) => {
try {
fs.writeFileSync(filePath, file)
message ? log(message) : "";
} catch (err) {
console.error("Couldn't create file", err)
}
}
This could allow for the addBackend to be refactored to use the current new/backend.js file. And it could change the use of name in the project. We can ask for it if it's not a process.argv argument and then put it in the store.
This could allow for the addBackend to be refactored to use the current new/backend.js file. And it could change the use of name in the project. We can ask for it if it's not a process.argv argument and then put it in the store.