generator-hyper-angular
Version:
Yeoman generator for AngularJS/Express/node.js apps emphasizing modularity, configuration, and testing
44 lines (39 loc) • 893 B
JavaScript
(function () {
'use strict';
var path = require('path'),
rootPath = path.normalize(__dirname + '/../..'),
env = process.env.NODE_ENV || 'development';
var config = {
development: {
root: rootPath,
app: {
name: '<%= _.slugify(_.humanize(projectName)) %>',
path: '/'
},
port: <%= expressPort %>,
protocol: '<%= expressProtocol %>',
server: '<%= expressServer %>'
},
test: {
root: rootPath,
app: {
name: '<%= _.slugify(_.humanize(projectName)) %>',
path: '/'
},
port: <%= expressPort %>,
protocol: '<%= expressProtocol %>',
server: '<%= expressServer %>'
},
production: {
root: rootPath,
app: {
name: '<%= _.slugify(_.humanize(projectName)) %>',
path: '/'
},
port: <%= expressPort %>,
protocol: '<%= expressProtocol %>',
server: '<%= expressServer %>'
}
};
module.exports = config[env];
})();