repo stringlengths 7 64 | file_url stringlengths 81 338 | file_path stringlengths 5 257 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:25:31 2026-01-05 01:50:38 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
beemojs/beemo | https://github.com/beemojs/beemo/blob/9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690/packages/core/src/contexts/DriverContext.ts | packages/core/src/contexts/DriverContext.ts | import { Driver } from '../Driver';
import { Arguments, Argv } from '../types';
import { ConfigContext } from './ConfigContext';
export interface DriverContextOptions {
concurrency: number;
graph: boolean;
workspaces: string;
}
export type DriverContextParams = [string];
export class DriverContext<
O extends Dri... | typescript | MIT | 9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690 | 2026-01-05T04:59:40.018050Z | false |
beemojs/beemo | https://github.com/beemojs/beemo/blob/9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690/packages/core/src/contexts/ScriptContext.ts | packages/core/src/contexts/ScriptContext.ts | import { Script } from '../Script';
import { Arguments } from '../types';
import { Context } from './Context';
export interface ScriptContextOptions {
concurrency: number;
graph: boolean;
workspaces: string;
}
export type ScriptContextParams = [string];
export class ScriptContext extends Context<ScriptContextOpti... | typescript | MIT | 9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690 | 2026-01-05T04:59:40.018050Z | false |
beemojs/beemo | https://github.com/beemojs/beemo/blob/9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690/packages/core/src/contexts/ScaffoldContext.ts | packages/core/src/contexts/ScaffoldContext.ts | import { Arguments } from '../types';
import { Context } from './Context';
export interface ScaffoldContextOptions {
dry: boolean;
}
export type ScaffoldContextParams = [string, string, string];
export class ScaffoldContext extends Context<ScaffoldContextOptions, ScaffoldContextParams> {
action: string;
generato... | typescript | MIT | 9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690 | 2026-01-05T04:59:40.018050Z | false |
beemojs/beemo | https://github.com/beemojs/beemo/blob/9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690/packages/core/src/contexts/Context.ts | packages/core/src/contexts/Context.ts | import camelCase from 'lodash/camelCase';
import trim from 'lodash/trim';
import { PrimitiveType } from '@boost/args';
import { FilePath, Path } from '@boost/common';
import { Context as BaseContext } from '@boost/pipeline';
import { Arguments, Argv } from '../types';
export interface ConfigPath {
driver: string;
pa... | typescript | MIT | 9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690 | 2026-01-05T04:59:40.018050Z | false |
beemojs/beemo | https://github.com/beemojs/beemo/blob/9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690/packages/core/src/contexts/ConfigContext.ts | packages/core/src/contexts/ConfigContext.ts | import { Driver } from '../Driver';
import { Context } from './Context';
export class ConfigContext<O extends object = {}> extends Context<O, string[]> {
// List of drivers involved in the current pipeline
drivers: Set<Driver> = new Set();
/**
* Add a driver as a dependency.
*/
addDriverDependency(driver: Dri... | typescript | MIT | 9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690 | 2026-01-05T04:59:40.018050Z | false |
beemojs/beemo | https://github.com/beemojs/beemo/blob/9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690/packages/core/src/streams/BatchStream.ts | packages/core/src/streams/BatchStream.ts | /* eslint-disable promise/prefer-await-to-callbacks */
/* eslint-disable no-underscore-dangle */
import { Transform, TransformCallback } from 'stream';
const WAIT_THRESHOLD = 500;
export interface BatchStreamOptions {
wait?: number;
}
export class BatchStream extends Transform {
bufferedBatch: Buffer | null = nul... | typescript | MIT | 9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690 | 2026-01-05T04:59:40.018050Z | false |
beemojs/beemo | https://github.com/beemojs/beemo/blob/9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690/packages/core/tests/Config.test.ts | packages/core/tests/Config.test.ts | import { Config } from '../src/Config';
describe('Config', () => {
let config: Config;
beforeEach(() => {
config = new Config('beemo');
});
it('errors if no module', () => {
expect(() => {
config.configure({ module: '' });
}).toThrowErrorMatchingSnapshot();
});
it('doesnt error if module is defined w... | typescript | MIT | 9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690 | 2026-01-05T04:59:40.018050Z | false |
beemojs/beemo | https://github.com/beemojs/beemo/blob/9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690/packages/core/tests/Tool.test.ts | packages/core/tests/Tool.test.ts | import fs from 'fs-extra';
import { Path } from '@boost/common';
import { normalizeSeparators } from '@boost/common/test';
import { getFixturePath } from '@boost/test-utils';
import { Context } from '../src/contexts/Context';
import { CleanupConfigsRoutine } from '../src/routines/CleanupConfigsRoutine';
import { Resolv... | typescript | MIT | 9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690 | 2026-01-05T04:59:40.018050Z | false |
beemojs/beemo | https://github.com/beemojs/beemo/blob/9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690/packages/core/tests/Driver.test.ts | packages/core/tests/Driver.test.ts | import execa from 'execa';
import { Driver } from '../src/Driver';
import { mockDriver, stubExecResult } from '../src/test';
jest.mock('execa');
describe('Driver', () => {
let driver: Driver;
beforeEach(() => {
driver = mockDriver('foo');
});
it('validates fields', () => {
expect(() => {
// @ts-expect-er... | typescript | MIT | 9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690 | 2026-01-05T04:59:40.018050Z | false |
beemojs/beemo | https://github.com/beemojs/beemo/blob/9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690/packages/core/tests/Script.test.ts | packages/core/tests/Script.test.ts | import execa from 'execa';
import { Script } from '../src/Script';
import { mockScript } from '../src/test';
jest.mock('execa');
describe('Script', () => {
let script: Script;
beforeEach(() => {
script = mockScript('test');
});
describe('.validate()', () => {
it('errors if no parse function', () => {
exp... | typescript | MIT | 9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690 | 2026-01-05T04:59:40.018050Z | false |
beemojs/beemo | https://github.com/beemojs/beemo/blob/9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690/packages/core/tests/helpers/isPatternMatch.test.ts | packages/core/tests/helpers/isPatternMatch.test.ts | import { isPatternMatch } from '../../src/helpers/isPatternMatch';
describe('isPatternMatch()', () => {
it('returns false for empty value', () => {
expect(isPatternMatch('', '*')).toBe(false);
});
it('returns true for wildcard', () => {
expect(isPatternMatch('foo', '*')).toBe(true);
expect(isPatternMatch('12... | typescript | MIT | 9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690 | 2026-01-05T04:59:40.018050Z | false |
beemojs/beemo | https://github.com/beemojs/beemo/blob/9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690/packages/core/tests/routines/CreateConfigRoutine.test.ts | packages/core/tests/routines/CreateConfigRoutine.test.ts | import fs from 'fs-extra';
import { Path } from '@boost/common';
import { mockNormalizedFilePath } from '@boost/common/test';
import { copyFixtureToNodeModule, getFixturePath } from '@boost/test-utils';
import {
STRATEGY_COPY,
STRATEGY_CREATE,
STRATEGY_NATIVE,
STRATEGY_NONE,
STRATEGY_REFERENCE,
} from '../../src/c... | typescript | MIT | 9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690 | 2026-01-05T04:59:40.018050Z | false |
beemojs/beemo | https://github.com/beemojs/beemo/blob/9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690/packages/core/tests/routines/CleanupConfigsRoutine.test.ts | packages/core/tests/routines/CleanupConfigsRoutine.test.ts | import fs from 'fs-extra';
import { Path } from '@boost/common';
import { mockNormalizedFilePath } from '@boost/common/test';
import { DriverContext } from '../../src/contexts/DriverContext';
import { Driver } from '../../src/Driver';
import { CleanupConfigsRoutine } from '../../src/routines/CleanupConfigsRoutine';
imp... | typescript | MIT | 9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690 | 2026-01-05T04:59:40.018050Z | false |
beemojs/beemo | https://github.com/beemojs/beemo/blob/9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690/packages/core/tests/routines/RunScriptRoutine.test.ts | packages/core/tests/routines/RunScriptRoutine.test.ts | /* eslint-disable jest/expect-expect */
import { Path, Project } from '@boost/common';
import { copyFixtureToNodeModule, getFixturePath } from '@boost/test-utils';
import { ScriptContext } from '../../src/contexts/ScriptContext';
import { AnyRoutine } from '../../src/routines/RunInWorkspacesRoutine';
import { RunScrip... | typescript | MIT | 9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690 | 2026-01-05T04:59:40.018050Z | false |
beemojs/beemo | https://github.com/beemojs/beemo/blob/9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690/packages/core/tests/routines/ScaffoldRoutine.test.ts | packages/core/tests/routines/ScaffoldRoutine.test.ts | import * as hygen from 'hygen';
import { Path } from '@boost/common';
import { ScaffoldContext } from '../../src/contexts/ScaffoldContext';
import { ScaffoldRoutine } from '../../src/routines/ScaffoldRoutine';
import { mockConsole, mockDebugger, mockTool, stubScaffoldContext } from '../../src/test';
import { Tool } fro... | typescript | MIT | 9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690 | 2026-01-05T04:59:40.018050Z | false |
beemojs/beemo | https://github.com/beemojs/beemo/blob/9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690/packages/core/tests/routines/RunInWorkspacesRoutine.test.ts | packages/core/tests/routines/RunInWorkspacesRoutine.test.ts | import { Schemas } from '@boost/common';
import { Routine } from '@boost/pipeline';
import { Context } from '../../src/contexts/Context';
import { Driver } from '../../src/Driver';
import {
RunInWorkspacesContextArgs,
RunInWorkspacesRoutine,
} from '../../src/routines/RunInWorkspacesRoutine';
import { mockDebugger, m... | typescript | MIT | 9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690 | 2026-01-05T04:59:40.018050Z | false |
beemojs/beemo | https://github.com/beemojs/beemo/blob/9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690/packages/core/tests/routines/ResolveConfigsRoutine.test.ts | packages/core/tests/routines/ResolveConfigsRoutine.test.ts | import fs from 'fs-extra';
import { ConfigContext } from '../../src/contexts/ConfigContext';
import { Driver } from '../../src/Driver';
import { ResolveConfigsRoutine } from '../../src/routines/ResolveConfigsRoutine';
import { mockDebugger, mockDriver, mockTool, stubConfigContext } from '../../src/test';
import { Tool ... | typescript | MIT | 9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690 | 2026-01-05T04:59:40.018050Z | false |
beemojs/beemo | https://github.com/beemojs/beemo/blob/9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690/packages/core/tests/routines/RunDriverRoutine.test.ts | packages/core/tests/routines/RunDriverRoutine.test.ts | /* eslint-disable jest/expect-expect */
import { Path, Project } from '@boost/common';
import { getFixturePath } from '@boost/test-utils';
import { DriverContext } from '../../src/contexts/DriverContext';
import { Driver } from '../../src/Driver';
import { ExecuteCommandOptions } from '../../src/routines/driver/Execut... | typescript | MIT | 9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690 | 2026-01-05T04:59:40.018050Z | false |
beemojs/beemo | https://github.com/beemojs/beemo/blob/9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690/packages/core/tests/routines/script/ExecuteScriptRoutine.test.ts | packages/core/tests/routines/script/ExecuteScriptRoutine.test.ts | import { Path } from '@boost/common';
import { ScriptContext } from '../../../src/contexts/ScriptContext';
import { ExecuteScriptRoutine } from '../../../src/routines/script/ExecuteScriptRoutine';
import { Script } from '../../../src/Script';
import {
mockDebugger,
mockScript,
mockTool,
stubScriptContext,
TestScri... | typescript | MIT | 9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690 | 2026-01-05T04:59:40.018050Z | false |
beemojs/beemo | https://github.com/beemojs/beemo/blob/9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690/packages/core/tests/routines/driver/ExecuteCommandRoutine.test.ts | packages/core/tests/routines/driver/ExecuteCommandRoutine.test.ts | import execa from 'execa';
import fs from 'fs-extra';
import { ExitError, Path } from '@boost/common';
import { normalizeSeparators } from '@boost/common/test';
import { color } from '@boost/internal';
import { DriverContext } from '../../../src/contexts/DriverContext';
import { Driver } from '../../../src/Driver';
imp... | typescript | MIT | 9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690 | 2026-01-05T04:59:40.018050Z | false |
beemojs/beemo | https://github.com/beemojs/beemo/blob/9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690/packages/core/tests/contexts/Context.test.ts | packages/core/tests/contexts/Context.test.ts | import { Path } from '@boost/common';
import { Context } from '../../src/contexts/Context';
import { stubArgs } from '../../src/test';
describe('Context', () => {
let context: Context<{ foo: string; baz: boolean }>;
beforeEach(() => {
context = new Context(stubArgs({ foo: '', baz: false }));
});
describe('cons... | typescript | MIT | 9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690 | 2026-01-05T04:59:40.018050Z | false |
beemojs/beemo | https://github.com/beemojs/beemo/blob/9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690/packages/core/tests/contexts/ScriptContext.test.ts | packages/core/tests/contexts/ScriptContext.test.ts | import { ScriptContext } from '../../src/contexts/ScriptContext';
import { mockScript, stubScriptArgs } from '../../src/test';
describe('ScriptContext', () => {
let context: ScriptContext;
beforeEach(() => {
context = new ScriptContext(stubScriptArgs(), 'foo');
});
describe('constructor()', () => {
it('sets ... | typescript | MIT | 9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690 | 2026-01-05T04:59:40.018050Z | false |
beemojs/beemo | https://github.com/beemojs/beemo/blob/9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690/packages/core/tests/contexts/ScaffoldContext.test.ts | packages/core/tests/contexts/ScaffoldContext.test.ts | import { ScaffoldContext } from '../../src/contexts/ScaffoldContext';
import { stubScaffoldArgs } from '../../src/test';
describe('ScaffoldContext', () => {
let context: ScaffoldContext;
beforeEach(() => {
context = new ScaffoldContext(stubScaffoldArgs({ dry: true }), 'gen', 'act', 'name');
});
it('sets params... | typescript | MIT | 9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690 | 2026-01-05T04:59:40.018050Z | false |
beemojs/beemo | https://github.com/beemojs/beemo/blob/9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690/packages/core/tests/contexts/ConfigContext.test.ts | packages/core/tests/contexts/ConfigContext.test.ts | import { ConfigContext } from '../../src/contexts/ConfigContext';
import { mockDriver, stubArgs } from '../../src/test';
describe('ConfigContext', () => {
let context: ConfigContext;
beforeEach(() => {
context = new ConfigContext(stubArgs({}));
});
describe('constructor()', () => {
it('sets args', () => {
... | typescript | MIT | 9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690 | 2026-01-05T04:59:40.018050Z | false |
beemojs/beemo | https://github.com/beemojs/beemo/blob/9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690/packages/core/tests/contexts/DriverContext.test.ts | packages/core/tests/contexts/DriverContext.test.ts | import { DriverContext } from '../../src/contexts/DriverContext';
import { mockDriver, stubDriverArgs } from '../../src/test';
describe('DriverContext', () => {
let context: DriverContext;
beforeEach(() => {
context = new DriverContext(stubDriverArgs(), mockDriver('foo'));
});
describe('constructor()', () => {... | typescript | MIT | 9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690 | 2026-01-05T04:59:40.018050Z | false |
beemojs/beemo | https://github.com/beemojs/beemo/blob/9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690/packages/cli/src/createDriverCommand.ts | packages/cli/src/createDriverCommand.ts | /* eslint-disable max-classes-per-file */
import { Driver, DriverContextOptions } from '@beemo/core';
import { Argv, Config, GlobalOptions, ParserOptions } from '@boost/cli';
import { BaseRunCommand } from './commands/BaseRunCommand';
import { tool } from './setup';
export function createDriverCommand(
driver: Drive... | typescript | MIT | 9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690 | 2026-01-05T04:59:40.018050Z | false |
beemojs/beemo | https://github.com/beemojs/beemo/blob/9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690/packages/cli/src/parseSpecialArgv.ts | packages/cli/src/parseSpecialArgv.ts | import { Argv } from '@beemo/core';
export interface ParsedArgv {
argv: Argv;
parallelArgv: Argv[];
}
/**
* Extract parallel commands and options into separate argv lists.
*/
export function parseSpecialArgv(argv: Argv): ParsedArgv {
const main: Argv = [];
const parallel: Argv[] = [];
let index = -1;
argv.fo... | typescript | MIT | 9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690 | 2026-01-05T04:59:40.018050Z | false |
beemojs/beemo | https://github.com/beemojs/beemo/blob/9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690/packages/cli/src/setup.ts | packages/cli/src/setup.ts | /* eslint-disable import/no-extraneous-dependencies, @typescript-eslint/prefer-nullish-coalescing */
import debug from 'debug';
import { PackageStructure, Tool } from '@beemo/core';
import { applyStyle, Program } from '@boost/cli';
import { parseSpecialArgv } from './parseSpecialArgv';
const brandName = process.env.B... | typescript | MIT | 9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690 | 2026-01-05T04:59:40.018050Z | false |
beemojs/beemo | https://github.com/beemojs/beemo/blob/9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690/packages/cli/src/index.ts | packages/cli/src/index.ts | /**
* @copyright 2021, Miles Johnson
* @license https://opensource.org/licenses/MIT
*/
// Export command to extend from
export {};
| typescript | MIT | 9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690 | 2026-01-05T04:59:40.018050Z | false |
beemojs/beemo | https://github.com/beemojs/beemo/blob/9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690/packages/cli/src/bin.ts | packages/cli/src/bin.ts | /* eslint-disable @typescript-eslint/no-unsafe-assignment */
import { CreateConfig } from './commands/CreateConfig';
import { RunDriver } from './commands/RunDriver';
import { RunScript } from './commands/RunScript';
import { Scaffold } from './commands/Scaffold';
import { createDriverCommand } from './createDriverCom... | typescript | MIT | 9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690 | 2026-01-05T04:59:40.018050Z | false |
beemojs/beemo | https://github.com/beemojs/beemo/blob/9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690/packages/cli/src/commands/RunDriver.ts | packages/cli/src/commands/RunDriver.ts | import { Blueprint, DriverContextOptions, DriverContextParams, Schemas } from '@beemo/core';
import { Arg, Argv, Config } from '@boost/cli';
import { tool } from '../setup';
import { BaseRunCommand } from './BaseRunCommand';
export interface RunDriverConfig {
parallelArgv?: Argv[];
}
@Config('run-driver', tool.msg('... | typescript | MIT | 9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690 | 2026-01-05T04:59:40.018050Z | false |
beemojs/beemo | https://github.com/beemojs/beemo/blob/9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690/packages/cli/src/commands/CreateConfig.tsx | packages/cli/src/commands/CreateConfig.tsx | import React from 'react';
import { Command, Config, GlobalOptions } from '@boost/cli';
import { tool } from '../setup';
@Config('create-config', tool.msg('app:cliCommandConfig'), {
aliases: ['config'],
allowVariadicParams: 'names',
category: 'core',
})
export class CreateConfig extends Command<GlobalOptions> {
as... | typescript | MIT | 9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690 | 2026-01-05T04:59:40.018050Z | false |
beemojs/beemo | https://github.com/beemojs/beemo/blob/9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690/packages/cli/src/commands/RunScript.ts | packages/cli/src/commands/RunScript.ts | import { ScriptContextOptions, ScriptContextParams } from '@beemo/core';
import { Arg, Config } from '@boost/cli';
import { tool } from '../setup';
import { BaseRunCommand } from './BaseRunCommand';
@Config('run-script', tool.msg('app:cliCommandRunScript'), {
aliases: ['run'],
allowUnknownOptions: true,
allowVariad... | typescript | MIT | 9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690 | 2026-01-05T04:59:40.018050Z | false |
beemojs/beemo | https://github.com/beemojs/beemo/blob/9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690/packages/cli/src/commands/Scaffold.tsx | packages/cli/src/commands/Scaffold.tsx | import React from 'react';
import { ScaffoldContextOptions, ScaffoldContextParams } from '@beemo/core';
import { Arg, Command, Config, GlobalOptions } from '@boost/cli';
import { tool } from '../setup';
@Config('scaffold', tool.msg('app:cliCommandScaffold'), { category: 'core' })
export class Scaffold extends Command<... | typescript | MIT | 9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690 | 2026-01-05T04:59:40.018050Z | false |
beemojs/beemo | https://github.com/beemojs/beemo/blob/9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690/packages/cli/src/commands/BaseRunCommand.tsx | packages/cli/src/commands/BaseRunCommand.tsx | /* eslint-disable no-console */
import React from 'react';
import { DriverContext } from '@beemo/core';
import { Arg, Command, GlobalOptions, PrimitiveType } from '@boost/cli';
import { SerialPipeline } from '@boost/pipeline';
import { tool } from '../setup';
export abstract class BaseRunCommand<
O extends object,
... | typescript | MIT | 9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690 | 2026-01-05T04:59:40.018050Z | false |
beemojs/beemo | https://github.com/beemojs/beemo/blob/9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690/packages/cli/src/components/App.tsx | packages/cli/src/components/App.tsx | import React, { useCallback, useEffect, useState } from 'react';
import { Box, Static } from 'ink';
import { DriverOutputStrategy } from '@beemo/core';
import { useProgram, useRenderLoop } from '@boost/cli/react';
import { AnyWorkUnit, Context, Monitor, Routine, SerialPipeline, Task } from '@boost/pipeline';
import { t... | typescript | MIT | 9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690 | 2026-01-05T04:59:40.018050Z | false |
beemojs/beemo | https://github.com/beemojs/beemo/blob/9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690/packages/cli/src/components/Duration.tsx | packages/cli/src/components/Duration.tsx | import React from 'react';
import { Style } from '@boost/cli/react';
import { formatMs } from '@boost/common';
export interface DurationProps {
time: number;
}
export function Duration({ time }: DurationProps) {
return <Style type="muted">{`(${formatMs(time)})`}</Style>;
}
| typescript | MIT | 9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690 | 2026-01-05T04:59:40.018050Z | false |
beemojs/beemo | https://github.com/beemojs/beemo/blob/9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690/packages/cli/src/components/RoutineRow.tsx | packages/cli/src/components/RoutineRow.tsx | /* eslint-disable no-nested-ternary */
import React from 'react';
import { Box, Text } from 'ink';
import { Style } from '@boost/cli/react';
import { Routine } from '@boost/pipeline';
import { Duration } from './Duration';
export type UnknownRoutine = Routine<unknown, unknown>;
export interface RoutineRowProps {
ro... | typescript | MIT | 9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690 | 2026-01-05T04:59:40.018050Z | false |
beemojs/beemo | https://github.com/beemojs/beemo/blob/9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690/packages/cli/src/components/TaskRow.tsx | packages/cli/src/components/TaskRow.tsx | /* eslint-disable no-magic-numbers */
import React from 'react';
import { Box } from 'ink';
import { DriverOutputStrategy } from '@beemo/core';
import { Style } from '@boost/cli/react';
import { Task } from '@boost/pipeline';
export type UnknownTask = Task<unknown, unknown>;
export interface TaskRowProps {
task: Un... | typescript | MIT | 9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690 | 2026-01-05T04:59:40.018050Z | false |
beemojs/beemo | https://github.com/beemojs/beemo/blob/9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690/packages/cli/tests/setupBranded.test.ts | packages/cli/tests/setupBranded.test.ts | import { Tool } from '@beemo/core';
import { Program } from '@boost/cli';
describe('CLI (branded)', () => {
it('can brand the name, bin, and docs', async () => {
process.env.BEEMO_BRAND_NAME = 'BMO';
process.env.BEEMO_BRAND_BINARY = 'bmo';
process.env.BEEMO_MANUAL_URL = 'https://bmo.dev';
const { tool, progr... | typescript | MIT | 9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690 | 2026-01-05T04:59:40.018050Z | false |
beemojs/beemo | https://github.com/beemojs/beemo/blob/9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690/packages/cli/tests/setup.test.ts | packages/cli/tests/setup.test.ts | import { Tool } from '@beemo/core';
import { Program } from '@boost/cli';
import { program, tool } from '../src/setup';
describe('CLI', () => {
it('defines default beemo branding', () => {
expect(tool.options.projectName).toBe('beemo');
expect(tool).toBeInstanceOf(Tool);
expect(program.options.bin).toBe('beemo... | typescript | MIT | 9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690 | 2026-01-05T04:59:40.018050Z | false |
beemojs/beemo | https://github.com/beemojs/beemo/blob/9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690/packages/cli/tests/parseSpecialArgv.test.ts | packages/cli/tests/parseSpecialArgv.test.ts | import { parseSpecialArgv } from '../src/parseSpecialArgv';
describe('parseSpecialArgv()', () => {
it('passes args through', () => {
expect(parseSpecialArgv(['--foo', '-v', '--bar=123', 'baz'])).toEqual({
argv: ['--foo', '-v', '--bar=123', 'baz'],
parallelArgv: [],
});
});
it('separates // into multiple ... | typescript | MIT | 9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690 | 2026-01-05T04:59:40.018050Z | false |
beemojs/beemo | https://github.com/beemojs/beemo/blob/9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690/packages/driver-flow/src/types.ts | packages/driver-flow/src/types.ts |
export type LintSetting = 'error' | 'off' | 'warn' | 0 | 1 | 2;
export type LintsConfig = Record<string, LintSetting>;
export type ToggleSetting = 'always' | 'auto' | 'never';
export type OptionSetting = 'enable' | 'ignore' | 'warn';
export type MatchPattern = RegExp | string;
export type LazyMode = 'fs' | 'ide... | typescript | MIT | 9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690 | 2026-01-05T04:59:40.018050Z | false |
beemojs/beemo | https://github.com/beemojs/beemo/blob/9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690/packages/driver-flow/src/index.ts | packages/driver-flow/src/index.ts | /**
* @copyright 2021, Miles Johnson
* @license https://opensource.org/licenses/MIT
*/
import { DriverOptions } from '@beemo/core';
import { FlowDriver } from './FlowDriver';
export type { FlowDriver };
export * from './types';
export default function flowDriver(options?: DriverOptions) {
return new FlowDr... | typescript | MIT | 9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690 | 2026-01-05T04:59:40.018050Z | false |
beemojs/beemo | https://github.com/beemojs/beemo/blob/9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690/packages/driver-flow/src/FlowDriver.ts | packages/driver-flow/src/FlowDriver.ts | import { Driver, Execution } from '@beemo/core';
import { FlowConfig, LintsConfig, OptionsConfig } from './types';
// Success: Writes "Found 0 errors" to stdout and server output to stderr
// Failure: Writes file list to stdout and server output to stderr
export class FlowDriver extends Driver<FlowConfig> {
override ... | typescript | MIT | 9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690 | 2026-01-05T04:59:40.018050Z | false |
beemojs/beemo | https://github.com/beemojs/beemo/blob/9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690/packages/driver-flow/tests/FlowDriver.test.ts | packages/driver-flow/tests/FlowDriver.test.ts | import { mockTool, stubExecResult } from '@beemo/core/test';
import factory from '../src';
import { FlowDriver } from '../src/FlowDriver';
describe('FlowDriver', () => {
let driver: FlowDriver;
beforeEach(() => {
driver = new FlowDriver();
driver.startup(mockTool());
});
it('index returns a driver instance',... | typescript | MIT | 9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690 | 2026-01-05T04:59:40.018050Z | false |
beemojs/beemo | https://github.com/beemojs/beemo/blob/9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690/packages/local/src/index.ts | packages/local/src/index.ts | export { default } from '@beemo/dev';
| typescript | MIT | 9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690 | 2026-01-05T04:59:40.018050Z | false |
beemojs/beemo | https://github.com/beemojs/beemo/blob/9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690/packages/local/src/scripts/BumpPeerDeps.ts | packages/local/src/scripts/BumpPeerDeps.ts | import chalk from 'chalk';
import glob from 'fast-glob';
import fs from 'fs-extra';
import semver from 'semver';
import { Arguments, PackageStructure, ParserOptions, Script, ScriptContext } from '@beemo/core';
export interface BumpPeerDepsOptions {
release: 'major' | 'minor' | 'patch';
}
const RELEASE_TYPES: BumpPee... | typescript | MIT | 9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690 | 2026-01-05T04:59:40.018050Z | false |
beemojs/beemo | https://github.com/beemojs/beemo/blob/9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690/packages/local/src/scripts/RunIntegrationTests.ts | packages/local/src/scripts/RunIntegrationTests.ts | import chalk from 'chalk';
import execa, { ExecaReturnValue } from 'execa';
import fs from 'fs-extra';
import {
Arguments,
PackageStructure,
ParserOptions,
Path,
Script,
ScriptContext,
} from '@beemo/core';
export interface RunIntegrationTestsOptions {
type: 'fail' | 'pass';
}
class RunIntegrationTestsScript e... | typescript | MIT | 9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690 | 2026-01-05T04:59:40.018050Z | false |
beemojs/beemo | https://github.com/beemojs/beemo/blob/9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690/packages/local/src/bins/extractOptionList.ts | packages/local/src/bins/extractOptionList.ts | import execa from 'execa';
const [bin, ...args] = process.argv.slice(2);
if (!bin) {
throw new Error('Please pass a NPM binary name.');
}
const OPTION_PATTERN = /(^|\s)+-?-[.a-z0-9-]+(,|\s)/giu;
const IS_STRING = /\[?string\]?\b/iu;
const IS_STRING_NAMED = /\[[^boolean]\]/iu;
const IS_STRING_NAMED_CARETS = /<(\w+)>... | typescript | MIT | 9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690 | 2026-01-05T04:59:40.018050Z | false |
beemojs/beemo | https://github.com/beemojs/beemo/blob/9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690/packages/local/src/configs/stylelint.ts | packages/local/src/configs/stylelint.ts | import { StylelintConfig } from '@beemo/driver-stylelint';
const config: StylelintConfig = {
defaultSeverity: 'error',
rules: {},
};
export default config;
| typescript | MIT | 9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690 | 2026-01-05T04:59:40.018050Z | false |
beemojs/beemo | https://github.com/beemojs/beemo/blob/9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690/packages/local/src/configs/mocha.ts | packages/local/src/configs/mocha.ts | import { MochaConfig } from '@beemo/driver-mocha';
const config: MochaConfig = {
checkLeaks: true,
colors: true,
fullTrace: true,
reporter: 'nyan',
};
export default config;
| typescript | MIT | 9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690 | 2026-01-05T04:59:40.018050Z | false |
beemojs/beemo | https://github.com/beemojs/beemo/blob/9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690/packages/local/src/configs/eslint.ts | packages/local/src/configs/eslint.ts | export { default } from '@beemo/config-eslint';
| typescript | MIT | 9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690 | 2026-01-05T04:59:40.018050Z | false |
beemojs/beemo | https://github.com/beemojs/beemo/blob/9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690/packages/local/src/configs/prettier.ts | packages/local/src/configs/prettier.ts | export { default } from '@beemo/config-prettier';
| typescript | MIT | 9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690 | 2026-01-05T04:59:40.018050Z | false |
beemojs/beemo | https://github.com/beemojs/beemo/blob/9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690/packages/local/src/configs/webpack.ts | packages/local/src/configs/webpack.ts | import webpack from 'webpack';
import { WebpackConfig } from '@beemo/driver-webpack';
const config: WebpackConfig = {
devtool: 'cheap-source-map',
mode: 'development',
plugins: [new webpack.EnvironmentPlugin(['NODE_ENV'])],
target: 'web',
};
export default config;
| typescript | MIT | 9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690 | 2026-01-05T04:59:40.018050Z | false |
beemojs/beemo | https://github.com/beemojs/beemo/blob/9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690/packages/local/src/configs/rollup.ts | packages/local/src/configs/rollup.ts | import { RollupConfig } from '@beemo/driver-rollup';
const config: RollupConfig = {
input: 'src/main.ts',
output: {
file: 'bundle.js',
format: 'cjs',
},
};
export default config;
| typescript | MIT | 9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690 | 2026-01-05T04:59:40.018050Z | false |
beemojs/beemo | https://github.com/beemojs/beemo/blob/9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690/packages/local/src/configs/jest.ts | packages/local/src/configs/jest.ts | import baseConfig from '@beemo/config-jest';
import { JestConfig } from '@beemo/driver-jest';
const config: JestConfig = {
...baseConfig,
coveragePathIgnorePatterns: [
'cli/src/commands',
'core/src/streams',
'driver-*/src/index.ts',
'local/',
'website/',
],
testPathIgnorePatterns: ['integration'],
};
ex... | typescript | MIT | 9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690 | 2026-01-05T04:59:40.018050Z | false |
beemojs/beemo | https://github.com/beemojs/beemo/blob/9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690/packages/local/src/configs/typescript.ts | packages/local/src/configs/typescript.ts | export { default } from '@beemo/config-typescript';
| typescript | MIT | 9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690 | 2026-01-05T04:59:40.018050Z | false |
beemojs/beemo | https://github.com/beemojs/beemo/blob/9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690/packages/local/src/configs/flow.ts | packages/local/src/configs/flow.ts | import { FlowConfig } from '@beemo/driver-flow';
const config: FlowConfig = {
ignore: ['.*/node_modules/.*', '.*/tests/.*', '.*\\.test\\.js'],
include: ['./src'],
lints: {
all: 'off',
},
options: {
emoji: true,
'esproposal.class_instance_fields': 'enable',
'esproposal.class_static_fields': 'enable',
'es... | typescript | MIT | 9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690 | 2026-01-05T04:59:40.018050Z | false |
beemojs/beemo | https://github.com/beemojs/beemo/blob/9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690/packages/local/src/configs/babel.ts | packages/local/src/configs/babel.ts | export { default } from '@beemo/config-babel';
| typescript | MIT | 9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690 | 2026-01-05T04:59:40.018050Z | false |
beemojs/beemo | https://github.com/beemojs/beemo/blob/9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690/packages/local/src/configs/lerna.ts | packages/local/src/configs/lerna.ts | import { LernaConfig } from '@beemo/driver-lerna';
const config: LernaConfig = {
version: 'independent',
npmClient: 'yarn',
useWorkspaces: true,
command: {
publish: {
ignoreChanges: ['*.md', '*.test.ts'],
message: 'Release [ci skip]',
},
},
};
export default config;
| typescript | MIT | 9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690 | 2026-01-05T04:59:40.018050Z | false |
beemojs/beemo | https://github.com/beemojs/beemo/blob/9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690/packages/driver-prettier/src/PrettierDriver.ts | packages/driver-prettier/src/PrettierDriver.ts | import fs from 'fs';
import { ConfigContext, Driver, Path } from '@beemo/core';
import { Event } from '@boost/event';
import { PrettierArgs, PrettierConfig } from './types';
// Success: Writes formatted files to stdout
// Failure: Writes to stderr for no files found and syntax errors
export class PrettierDriver extend... | typescript | MIT | 9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690 | 2026-01-05T04:59:40.018050Z | false |
beemojs/beemo | https://github.com/beemojs/beemo/blob/9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690/packages/driver-prettier/src/types.ts | packages/driver-prettier/src/types.ts | import { RequiredOptions } from 'prettier';
export type CommonConfig = Partial<RequiredOptions>;
export interface OverrideConfig {
files: string[] | string;
options: CommonConfig;
}
export interface PrettierConfig extends CommonConfig {
ignore?: string[];
overrides?: OverrideConfig[];
}
export interface Prettie... | typescript | MIT | 9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690 | 2026-01-05T04:59:40.018050Z | false |
beemojs/beemo | https://github.com/beemojs/beemo/blob/9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690/packages/driver-prettier/src/index.ts | packages/driver-prettier/src/index.ts | /**
* @copyright 2021, Miles Johnson
* @license https://opensource.org/licenses/MIT
*/
import { DriverOptions } from '@beemo/core';
import { PrettierDriver } from './PrettierDriver';
export type { PrettierDriver };
export * from './types';
export default function prettierDriver(options?: DriverOptions) {
r... | typescript | MIT | 9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690 | 2026-01-05T04:59:40.018050Z | false |
beemojs/beemo | https://github.com/beemojs/beemo/blob/9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690/packages/driver-prettier/tests/PrettierDriver.test.ts | packages/driver-prettier/tests/PrettierDriver.test.ts | import fs from 'fs';
import { DriverContext, Path } from '@beemo/core';
import {
mockNormalizedFilePath,
mockTool,
normalizeSeparators,
stubDriverContext,
} from '@beemo/core/test';
import factory from '../src';
import { PrettierDriver } from '../src/PrettierDriver';
describe('PrettierDriver', () => {
let driver:... | typescript | MIT | 9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690 | 2026-01-05T04:59:40.018050Z | false |
beemojs/beemo | https://github.com/beemojs/beemo/blob/9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690/website/src/pages/index.tsx | website/src/pages/index.tsx | /* eslint-disable import/no-unresolved, react/jsx-no-literals, react/no-array-index-key */
import React from 'react';
import clsx from 'clsx';
import Link from '@docusaurus/Link';
import useBaseUrl from '@docusaurus/useBaseUrl';
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import Layout from '@... | typescript | MIT | 9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690 | 2026-01-05T04:59:40.018050Z | false |
beemojs/beemo | https://github.com/beemojs/beemo/blob/9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690/website/types/docusaurus.d.ts | website/types/docusaurus.d.ts | /// <reference types="@docusaurus/module-type-aliases" />
| typescript | MIT | 9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690 | 2026-01-05T04:59:40.018050Z | false |
beemojs/beemo | https://github.com/beemojs/beemo/blob/9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690/website/types/global.d.ts | website/types/global.d.ts | declare module '*.module.css';
declare module '@docusaurus/*';
| typescript | MIT | 9dfc75f45e21b0fcbf3f7ddc6e09678e5d63e690 | 2026-01-05T04:59:40.018050Z | false |
hi-reeve/vitailse | https://github.com/hi-reeve/vitailse/blob/fd39d469fff75d4a65493fea52726823506f1762/typed-router.d.ts | typed-router.d.ts |
// Generated by unplugin-vue-router. ‼️ DO NOT MODIFY THIS FILE ‼️
// It's recommended to commit this file.
// Make sure to add this file to your tsconfig.json file as an "includes" or "files" entry.
/// <reference types="unplugin-vue-router/client" />
import type {
// type safe route locations
RouteLocationType... | typescript | MIT | fd39d469fff75d4a65493fea52726823506f1762 | 2026-01-05T05:00:12.795877Z | false |
hi-reeve/vitailse | https://github.com/hi-reeve/vitailse/blob/fd39d469fff75d4a65493fea52726823506f1762/components.d.ts | components.d.ts | // generated by unplugin-vue-components
// We suggest you to commit this file into source control
// Read more: https://github.com/vuejs/core/pull/3399
import '@vue/runtime-core'
export {}
declare module '@vue/runtime-core' {
export interface GlobalComponents {
AppHeader: typeof import('./src/components/AppHead... | typescript | MIT | fd39d469fff75d4a65493fea52726823506f1762 | 2026-01-05T05:00:12.795877Z | false |
hi-reeve/vitailse | https://github.com/hi-reeve/vitailse/blob/fd39d469fff75d4a65493fea52726823506f1762/auto-imports.d.ts | auto-imports.d.ts | // Generated by 'unplugin-auto-import'
export {}
declare global {
const EffectScope: typeof import('vue')['EffectScope']
const asyncComputed: typeof import('@vueuse/core')['asyncComputed']
const autoResetRef: typeof import('@vueuse/core')['autoResetRef']
const computed: typeof import('vue')['computed']
const ... | typescript | MIT | fd39d469fff75d4a65493fea52726823506f1762 | 2026-01-05T05:00:12.795877Z | false |
hi-reeve/vitailse | https://github.com/hi-reeve/vitailse/blob/fd39d469fff75d4a65493fea52726823506f1762/vite.config.ts | vite.config.ts | import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import { resolve } from 'path';
import Components from 'unplugin-vue-components/vite';
import AutoImport from 'unplugin-auto-import/vite';
import Icons from 'unplugin-icons/vite';
import IconsResolver from 'unplugin-icons/resolver';
import Layou... | typescript | MIT | fd39d469fff75d4a65493fea52726823506f1762 | 2026-01-05T05:00:12.795877Z | false |
hi-reeve/vitailse | https://github.com/hi-reeve/vitailse/blob/fd39d469fff75d4a65493fea52726823506f1762/src/router.ts | src/router.ts | import {
createRouter,
createWebHistory,
createMemoryHistory,
} from '@vue-router';
import { setupLayouts } from 'virtual:generated-layouts';
export let extendedRoutes: any = null;
export const router = createRouter({
history: import.meta.env.SSR ? createMemoryHistory() : createWebHistory(),
// You don't need to ... | typescript | MIT | fd39d469fff75d4a65493fea52726823506f1762 | 2026-01-05T05:00:12.795877Z | false |
hi-reeve/vitailse | https://github.com/hi-reeve/vitailse/blob/fd39d469fff75d4a65493fea52726823506f1762/src/main.ts | src/main.ts | import App from '@/App.vue';
import { ViteSSG } from 'vite-ssg';
import '@/styles/index.css';
import { ViteSetupModule } from './types/ViteSetupModule';
import { extendedRoutes } from '@/router';
export const createApp = ViteSSG(
App,
{ routes: extendedRoutes },
async ctx => {
Object.values(
import.meta.glob<... | typescript | MIT | fd39d469fff75d4a65493fea52726823506f1762 | 2026-01-05T05:00:12.795877Z | false |
hi-reeve/vitailse | https://github.com/hi-reeve/vitailse/blob/fd39d469fff75d4a65493fea52726823506f1762/src/env.d.ts | src/env.d.ts | /// <reference types="vite/client" />
declare module '*.vue' {
import { DefineComponent } from 'vue'
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
const component: DefineComponent<{}, {}, any>
export default component
}
| typescript | MIT | fd39d469fff75d4a65493fea52726823506f1762 | 2026-01-05T05:00:12.795877Z | false |
hi-reeve/vitailse | https://github.com/hi-reeve/vitailse/blob/fd39d469fff75d4a65493fea52726823506f1762/src/__test__/basic.spec.ts | src/__test__/basic.spec.ts | import { describe, expect, it } from 'vitest'
describe('tests', () => {
it('should works', () => {
expect(1 + 1).toEqual(2)
})
})
| typescript | MIT | fd39d469fff75d4a65493fea52726823506f1762 | 2026-01-05T05:00:12.795877Z | false |
hi-reeve/vitailse | https://github.com/hi-reeve/vitailse/blob/fd39d469fff75d4a65493fea52726823506f1762/src/store/index.ts | src/store/index.ts | import { defineStore } from 'pinia';
export const useStore = defineStore('store', {
state: () => ({
count: 0,
}),
});
| typescript | MIT | fd39d469fff75d4a65493fea52726823506f1762 | 2026-01-05T05:00:12.795877Z | false |
hi-reeve/vitailse | https://github.com/hi-reeve/vitailse/blob/fd39d469fff75d4a65493fea52726823506f1762/src/types/ViteSetupModule.ts | src/types/ViteSetupModule.ts | import { ViteSSGContext } from 'vite-ssg';
export type ViteSetupModule = (ctx: ViteSSGContext) => void;
| typescript | MIT | fd39d469fff75d4a65493fea52726823506f1762 | 2026-01-05T05:00:12.795877Z | false |
hi-reeve/vitailse | https://github.com/hi-reeve/vitailse/blob/fd39d469fff75d4a65493fea52726823506f1762/src/modules/pinia.ts | src/modules/pinia.ts | import { ViteSetupModule } from '@/types/ViteSetupModule';
import { createPinia } from 'pinia';
// Setup Pinia
// https://pinia.esm.dev/
export const install: ViteSetupModule = ({ isClient, initialState, app }) => {
const pinia = createPinia();
app.use(pinia);
// Refer to
// https://github.com/antfu/vite-ssg/blob/... | typescript | MIT | fd39d469fff75d4a65493fea52726823506f1762 | 2026-01-05T05:00:12.795877Z | false |
hi-reeve/vitailse | https://github.com/hi-reeve/vitailse/blob/fd39d469fff75d4a65493fea52726823506f1762/src/modules/i18n.ts | src/modules/i18n.ts | import { ViteSetupModule } from '@/types/ViteSetupModule';
import { createI18n } from 'vue-i18n';
// Import i18n resources
// https://vitejs.dev/guide/features.html#glob-import
// Don't need this? Try vitesse-lite: https://github.com/antfu/vitesse-lite
const messages = Object.fromEntries(
Object.entries(
import.me... | typescript | MIT | fd39d469fff75d4a65493fea52726823506f1762 | 2026-01-05T05:00:12.795877Z | false |
hi-reeve/vitailse | https://github.com/hi-reeve/vitailse/blob/fd39d469fff75d4a65493fea52726823506f1762/src/modules/pwa.ts | src/modules/pwa.ts | import { ViteSetupModule } from '@/types/ViteSetupModule';
export const install: ViteSetupModule = ({ isClient, router }) => {
if (!isClient) return;
router.isReady().then(async () => {
const { registerSW } = await import('virtual:pwa-register');
registerSW({ immediate: true });
});
};
| typescript | MIT | fd39d469fff75d4a65493fea52726823506f1762 | 2026-01-05T05:00:12.795877Z | false |
timeseriesadmin/timeseriesadmin | https://github.com/timeseriesadmin/timeseriesadmin/blob/b9dd7e11789e5becf76d60a7cf48d00144c630d1/src/config.ts | src/config.ts | export const CURRENT_VERSION = process.env.REACT_APP_VERSION || '';
export const HISTORY_MAX_LENGTH = 300;
export const DOCS_URL =
'https://docs.influxdata.com/influxdb/v1.7/query_language/data_exploration/';
| typescript | MIT | b9dd7e11789e5becf76d60a7cf48d00144c630d1 | 2026-01-05T05:00:12.129121Z | false |
timeseriesadmin/timeseriesadmin | https://github.com/timeseriesadmin/timeseriesadmin/blob/b9dd7e11789e5becf76d60a7cf48d00144c630d1/src/setupTests.ts | src/setupTests.ts | import 'babel-polyfill'; // because of react-inspector library usage
| typescript | MIT | b9dd7e11789e5becf76d60a7cf48d00144c630d1 | 2026-01-05T05:00:12.129121Z | false |
timeseriesadmin/timeseriesadmin | https://github.com/timeseriesadmin/timeseriesadmin/blob/b9dd7e11789e5becf76d60a7cf48d00144c630d1/src/global.d.ts | src/global.d.ts | declare module 'material-ui-password-field';
| typescript | MIT | b9dd7e11789e5becf76d60a7cf48d00144c630d1 | 2026-01-05T05:00:12.129121Z | false |
timeseriesadmin/timeseriesadmin | https://github.com/timeseriesadmin/timeseriesadmin/blob/b9dd7e11789e5becf76d60a7cf48d00144c630d1/src/index.tsx | src/index.tsx | import React from 'react';
import ReactDOM from 'react-dom';
import { Root } from './app/components/root/Root';
import './index.css';
import registerServiceWorker from './registerServiceWorker';
const root = document.getElementById('root');
if (!root) {
throw new Error('Root element not found!');
}
ReactDOM.render(... | typescript | MIT | b9dd7e11789e5becf76d60a7cf48d00144c630d1 | 2026-01-05T05:00:12.129121Z | false |
timeseriesadmin/timeseriesadmin | https://github.com/timeseriesadmin/timeseriesadmin/blob/b9dd7e11789e5becf76d60a7cf48d00144c630d1/src/registerServiceWorker.ts | src/registerServiceWorker.ts | // tslint:disable:no-console
// In production, we register a service worker to serve assets from local cache.
// This lets the app load faster on subsequent visits in production, and gives
// it offline capabilities. However, it also means that developers (and users)
// will only see deployed updates on the 'N+1' visi... | typescript | MIT | b9dd7e11789e5becf76d60a7cf48d00144c630d1 | 2026-01-05T05:00:12.129121Z | false |
timeseriesadmin/timeseriesadmin | https://github.com/timeseriesadmin/timeseriesadmin/blob/b9dd7e11789e5becf76d60a7cf48d00144c630d1/src/react-app-env.d.ts | src/react-app-env.d.ts | /// <reference types="react-scripts" />
| typescript | MIT | b9dd7e11789e5becf76d60a7cf48d00144c630d1 | 2026-01-05T05:00:12.129121Z | false |
timeseriesadmin/timeseriesadmin | https://github.com/timeseriesadmin/timeseriesadmin/blob/b9dd7e11789e5becf76d60a7cf48d00144c630d1/src/app/electron.test.ts | src/app/electron.test.ts | import { app, shell, BrowserWindow, ipcMain, Menu } from 'electron';
import https from 'https';
import { commonError } from './shared/commonError';
import { influxRequest } from './shared/influxRequest';
jest.mock('electron', () => ({
app: {
on: jest.fn(),
},
ipcMain: {
on: jest.fn(),
},
}));
jest.mock... | typescript | MIT | b9dd7e11789e5becf76d60a7cf48d00144c630d1 | 2026-01-05T05:00:12.129121Z | false |
timeseriesadmin/timeseriesadmin | https://github.com/timeseriesadmin/timeseriesadmin/blob/b9dd7e11789e5becf76d60a7cf48d00144c630d1/src/app/electron.ts | src/app/electron.ts | // Modules to control application life and create native browser window
import { app, shell, BrowserWindow, ipcMain, Menu } from 'electron';
import https from 'https';
import { commonError } from './shared/commonError';
import { influxRequest } from './shared/influxRequest';
if (process.env.ELECTRON_IS_DEV) {
// Ena... | typescript | MIT | b9dd7e11789e5becf76d60a7cf48d00144c630d1 | 2026-01-05T05:00:12.129121Z | false |
timeseriesadmin/timeseriesadmin | https://github.com/timeseriesadmin/timeseriesadmin/blob/b9dd7e11789e5becf76d60a7cf48d00144c630d1/src/app/apollo/index.test.ts | src/app/apollo/index.test.ts | import client from './index';
describe('defaults', () => {
test('initial values', () => {
expect(client).not.toBe(undefined);
});
});
| typescript | MIT | b9dd7e11789e5becf76d60a7cf48d00144c630d1 | 2026-01-05T05:00:12.129121Z | false |
timeseriesadmin/timeseriesadmin | https://github.com/timeseriesadmin/timeseriesadmin/blob/b9dd7e11789e5becf76d60a7cf48d00144c630d1/src/app/apollo/defaults.ts | src/app/apollo/defaults.ts | import storage from 'app/helpers/storage';
// ensure connection fields existence
const connections = JSON.parse(storage.get('connections', '[]')).map(
(conn: {}) => ({
url: '',
u: '',
p: '',
db: '',
unsafeSsl: false,
...conn,
}),
);
const form = {
q: '',
u: '',
p: '',
url: '',
db... | typescript | MIT | b9dd7e11789e5becf76d60a7cf48d00144c630d1 | 2026-01-05T05:00:12.129121Z | false |
timeseriesadmin/timeseriesadmin | https://github.com/timeseriesadmin/timeseriesadmin/blob/b9dd7e11789e5becf76d60a7cf48d00144c630d1/src/app/apollo/schema.ts | src/app/apollo/schema.ts | // In order to extract schema to separate .graphql file it will be required to alter
// webpack config which is not possible without ejecting or using rewired version of CRA
export default `
type InfluxQuery {
query: String
error: String
}
type FormData {
url: String
u: String
p: String
db... | typescript | MIT | b9dd7e11789e5becf76d60a7cf48d00144c630d1 | 2026-01-05T05:00:12.129121Z | false |
timeseriesadmin/timeseriesadmin | https://github.com/timeseriesadmin/timeseriesadmin/blob/b9dd7e11789e5becf76d60a7cf48d00144c630d1/src/app/apollo/defaults.test.ts | src/app/apollo/defaults.test.ts | describe('defaults', () => {
test('initial values', () => {
const defaults = require('./defaults').default;
expect(defaults).toEqual({
connections: [],
form: {
url: '',
u: '',
p: '',
db: '',
q: '',
unsafeSsl: false,
__typename: 'FormData',
... | typescript | MIT | b9dd7e11789e5becf76d60a7cf48d00144c630d1 | 2026-01-05T05:00:12.129121Z | false |
timeseriesadmin/timeseriesadmin | https://github.com/timeseriesadmin/timeseriesadmin/blob/b9dd7e11789e5becf76d60a7cf48d00144c630d1/src/app/apollo/resolvers.ts | src/app/apollo/resolvers.ts | import { saveConnection, deleteConnection } from './resolvers/connections';
import { updateForm } from './resolvers/form';
import { executeQuery } from './resolvers/executeQuery';
export const resolvers = {
Mutation: {
saveConnection,
deleteConnection,
updateForm,
executeQuery,
},
};
| typescript | MIT | b9dd7e11789e5becf76d60a7cf48d00144c630d1 | 2026-01-05T05:00:12.129121Z | false |
timeseriesadmin/timeseriesadmin | https://github.com/timeseriesadmin/timeseriesadmin/blob/b9dd7e11789e5becf76d60a7cf48d00144c630d1/src/app/apollo/index.ts | src/app/apollo/index.ts | import { ApolloClient } from 'apollo-client';
import { InMemoryCache } from 'apollo-cache-inmemory';
import { resolvers } from './resolvers';
import typeDefs from './schema';
import defaults from './defaults';
const cache = new InMemoryCache();
const client = new ApolloClient({
cache,
resolvers,
typeDefs,
});
... | typescript | MIT | b9dd7e11789e5becf76d60a7cf48d00144c630d1 | 2026-01-05T05:00:12.129121Z | false |
timeseriesadmin/timeseriesadmin | https://github.com/timeseriesadmin/timeseriesadmin/blob/b9dd7e11789e5becf76d60a7cf48d00144c630d1/src/app/apollo/resolvers/connections.test.ts | src/app/apollo/resolvers/connections.test.ts | import { saveConnection, deleteConnection } from './connections';
import { getConnections, updateConnections } from '../../helpers/connections';
jest.mock('../../helpers/connections');
describe('connections resolvers', () => {
test('saveConnection() new', () => {
(getConnections as any).mockImplementation(() => ... | typescript | MIT | b9dd7e11789e5becf76d60a7cf48d00144c630d1 | 2026-01-05T05:00:12.129121Z | false |
timeseriesadmin/timeseriesadmin | https://github.com/timeseriesadmin/timeseriesadmin/blob/b9dd7e11789e5becf76d60a7cf48d00144c630d1/src/app/apollo/resolvers/connections.ts | src/app/apollo/resolvers/connections.ts | import { getConnections, updateConnections } from '../../helpers/connections';
import { FormParams } from './form';
export const saveConnection = (
_obj: void,
{ url, u, p, db, unsafeSsl }: FormParams,
{ cache }: any,
): null => {
const connections = getConnections(cache);
const connection = {
url,
... | typescript | MIT | b9dd7e11789e5becf76d60a7cf48d00144c630d1 | 2026-01-05T05:00:12.129121Z | false |
timeseriesadmin/timeseriesadmin | https://github.com/timeseriesadmin/timeseriesadmin/blob/b9dd7e11789e5becf76d60a7cf48d00144c630d1/src/app/apollo/resolvers/form.test.ts | src/app/apollo/resolvers/form.test.ts | import { updateForm } from './form';
import storage from '../../helpers/storage';
jest.mock('../../helpers/storage');
describe('form resolvers', () => {
test('updateForm()', async () => {
const setMock = jest.fn();
const writeMock = jest.fn();
const readMock = jest.fn(() => ({
form: {
url: ... | typescript | MIT | b9dd7e11789e5becf76d60a7cf48d00144c630d1 | 2026-01-05T05:00:12.129121Z | false |
timeseriesadmin/timeseriesadmin | https://github.com/timeseriesadmin/timeseriesadmin/blob/b9dd7e11789e5becf76d60a7cf48d00144c630d1/src/app/apollo/resolvers/executeQuery.ts | src/app/apollo/resolvers/executeQuery.ts | import { queryBase } from '../../helpers/queryBase';
export const executeQuery = async (_: void, queryParams: any): Promise<{}> => {
// TODO: ensure LIMIT if not provided but ONLY for SELECTs
// if (q.indexOf('select') === 0 && q.indexOf('limit') === -1) {
// q += ' limit 100'; // TODO: increase LIMIT value
//... | typescript | MIT | b9dd7e11789e5becf76d60a7cf48d00144c630d1 | 2026-01-05T05:00:12.129121Z | false |
timeseriesadmin/timeseriesadmin | https://github.com/timeseriesadmin/timeseriesadmin/blob/b9dd7e11789e5becf76d60a7cf48d00144c630d1/src/app/apollo/resolvers/form.ts | src/app/apollo/resolvers/form.ts | import storage from '../../helpers/storage';
import gql from 'graphql-tag';
export interface FormParams {
url: string;
u?: string;
p?: string;
db?: string; // required for most SELECT and SHOW queries
q?: string;
unsafeSsl?: boolean;
}
export const updateForm = (
_obj: void,
submitted: any, //FormPara... | typescript | MIT | b9dd7e11789e5becf76d60a7cf48d00144c630d1 | 2026-01-05T05:00:12.129121Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.