-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update dependencies in typescript code and fix formatting
- Loading branch information
Showing
14 changed files
with
48 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
// Use fork until https://github.com/piyush-bhatt/deno-port/pull/1 is merged | ||
import { getAvailablePort } from "https://raw.githubusercontent.com/Nitive/deno-port/fix-getting-random-port/mod.ts" | ||
import { exists } from "https://deno.land/[email protected]/fs/exists.ts" | ||
import * as path from "https://deno.land/[email protected]/path/mod.ts" | ||
import * as yaml from "https://deno.land/[email protected]/encoding/yaml.ts" | ||
import { exists } from "https://deno.land/[email protected]/fs/exists.ts" | ||
import * as path from "https://deno.land/[email protected]/path/mod.ts" | ||
import { | ||
assertEquals, | ||
assertStringIncludes, | ||
} from "https://deno.land/[email protected]/testing/asserts.ts" | ||
} from "https://deno.land/[email protected]/testing/asserts.ts" | ||
import * as yaml from "https://deno.land/[email protected]/yaml/mod.ts" | ||
import { getAvailablePort } from "https://raw.githubusercontent.com/Nitive/deno-port/fix-getting-random-port/mod.ts" | ||
import { ignoreNotFoundError } from "../src/utils/ignore-not-found-error.ts" | ||
import { waitForProcess } from "../src/utils/process.ts" | ||
|
||
|
@@ -635,8 +635,7 @@ Deno.test({ | |
}) | ||
|
||
Deno.test({ | ||
name: | ||
"should clean deno-bundle.js and helm package if push wasn't successful", | ||
name: "should clean deno-bundle.js and helm package if push wasn't successful", | ||
ignore: !runAllTests, | ||
async fn() { | ||
const chartPath = path.join(chartsBin, "one-service") | ||
|
@@ -702,8 +701,7 @@ Deno.test({ | |
}) | ||
|
||
Deno.test({ | ||
name: | ||
"should use deno-bundle.js if `--deno-bundle prefer` have been passed and deno-bundle.js exists", | ||
name: "should use deno-bundle.js if `--deno-bundle prefer` have been passed and deno-bundle.js exists", | ||
async fn() { | ||
const chartPath = path.join(chartsBin, "prebundled") | ||
|
||
|
@@ -730,8 +728,7 @@ Deno.test({ | |
}) | ||
|
||
Deno.test({ | ||
name: | ||
"should use deno-templates/index.ts if `--deno-bundle ignore` have been passed", | ||
name: "should use deno-templates/index.ts if `--deno-bundle ignore` have been passed", | ||
async fn() { | ||
const chartPath = path.join(chartsBin, "prebundled") | ||
|
||
|
@@ -758,8 +755,7 @@ Deno.test({ | |
}) | ||
|
||
Deno.test({ | ||
name: | ||
"should use deno-templates/index.ts if --deno-bundle have not been passed", | ||
name: "should use deno-templates/index.ts if --deno-bundle have not been passed", | ||
async fn() { | ||
const chartPath = path.join(chartsBin, "prebundled") | ||
|
||
|
@@ -784,8 +780,7 @@ Deno.test({ | |
}) | ||
|
||
Deno.test({ | ||
name: | ||
"should throw error if `--deno-bundle require` have been passed but deno-bundle.js do not exist", | ||
name: "should throw error if `--deno-bundle require` have been passed but deno-bundle.js do not exist", | ||
async fn() { | ||
const chartPath = path.join(chartsBin, "one-service") | ||
|
||
|
@@ -803,8 +798,7 @@ Deno.test({ | |
}) | ||
|
||
Deno.test({ | ||
name: | ||
"should not throw error if `--deno-bundle prefer` have been passed and deno-bundle.js do not exist", | ||
name: "should not throw error if `--deno-bundle prefer` have been passed and deno-bundle.js do not exist", | ||
async fn() { | ||
const chartPath = path.join(chartsBin, "one-service") | ||
|
||
|
@@ -890,8 +884,7 @@ Deno.test({ | |
}) | ||
|
||
Deno.test({ | ||
name: | ||
"should successfuly run `helm deno template` with remote deno chart (with --repo option)", | ||
name: "should successfuly run `helm deno template` with remote deno chart (with --repo option)", | ||
ignore: !runAllTests, | ||
async fn() { | ||
const { status, stdout, stderr } = await runHelmDeno([ | ||
|
@@ -932,8 +925,7 @@ async function addStableRepo() { | |
} | ||
|
||
Deno.test({ | ||
name: | ||
"should successfuly run `helm deno template` with remote chart (with helm repo add)", | ||
name: "should successfuly run `helm deno template` with remote chart (with helm repo add)", | ||
ignore: !runAllTests, | ||
async fn() { | ||
const tmpRepo = await addStableRepo() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import args from "https://deno.land/x/[email protected]/wrapper.ts" | ||
import { | ||
PartialOption, | ||
BinaryFlag, | ||
PartialOption, | ||
} from "https://deno.land/x/[email protected]/flag-types.ts" | ||
import { Choice, Text } from "https://deno.land/x/[email protected]/value-types.ts" | ||
import args from "https://deno.land/x/[email protected]/wrapper.ts" | ||
|
||
type LogLevel = "info" | "debug" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import args from "https://deno.land/x/[email protected]/wrapper.ts" | ||
import { | ||
PartialOption, | ||
BinaryFlag, | ||
PartialOption, | ||
} from "https://deno.land/x/[email protected]/flag-types.ts" | ||
import { Text } from "https://deno.land/x/[email protected]/value-types.ts" | ||
import args from "https://deno.land/x/[email protected]/wrapper.ts" | ||
|
||
const textOption = (flag: string) => | ||
PartialOption(flag, { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import args from "https://deno.land/x/[email protected]/wrapper.ts" | ||
import { CollectOption } from "https://deno.land/x/[email protected]/flag-types.ts" | ||
import { Text } from "https://deno.land/x/[email protected]/value-types.ts" | ||
import args from "https://deno.land/x/[email protected]/wrapper.ts" | ||
|
||
const textOption = (flag: string, alias?: readonly string[]) => | ||
CollectOption(flag, { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import type { ChartContext } from "../std/mod.ts" | ||
import { ensureDir } from "https://deno.land/[email protected]/fs/ensure_dir.ts" | ||
import { exists } from "https://deno.land/[email protected]/fs/exists.ts" | ||
import * as path from "https://deno.land/[email protected]/path/mod.ts" | ||
import * as yaml from "https://deno.land/[email protected]/yaml/mod.ts" | ||
import type { HelmDenoOptions } from "../args/parse-helm-deno-args.ts" | ||
import * as yaml from "https://deno.land/[email protected]/encoding/yaml.ts" | ||
import { exists } from "https://deno.land/[email protected]/fs/exists.ts" | ||
import { ensureDir } from "https://deno.land/[email protected]/fs/ensure_dir.ts" | ||
import * as path from "https://deno.land/[email protected]/path/mod.ts" | ||
import type { ChartContext } from "../std/mod.ts" | ||
import { ignoreNotFoundError } from "../utils/ignore-not-found-error.ts" | ||
import { waitForProcess } from "../utils/process.ts" | ||
|
||
|
@@ -106,13 +106,8 @@ export async function renderDenoChart( | |
chartPath: string, | ||
denoOptions: HelmDenoOptions | ||
): Promise<{ debug: string } | undefined> { | ||
const { | ||
deno, | ||
importer, | ||
templateFolderPath, | ||
bundlePath, | ||
indexFilePath, | ||
} = getPaths(chartPath) | ||
const { deno, importer, templateFolderPath, bundlePath, indexFilePath } = | ||
getPaths(chartPath) | ||
await ensureDir(templateFolderPath) | ||
|
||
const isDenoChart = | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
import { exists } from "https://deno.land/[email protected]/fs/exists.ts" | ||
import { copy } from "https://deno.land/[email protected]/fs/copy.ts" | ||
import * as yaml from "https://deno.land/[email protected]/encoding/yaml.ts" | ||
import * as path from "https://deno.land/[email protected]/path/mod.ts" | ||
import { Chart } from "./chart-types.ts" | ||
import { copy } from "https://deno.land/[email protected]/fs/copy.ts" | ||
import { exists } from "https://deno.land/[email protected]/fs/exists.ts" | ||
import * as path from "https://deno.land/[email protected]/path/mod.ts" | ||
import * as yaml from "https://deno.land/[email protected]/yaml/mod.ts" | ||
import { withErrorMsg } from "../std/mod.ts" | ||
import { ignoreNotFoundError } from "../utils/ignore-not-found-error.ts" | ||
import { Chart } from "./chart-types.ts" | ||
|
||
export async function copyChart(chartPath: string, destination: string) { | ||
const destinationExists = await exists(chartPath) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import type { ChartContext, Release } from "../std/mod.ts" | ||
import { copy } from "https://deno.land/[email protected]/fs/copy.ts" | ||
import { ensureDir } from "https://deno.land/[email protected]/fs/ensure_dir.ts" | ||
import * as path from "https://deno.land/[email protected]/path/mod.ts" | ||
import * as yaml from "https://deno.land/[email protected]/encoding/yaml.ts" | ||
import { copy } from "https://deno.land/[email protected]/fs/copy.ts" | ||
import { ensureDir } from "https://deno.land/[email protected]/fs/ensure_dir.ts" | ||
import * as path from "https://deno.land/[email protected]/path/mod.ts" | ||
import * as yaml from "https://deno.land/[email protected]/yaml/mod.ts" | ||
import { parseHelmTemplateArgs } from "../args/parse-helm-template-args.ts" | ||
import type { ChartContext, Release } from "../std/mod.ts" | ||
import { ignoreNotFoundError } from "../utils/ignore-not-found-error.ts" | ||
import { waitForProcess } from "../utils/process.ts" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters