Hi Tim That is really what I was asking. I'm already embedding it but I need to pick up core, db and vfs to do what I need to do. I tried to require them directly (lit/core, lit/libs/core and ./deps/lit/libs/core) but didn't seem to manage it. It always seemed to pickup autocore for some reason. Need to study the require code to figure it out.
Currently I just use my own init.lua but I'd prefer not to. Martin On Friday, May 29, 2015 at 6:58:20 PM UTC+2, Tim Caswell wrote: > > Also lit is available as a lit package you can depend on and use the code > from your app as a library. The default exports is autocore, but there is > nothing stopping you from reaching in and grabbing stuff directly. > > On Fri, May 29, 2015 at 11:57 AM, Tim Caswell <[email protected] > <javascript:>> wrote: > >> You can customize the litconfig to use via environment variables and you >> can customize where the database on disk is via the config file. But if >> you want to change the behavior of lit itself beyond this you'll need to >> build a custom lit. >> >> Luckilly this is trivially easy. Also note that you can use luvi to run >> your custom lit without having to constantly rebuild the binary. >> >> luvi path/to/custom/lit -- lit arguments >> >> >> >> On Fri, May 29, 2015 at 10:58 AM, Martin Croome <[email protected] >> <javascript:>> wrote: >> >>> Hi. I'm (ab)using lit for a specific task where I need it to behave in a >>> slightly different way. This means that I have to require db and core >>> rather than pass via autocore. Is there any way to do this without creating >>> my own version of the lit package? >>> >>> Thanks >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "luvit" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected] <javascript:>. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> > -- You received this message because you are subscribed to the Google Groups "luvit" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
