UNPKG

@kitmi/jacaranda

Version:

JavaScript application framework

18 lines (13 loc) 518 B
import RuntimeRegistry from './helpers/RuntimeRegistry'; export const NS_APP = 'apps'; export const NS_LIB = 'libs'; export const NS_FEAT = 'features'; export const NS_MIDDLEWARE = 'middlewares'; export const NS_ROUTER = 'routers'; export const NS_MODULE = 'modules'; export const K_ENV = 'env'; export const runtime = new RuntimeRegistry(); runtime.register('runtimePath', __dirname); runtime.loadModule = (name, m) => runtime.register(NS_MODULE, name, m); export const Runtime = runtime; export default runtime;