@eventbrite/brite-core
A CLI around building Eventbrite applications.
Last updated 3 months ago by eventbrite-eng .
ISC · Original npm · Tarball · package.json
$ cnpm install @eventbrite/brite-core 
SYNC missed versions from official npm registry.

Brite Core

The main core source code for Brite

import brite from '@eventbrite/brite-core';

brite.run('start', {
    /* options */
});

Adding commands

Brite operates around the idea of creating commands.

In the ./commands directory, you will find existing commands, and adding one is super easy.

Just drop one in using the same format as the existing commands...

export default class BriteStartCommand extends BriteCommand {
    public defaultEnvironment = 'developement';

    public async execute() {
        const result = await someAsyncThing();

        return {
            code: 0,
            message: 'Ran thing successfully!'
        }
    }
}

Set the environment your command will run in by settring defaultEnvironment.

And add the new command to ./commands/index.

And that's it!

Resolving the promise or returning message as a part of your command result will log the output.

Current Tags

  • 0.0.6                                ...           latest (3 months ago)

6 Versions

  • 0.0.6                                ...           3 months ago
  • 0.0.5                                ...           5 months ago
  • 0.0.4                                ...           5 months ago
  • 0.0.3                                ...           5 months ago
  • 0.0.2                                ...           5 months ago
  • 0.0.1                                ...           5 months ago
Downloads
Today 0
This Week 0
This Month 7
Last Day 0
Last Week 7
Last Month 12
Dev Dependencies (7)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |