Socket
Socket
Sign inDemoInstall

@eventbrite/brite-core

Package Overview
Dependencies
46
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @eventbrite/brite-core

A CLI around building Eventbrite applications.


Version published
Weekly downloads
6
increased by500%
Maintainers
2
Install size
171 MB
Created
Weekly downloads
 

Readme

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

Last updated on 28 Mar 2019

Did you know?

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc