Adding baseline configuration files

Now let's add some of useful files to our project:

  1. Create a file called .editorconfig and save it in the chapter-03 folder with the following code:
          # http://editorconfig.org 
          root = true 
     
          [*] 
          indent_style = tab 
          indent_size = 4 
          charset = utf-8 
          trim_trailing_whitespace = true 
          insert_final_newline = true 
     
          [*.md] 
          trim_trailing_whitespace = false 
    
  2. Create a file called .gitignore, save it in chapter-03, and include the following code:
     # Logs logs *.log # Runtime data pids *.pid *.seed # Directory for instrumented libs generated by jscoverage/JSCover lib-cov # Coverage directory used by tools like istanbul coverage # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) .grunt # node-waf configuration ...

Get Node.js 6.x Blueprints now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.