basecamp-guide
Version:
Task automator for the Basecamp Framework.
52 lines (42 loc) • 1.13 kB
JavaScript
var p = require('path');
/*
|----------------------------------------------------------------
| Master Configuration
|----------------------------------------------------------------
|
| This file contains the proper paths and options for the
| CommandLineTool.
|
| To override a setting you may create an basecamp.json file
| within your project root. As JSON, modify any settings contained
| here and they'll take precedence over these defaults. Easy!
|
*/
var config = {
exportPaths : {
root : './',
stylus : 'stylus',
views : 'views',
vue : 'js',
js : 'js'
},
packagePaths : {
design : 'vendor/patrikkernke/basecamp-design/src',
modules : 'vendor/patrikkernke/basecamp-modules/src'
}
};
/**
* Fetch a config item, using a string dot-notation.
*
* @param {string} path
* @return {string}
*/
config.get = function(path) {
var current = config;
var segments = path.split('.');
segments.forEach(function(segment) {
current = current[segment];
});
return current;
};
module.exports = config;