jasonm23/phoenix — pull request #4 by pascalw (2014-08-17 19:44:08+00:00)
Title: Allow config to require other files

@jasonm23 first of all thanks for maintaining this awesome project!

I'm using Phoenix on two machines and I wanted to be able to share generic configuration between the configurations of both my machines. This allows me to easily have machine specific configuration with most of the configuration shared between my machines.

This PR adds support for requiring/importing files into the `.phoenix.js` config file, in a node `require` fashion.
This is useful for reusability of configuration snippets.

Required files are automatically watched for changes, just like the main
`.phoenix.js` config file.

Usage:

```javascript
require('');
```

If the path is a relative path it's resolved relative to the (real)
location of the `.phoenix.js` file. If the `.phoenix.js` file is a symlink
the symlink is resolved before resolving the location of the required
file.

I would love to hear your feedback on my changes, is this something you would want to merge?