Socket
Book a DemoInstallSign in
Socket

@eventbrite/brite-core

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eventbrite/brite-core

A CLI around building Eventbrite applications.

0.0.6
latest
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
2
Weekly downloads
 
Created
Source

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.

FAQs

Package last updated on 28 Mar 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.