Skip to content

Commit

Permalink
feat: write empty changelog
Browse files Browse the repository at this point in the history
closes #30
  • Loading branch information
juancarlosfarah committed Oct 24, 2019
1 parent a966a4e commit 9801f74
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/initStarter.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,15 @@ const writeReadme = async (rootPath, name, type) => {
}
};

const writeChangeLog = async (rootPath) => {
const string = '# Change Log';
try {
await fs.writeFile(path.join(rootPath, 'CHANGELOG.md'), string, 'utf8');
} catch (e) {
console.error(e);
}
};

const initStarter = async (options = {}) => {
const {
starter = DEFAULT_STARTER,
Expand Down Expand Up @@ -200,6 +209,9 @@ const initStarter = async (options = {}) => {
// write readme
await writeReadme(projectDirectory, name, type);

// write empty changelog
await writeChangeLog(projectDirectory);

return commit(projectDirectory);
};

Expand Down

0 comments on commit 9801f74

Please sign in to comment.