kalisio/kBilling

View on GitHub
src/index.js

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
import makeDebug from 'debug'
import services from './services'
import * as hooks from './hooks'

// We faced a bug in babel so that transform-runtime with export * from 'x' generates import statements in transpiled code
// Tracked here : https://github.com/babel/babel/issues/2877
// We tested the workaround given here https://github.com/babel/babel/issues/2877#issuecomment-270700000 with success so far
export { hooks }
export * from './common'

const debug = makeDebug('kalisio:kBilling')

export default function init () {
  const app = this

  debug('Initializing kalisio billing')

  app.configure(services)
}