@roots/bud-framework
Overview
This is the core framework leveraged by @roots/bud. You may find it useful in other projects. It's kind of a bootstrap-y laravel/adonis style container-based framework.
Installation
yarn add @roots/bud-framework
Some things you can do with it
Attach things to it.
import {framework} from '@roots/bud-framework'
framework.apply('method', () =>
console.log('attach a method to it'),
)
const instance = new framework()
instance.method()
Log stuff.
instance.logger.info({data: 100}, 'Logged message')
Create containers for storing, accessing and manipulating stuff.
instance.bind('things', {
some: {
thing: 100,
},
})
instance.things.get('some.thing')
instance.things.set('some.thang', 200)
instance.things.get('some')
It definitely does other helpful stuff. As this is a lower-level utility it is largely undocumented, at the moment..
Contributing
Contributions are welcome from everyone.
We have contributing guidelines to help you get started.
Help support our open-source development efforts by becoming a patron.
Keep track of development and community news.