Skip to content

Commit 166f701

Browse files
Feat: Add a .gitignore file when creating a project (#19)
1 parent a7e045f commit 166f701

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/cli/create.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ const create = function (name) {
2727
mkdir('-p', `${name}/.dpd`);
2828
mkdir('-p', `${name}/.dpd/pids`);
2929
('').to(`${name}/.dpd/pids/mongod`);
30+
('# npm\r\nnode_modules/\r\nnpm-debug.log\r\n\r\n# deployd\r\n.dpd/\r\ndata/')
31+
.to(`${name}/.gitignore`);
3032
rm(ls('-R', name).filter(p => path.basename(p) === 'PLACEHOLDER').map(p => `${name}/${p}`));
3133

3234
process.chdir(name);

0 commit comments

Comments
 (0)