Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: re-write the rest of the GUI logic to typescript #520

Merged
merged 9 commits into from
Nov 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16
18
2 changes: 1 addition & 1 deletion lib/gui/app.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

const _ = require('lodash');
const ToolRunner = require('./tool-runner');
const {ToolRunner} = require('./tool-runner');
shadowusr marked this conversation as resolved.
Show resolved Hide resolved

module.exports = class App {
static create(paths, hermione, configs) {
Expand Down
20 changes: 15 additions & 5 deletions lib/gui/index.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,30 @@
import type {CommanderStatic} from '@gemini-testing/commander';
import chalk from 'chalk';
import opener from 'opener';

import server from './server';
import {logger} from '../common-utils';
import * as utils from '../server-utils';
import {ReporterConfig} from '../types';

const {logError} = utils;

export interface GuiCliOptions {
autoRun: boolean;
open: unknown;
}

export interface GuiConfigs {
options: GuiCliOptions;
program: CommanderStatic;
pluginConfig: ReporterConfig;
}

interface ServerArgs {
paths: string[];
hermione: unknown;
guiApi: unknown;
configs: {
options: {
open: unknown,
}
};
configs: GuiConfigs;
}

export default (args: ServerArgs): void => {
Expand Down
295 changes: 0 additions & 295 deletions lib/gui/tool-runner/index.js

This file was deleted.

Loading
Loading