瀏覽代碼

Refactor Node.gitignore with comments

The "build" directory is lost in this refactor, as many JS projects
do wish to include a minified/concatenated version of their source
in the "build" folder in source control.
Stuart P. Bentley 11 年之前
父節點
當前提交
d79a88b29f
共有 1 個文件被更改,包括 20 次插入7 次删除
  1. 20 7
      Node.gitignore

+ 20 - 7
Node.gitignore

@@ -1,15 +1,28 @@
-lib-cov
-*.seed
+# Semi-general patterns
+
+## Logs
+logs
 *.log
+
+## Runtime data
+pids
+*.pid
+*.seed
+
+## Run / build output
+results
 *.csv
 *.dat
 *.out
-*.pid
 *.gz
 
-pids
-logs
-results
-build
+# JS-specific patterns
+
+## Directory for files generated by jscoverage/JSCover
+lib-cov
+
+# Node-specific patterns
 
+## You may want to comment this out in certain scenarios:
+## see http://www.futurealoof.com/posts/nodemodules-in-git.html
 node_modules