hubl-server
v1.1.5
Published
Wrapper for the HubL Development Server
Downloads
10
Readme
hubl-server
Wrapper for the HubL Development Server
Install
$ npm install --save-dev hubl-server
Usage
var hublServer = require('hubl-server');
hublServer({
contextBaseDir: path.join(__dirname, 'context'),
templateBaseDir: path.join(__dirname, 'templates')
}).then(function(server) {
server.stdout.on('data', function(data) {
process.stdout.write(data);
});
});
Options
contextBaseDir
and templateBaseDir
are required, all others are optional.
const options = {
contextBaseDir: 'context',
templateBaseDir: 'build/templates',
extensionResourceMappings: {
1: 'custom/system/css/main.css'
},
http: {
port: 8080,
adminPort: 8080,
bindHost: '127.0.0.1',
shutdownGracePeriod: '0s'
},
logging: {
level: 'ERROR',
loggers: {
'com.yammer.dropwizard.cli': 'INFO',
'com.hubspot.content': 'INFO'
}
}
};
License
MIT © Carlos Antonio