How to use @theia/application-manager - 3 common examples

To help you get started, we’ve selected a few @theia/application-manager examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github eclipse-theia / theia / dev-packages / cli / src / theia.ts View on Github external
(function (): void {
    const projectPath = process.cwd();
    const appTarget: ApplicationProps.Target = yargs.argv['app-target'];
    const manager = new ApplicationPackageManager({ projectPath, appTarget });
    const target = manager.pck.target;

    yargs
        .command({
            command: 'start',
            describe: 'start the ' + manager.pck.target + ' backend',
            handler: async () => {
                try {
                    await manager.start(commandArgs('start'));
                } catch (err) {
                    console.error(err);
                    process.exit(1);
                }
            }
        })
        .command({
github eclipse-theia / theia / dev-packages / cli / src / theia.ts View on Github external
handler: () => {
            const { modules } = yargs.array('modules').argv;
            try {
                rebuild(target, modules);
            } catch (err) {
                console.error(err);
                process.exit(1);
            }
        }
    };
github eclipse-theia / theia / packages / extension-manager / src / node / application-project.ts View on Github external
createPackageManager(): ApplicationPackageManager {
        return new ApplicationPackageManager(Object.assign({
            log: this.logger.info.bind(this.logger),
            error: this.logger.error.bind(this.logger),
            registry: this.registry
        }, this.options));
    }

@theia/application-manager

Theia application manager API.

EPL-2.0
Latest version published 15 days ago

Package Health Score

87 / 100
Full package analysis

Similar packages