Adding configuration files

Dot files are very common in all web applications; these files are responsible for various tasks, including configuration of version control and text editor configuration, among many other tasks.

Let's add our first configuration file for Bower package manager (for more information: http://bower.io/):

  1. Create a file called .bowerrc and add the following code:
          { 
            "directory": "public/components", 
            "json": "bower.json" 
          } 
     
    

    This file tells Bower to install all the application components at the public/components; otherwise, they will be installed at the root application folder.

  2. Create a file called .editorconfig and add the following code:
     # http://editorconfig.org root = true [*] indent_style = tab indent_size = 4 end_of_line = ...

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.