I would love to be able to run raneto by creating my content on my own git repo, configure my own package.json
, do a npm install --save raneto
and then add my own entry point similar to what you have on bin\www
:
var express = require('express'),
path = require('path'),
...
module.exports = function(options) {
options = options || {}
// Setup views
...
// Setup Express
app.use(favicon(options.favicon || (__dirname +'/public/favicon.ico')));
...
if (options.static) {
app.use(express.static(options.static));
}
app.use(express.static(path.join(__dirname, 'public')));
...
// Setup config
extend(raneto.config, config, options.config || {});
...
var app = require('../app')({ config: require("./config"), static: "override" });
app.set('port', process.env.PORT || 3000);
...
To provide an override folder for raneto resources, and a custom config.
What do you guys think? Does it make sense? Should I submit a PR? Or is there other way to do this?