1.1.5 • Published 10 years ago

hubl-server v1.1.5

Weekly downloads
1
License
MIT
Repository
github
Last release
10 years ago

hubl-server NPM version Build Status Dependency Status

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

1.1.5

10 years ago

1.1.4

10 years ago

1.1.3

10 years ago

1.1.2

10 years ago

1.1.1

10 years ago

1.1.0

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago