Skip to content

Commit

Permalink
Adds .gitignore file to default template
Browse files Browse the repository at this point in the history
  • Loading branch information
npverni committed Jul 22, 2016
1 parent 9c31d4f commit e7642ae
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ module.exports = function(hostPath, appName, verbose) {
// Copy the files for the user
fs.copySync(path.join(selfPath, 'template'), hostPath);

// Rename files
[
['gitignore', '.gitignore'],
].forEach(function(nameMap) {
fs.move(path.join(hostPath, nameMap[0]), path.join(hostPath, nameMap[1]), []);
});

// Run another npm install for react and react-dom
console.log('Installing react and react-dom from npm...');
// TODO: having to do two npm installs is bad, can we avoid it?
Expand Down
7 changes: 7 additions & 0 deletions template/gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# See http://help.github.com/ignore-files/ for more about ignoring files.

# dependencies
/node_modules

# misc
npm-debug.log

0 comments on commit e7642ae

Please sign in to comment.