Skip to content

Commit

Permalink
chore: fix nest.land config
Browse files Browse the repository at this point in the history
  • Loading branch information
umbopepato committed Oct 23, 2020
1 parent e2a268f commit 92a232b
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 36 deletions.
6 changes: 3 additions & 3 deletions deps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ export * as path from "https://deno.land/std@0.70.0/path/mod.ts";
export * as logger from "https://deno.land/std@0.70.0/log/mod.ts";
export {
blue,
yellow,
red,
bold,
gray,
red,
yellow,
} from "https://deno.land/std@0.70.0/fmt/colors.ts";
export { ConsoleHandler } from "https://deno.land/std@0.70.0/log/handlers.ts";
export { LogRecord } from "https://deno.land/std@0.70.0/log/logger.ts";
export { LevelName } from "https://deno.land/std@0.70.0/log/levels.ts";
export {
Command,
StringType,
CompletionsCommand,
StringType,
} from "https://deno.land/x/cliffy@v0.14.3/command/mod.ts";
2 changes: 1 addition & 1 deletion egg.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: velociraptor
description: An npm-style script runner for Deno
stable: false
unstable: true
version: 1.0.0-beta.15
repository: 'https://github.com/umbopepato/velociraptor/'
entry: /cli.ts
Expand Down
9 changes: 2 additions & 7 deletions src/export_scripts.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,14 @@
import { ConfigData } from "./load_config.ts";
import { validateConfigData } from "./validate_config_data.ts";
import { validateScript } from "./validate_script.ts";
import { isWindows, OneOrMore, makeFileExecutable } from "./util.ts";
import { isWindows, makeFileExecutable, OneOrMore } from "./util.ts";
import { normalizeScript } from "./normalize_script.ts";
import { CompoundCommandItem } from "./command.ts";
import { log } from "./logger.ts";
import { isParallel } from "./command.ts";
import { buildCommandString } from "./build_command_string.ts";
import { escape } from "./util.ts";
import {
path,
existsSync,
moveSync,
ensureDirSync,
} from "../deps.ts";
import { ensureDirSync, existsSync, moveSync, path } from "../deps.ts";

const VR_MARK = "Generated by velociraptor";

Expand Down
6 changes: 1 addition & 5 deletions src/load_config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
import {
parseYaml,
path,
existsSync,
} from "../deps.ts";
import { existsSync, parseYaml, path } from "../deps.ts";
import { ScriptsConfiguration } from "./scripts_config.ts";

const CONFIG_FILE_NAMES = ["scripts", "velociraptor"];
Expand Down
8 changes: 4 additions & 4 deletions src/logger.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import {
blue,
yellow,
red,
bold,
logger,
ConsoleHandler,
LogRecord,
LevelName,
logger,
LogRecord,
red,
yellow,
} from "../deps.ts";

const LEVEL_PREFIX: { [key: number]: string } = {
Expand Down
2 changes: 1 addition & 1 deletion src/merge_params.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ScriptOptions, FlagsObject, AllowFlags } from "./scripts_config.ts";
import { AllowFlags, FlagsObject, ScriptOptions } from "./scripts_config.ts";

export function mergeParams(
childParams: ScriptOptions,
Expand Down
10 changes: 3 additions & 7 deletions src/normalize_script.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
import {
ScriptDefinition,
isParallelScripts,
ParallelScripts,
isScriptObject,
ParallelScripts,
ScriptDefinition,
ScriptOptions,
} from "./scripts_config.ts";
import {
ParallelCommands,
Command,
isParallel,
} from "./command.ts";
import { Command, isParallel, ParallelCommands } from "./command.ts";
import { mergeParams } from "./merge_params.ts";

/**
Expand Down
10 changes: 4 additions & 6 deletions src/run_commands.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import { isWindows, OneOrMore, escape } from "./util.ts";
import { escape, isWindows, OneOrMore } from "./util.ts";
import { log } from "./logger.ts";
import { EnvironmentVariables } from "./scripts_config.ts";
import {
EnvironmentVariables,
} from "./scripts_config.ts";
import {
ParallelCommands,
Command,
isParallel,
CompoundCommandItem,
isParallel,
ParallelCommands,
} from "./command.ts";
import { buildCommandString } from "./build_command_string.ts";

Expand Down
4 changes: 2 additions & 2 deletions src/scripts_info.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { blue, bold, gray } from "../deps.ts";
import {
ScriptsConfiguration,
ScriptDefinition,
isScriptObject,
ScriptDefinition,
ScriptsConfiguration,
} from "./scripts_config.ts";
import { flattenCommands, normalizeScript } from "./normalize_script.ts";

Expand Down

0 comments on commit 92a232b

Please sign in to comment.