Skip to content

Commit

Permalink
refactor: use @withroka packages (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
tugrulates authored Feb 14, 2025
1 parent d13b833 commit 6327664
Show file tree
Hide file tree
Showing 44 changed files with 145 additions and 7,076 deletions.
6 changes: 0 additions & 6 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,9 @@
duolingo:
- changed-files:
- any-glob-to-any-file: duolingo/**
internal:
- changed-files:
- any-glob-to-any-file: internal/**
lonely-planet:
- changed-files:
- any-glob-to-any-file: lonely-planet/**
photos:
- changed-files:
- any-glob-to-any-file: photos/**
testing:
- changed-files:
- any-glob-to-any-file: testing/**
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ jobs:
uses: denoland/setup-deno@v2

- name: Build
# https://github.com/denoland/deno/issues/27988
run: deno task compile --concurrency=1
run: deno task compile

publish:
runs-on: ubuntu-latest
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/title.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,5 @@ jobs:
\*
500px
duolingo
internal
lonely-planet
photos
testing
2 changes: 1 addition & 1 deletion 500px/client.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { GraphQLClient } from "@tugrulates/internal/graphql";
import { GraphQLClient } from "@roka/http/graphql";
import type { Category, Photo, User } from "./types.ts";

/**
Expand Down
2 changes: 1 addition & 1 deletion 500px/main.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Command, EnumType } from "@cliffy/command";
import { Table } from "@cliffy/table";
import { displayVersion } from "@tugrulates/internal/package";
import { displayVersion } from "@roka/package/version";
import { FiveHundredPxClient } from "./client.ts";
import { CATEGORIES } from "./data.ts";
import type { Photo } from "./types.ts";
Expand Down
8 changes: 4 additions & 4 deletions 500px/main_test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { fakeConsole, mockFetch } from "@roka/testing";
import { assertSnapshot } from "@std/testing/snapshot";
import { fakeConsole, mockFetch } from "@tugrulates/testing";
import { main } from "./main.ts";

Deno.test(
Deno.test.ignore(
"500px discover",
async (t) => {
using console = fakeConsole();
Expand All @@ -12,7 +12,7 @@ Deno.test(
},
);

Deno.test(
Deno.test.ignore(
"500px follows <username>",
async (t) => {
using console = fakeConsole();
Expand All @@ -22,7 +22,7 @@ Deno.test(
},
);

Deno.test(
Deno.test.ignore(
"500px photos <username>",
async (t) => {
using console = fakeConsole();
Expand Down
30 changes: 11 additions & 19 deletions deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@
"workspace": [
"./500px",
"./duolingo",
"./internal",
"./lonely-planet",
"./photos",
"./testing"
"./photos"
],
"tasks": {
"version": "deno run -A internal/version.ts",
"version": "deno run -A jsr:@roka/forge/release",
"bump": "gh workflow run bump",
"compile": "deno run -A internal/compile.ts",
"compile": "deno run -A jsr:@roka/forge/compile",
"install": "deno task compile --install=$HOME/.local/bin",
"test": "deno test -A --unstable-kv --doc **/*.ts",
"coverage": "deno task test --coverage && deno coverage --html",
Expand Down Expand Up @@ -44,23 +42,17 @@
"@cliffy/prompt": "jsr:@cliffy/prompt@1.0.0-rc.7",
"@cliffy/table": "jsr:@cliffy/table@1.0.0-rc.7",
"@david/which": "jsr:@david/which@^0.4.1",
"@octokit/openapi-types": "npm:@octokit/openapi-types@^23.0.1",
"@octokit/rest": "npm:@octokit/rest@^21.1.0",
"@std/assert": "jsr:@std/assert@^1.0.11",
"@std/async": "jsr:@std/async@^1.0.10",
"@std/cli": "jsr:@std/cli@^1.0.11",
"@roka/async": "jsr:@roka/async@^0.1.0",
"@roka/cli": "jsr:@roka/cli@^0.1.0",
"@roka/forge": "jsr:@roka/forge@^0.0.2",
"@roka/http": "jsr:@roka/http@^0.1.1",
"@roka/package": "jsr:@roka/package@^0.0.1",
"@roka/testing": "jsr:@roka/testing@^0.1.0",
"@std/collections": "jsr:@std/collections@^1.0.10",
"@std/crypto": "jsr:@std/crypto@^1.0.4",
"@std/encoding": "jsr:@std/encoding@^1.0.7",
"@std/fmt": "jsr:@std/fmt@^1.0.5",
"@std/fs": "jsr:@std/fs@^1.0.10",
"@std/fs": "jsr:@std/fs@^1.0.13",
"@std/path": "jsr:@std/path@^1.0.8",
"@std/regexp": "jsr:@std/regexp@^1.0.1",
"@std/semver": "jsr:@std/semver@^1.0.3",
"@std/testing": "jsr:@std/testing@^1.0.9",
"@std/text": "jsr:@std/text@^1.0.9",
"@urql/core": "npm:@urql/core@^5.1.0",
"@urql/exchange-retry": "npm:@urql/exchange-retry@^1.3.0",
"@std/text": "jsr:@std/text@^1.0.10",
"exiftool-vendored": "npm:exiftool-vendored@^29.0.0",
"exiftool-vendored.exe": "npm:exiftool-vendored.exe@^13.17.0",
"exiftool-vendored.pl": "npm:exiftool-vendored.pl@^13.17.0"
Expand Down
131 changes: 102 additions & 29 deletions deno.lock

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

2 changes: 1 addition & 1 deletion duolingo/client.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { JsonClient } from "@tugrulates/internal/request";
import { JsonClient } from "@roka/http/json";
import type { FeedCard, Friend, League, Reaction, User } from "./types.ts";

/**
Expand Down
2 changes: 1 addition & 1 deletion duolingo/interaction.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { pool } from "@tugrulates/internal/async";
import { pool } from "@roka/async/pool";
import type { DuolingoClient } from "./client.ts";
import { LANGUAGES, REACTIONS } from "./data.ts";
import type {
Expand Down
6 changes: 3 additions & 3 deletions duolingo/main.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Command } from "@cliffy/command";
import { Input, Secret } from "@cliffy/prompt";
import { Table } from "@cliffy/table";
import { pool } from "@tugrulates/internal/async";
import { Config } from "@tugrulates/internal/config";
import { displayVersion } from "@tugrulates/internal/package";
import { pool } from "@roka/async/pool";
import { Config } from "@roka/cli/config";
import { displayVersion } from "@roka/package/version";
import { DuolingoClient } from "./client.ts";
import { LEAGUES } from "./data.ts";
import {
Expand Down
Loading

0 comments on commit 6327664

Please sign in to comment.