UNPKG

@revgaming/global

Version:

application bundle to globalize with ioc-like loader and localizations

22 lines (20 loc) 750 B
import App from '@revgaming/app' import {bootConfig} from './bootstraps/config' import {bootLanguages} from './bootstraps/languages' import {bootLocation} from '@revgaming/location' import {bootAppearance} from './bootstraps/appearance' import {bootMedia} from './bootstraps/media' import {bootCurrencies} from './bootstraps/currencies' import stringPlugins from '@revgaming/strings' stringPlugins() export default function (opts = {}) { return new App({name: 'global'}) .dispatchBoot() .load(bootConfig(opts.config)) .load(bootLanguages(opts.languages)) .load(bootLocation(opts.location)) .load(bootAppearance(opts.appearance)) .load(bootMedia(opts.media)) .load(bootCurrencies(opts.currencies)) .dispatchInit() }