1.1.1 • Published 9 months ago

@garage44/bunchy v1.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

Bunchy

Bunchy is a simple, lightweight replacement for LiveReload, designed to work seamlessly with Elysia.js and yargs.

Features

  • Easy integration with Elysia.js
  • Supports yargs for command-line argument parsing
  • Provides live reloading functionality for rapid development
  • Minimal setup required

Usage

import {bunchyService, bunchyArgs} from '@garage44/bunchy'

const bunchyConfig = {
    common: [
        path.resolve(path.join(import.meta.dir, '../')),
    ],
    reload_ignore: ['/tasks/code'],
    workspace: import.meta.dir,
}

const argums = yargs(hideBin(process.argv))
bunchyArgs(argums, bunchyConfig)
.command('start', 'Start the Expressio service', () => {}, async(argv) => {

    await loadWorkspace(config, translator)
    const app = new Elysia()

    if (process.env.BUN_ENV === 'development') {
        await bunchyService(app, bunchyConfig)
    }

    app.listen({
        hostname: argv.host,
        port: argv.port
    })
})
1.1.1

9 months ago

1.1.0

11 months ago

1.0.0

12 months ago