Skip to content

Commit

Permalink
Merge pull request #8 from fluent-ci-templates/use-deps
Browse files Browse the repository at this point in the history
add `deps.ts` for managing dependencies
  • Loading branch information
tsirysndr authored Sep 21, 2023
2 parents afd639e + ac923cb commit 009f38a
Show file tree
Hide file tree
Showing 7 changed files with 67 additions and 75 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,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 { djangoTests } from "https://pkg.fluentci.io/django_pipeline@v0.5.0/mod.ts";
import Client, { connect } from "https://sdk.fluentci.io/v0.1.9/mod.ts";
import { djangoTests } from "https://pkg.fluentci.io/django_pipeline@v0.5.1/mod.ts";

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

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

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

export { connect, uploadContext } from "https://sdk.fluentci.io/v0.1.9/mod.ts";
export { brightGreen } from "https://deno.land/std@0.191.0/fmt/colors.ts";
export { withDevbox } from "https://nix.fluentci.io/v0.5.1/src/dagger/steps.ts";
export { stringifyTree } from "https://esm.sh/stringify-tree@1.1.1";

export * as FluentGitlabCI from "https://deno.land/x/fluent_gitlab_ci@v0.4.2/mod.ts";
export * as FluentGithubActions from "https://deno.land/x/fluent_github_actions@v0.2.1/mod.ts";
export * as FluentCircleCI from "https://deno.land/x/fluent_circleci@v0.2.5/mod.ts";
export * as FluentAzurePipelines from "https://deno.land/x/fluent_azure_pipelines@v0.2.0/mod.ts";
export * as FluentAWSCodePipeline from "https://deno.land/x/fluent_aws_codepipeline@v0.2.3/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/dagger@0.8.4",
"graphql-tag": "https://esm.sh/v128/graphql-tag@2.12.6",
"graphql-request": "https://esm.sh/v128/graphql-request@6.1.0",
Expand Down
3 changes: 1 addition & 2 deletions src/dagger/jobs.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Client from "@fluentci.io/dagger";
import { withDevbox } from "https://nix.fluentci.io/v0.5.0/src/dagger/steps.ts";
import Client, { withDevbox } from "../../deps.ts";

export enum Job {
djangoTests = "django-tests",
Expand Down
3 changes: 1 addition & 2 deletions src/dagger/list_jobs.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { brightGreen } from "https://deno.land/std@0.191.0/fmt/colors.ts";
import { brightGreen, stringifyTree } from "../../deps.ts";
import { runnableJobs, jobDescriptions, Job } from "./jobs.ts";
import { stringifyTree } from "https://esm.sh/stringify-tree@1.1.1";

const tree = {
name: brightGreen("django_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 { djangoTests, runnableJobs, exclude } = jobs;
Expand Down

0 comments on commit 009f38a

Please sign in to comment.