Skip to content

Commit

Permalink
Merge pull request #1 from fluent-ci-templates/use-deps
Browse files Browse the repository at this point in the history
Use deps
  • Loading branch information
tsirysndr authored Sep 20, 2023
2 parents d97aed4 + 1b63ef4 commit b17f916
Show file tree
Hide file tree
Showing 9 changed files with 74 additions and 64 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ dagger run fluentci .
You can also use this pipeline programmatically:

```ts
import Client, { connect } from "https://sdk.fluentci.io/v0.1.7/mod.ts";
import { preview, up } from "https://pkg.fluentci.io/[email protected].0/mod.ts";
import Client, { connect } from "https://sdk.fluentci.io/v0.1.9/mod.ts";
import { preview, up } from "https://pkg.fluentci.io/[email protected].1/mod.ts";

function pipeline(src = ".") {
connect(async (client: Client) => {
Expand Down
102 changes: 47 additions & 55 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions deps.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
export { assertEquals } from "https://deno.land/[email protected]/testing/asserts.ts";
import Client from "https://sdk.fluentci.io/v0.1.9/mod.ts";
export default Client;

export {
connect,
uploadContext,
Container,
} from "https://sdk.fluentci.io/v0.1.9/mod.ts";
export { brightGreen } from "https://deno.land/[email protected]/fmt/colors.ts";
export { withDevbox } from "https://nix.fluentci.io/v0.5.1/src/dagger/steps.ts";
export { stringifyTree } from "https://esm.sh/[email protected]";

export * as FluentGitlabCI from "https://deno.land/x/[email protected]/mod.ts";
export * as FluentGithubActions from "https://deno.land/x/[email protected]/mod.ts";
export * as FluentCircleCI from "https://deno.land/x/[email protected]/mod.ts";
export * as FluentAzurePipelines from "https://deno.land/x/[email protected]/mod.ts";
export * as FluentAWSCodePipeline from "https://deno.land/x/[email protected]/mod.ts";
2 changes: 1 addition & 1 deletion import_map.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"imports": {
"@fluentci.io/dagger": "https://sdk.fluentci.io/v0.1.7/mod.ts",
"@fluentci.io/dagger": "https://sdk.fluentci.io/v0.1.9/mod.ts",
"@dagger.io/dagger": "https://esm.sh/v128/*@dagger.io/[email protected]",
"graphql-tag": "https://esm.sh/v128/[email protected]",
"graphql-request": "https://esm.sh/v128/[email protected]",
Expand Down
2 changes: 1 addition & 1 deletion src/dagger/jobs.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Client from "@fluentci.io/dagger";
import Client from "../../deps.ts";
import { filterObjectByPrefix, withEnvs } from "./lib.ts";

export enum Job {
Expand Down
2 changes: 1 addition & 1 deletion src/dagger/lib.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Container } from "@fluentci.io/dagger";
import { Container } from "../../deps.ts";

export function filterObjectByPrefix<T>(
obj: Record<string, T>,
Expand Down
2 changes: 1 addition & 1 deletion src/dagger/lib_test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { assertEquals } from "https://deno.land/[email protected]/testing/asserts.ts";
import { assertEquals } from "../../deps.ts";
import { filterObjectByPrefix } from "./lib.ts";

Deno.test(function filterObjectByPrefixTest() {
Expand Down
4 changes: 2 additions & 2 deletions src/dagger/list_jobs.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { brightGreen } from "https://deno.land/[email protected]/fmt/colors.ts";
import { brightGreen } from "../../deps.ts";
import { runnableJobs, jobDescriptions, Job } from "./jobs.ts";
import { stringifyTree } from "https://esm.sh/[email protected]";
import { stringifyTree } from "../../deps.ts";

const tree = {
name: brightGreen("pulumi_pipeline"),
Expand Down
2 changes: 1 addition & 1 deletion src/dagger/pipeline.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Client, { connect, uploadContext } from "@fluentci.io/dagger";
import Client, { connect, uploadContext } from "../../deps.ts";
import * as jobs from "./jobs.ts";

const { preview, runnableJobs, exclude } = jobs;
Expand Down

0 comments on commit b17f916

Please sign in to comment.