Skip to content

Commit

Permalink
update gagic, std, react version
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshixmk committed Oct 19, 2020
1 parent 7b1267b commit b48e944
Show file tree
Hide file tree
Showing 11 changed files with 18 additions and 34 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
export PATH="$DENO_INSTALL/bin:$PATH"
deno --version
deno run --allow-net --allow-write --allow-read --allow-env ./mod.ts -u $USERNAME -t $TOKEN -f markdown
deno install --unstable --allow-read --allow-write --allow-net -n gagic https://deno.land/x/gagic@0.9.3/mod.ts
deno install --unstable --allow-read --allow-write --allow-net -n gagic https://deno.land/x/gagic@0.9.5/mod.ts
gagic build
env:
USERNAME: ${{ secrets.USERNAME }}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ After processing according to the ranking logic below, limit to only the necessa

## Hosting using Markdown format
``` Shell
$ deno run --unstable --allow-read --allow-write --allow-net https://deno.land/x/gagic@0.9.2/mod.ts build --serve --watch
$ deno run --unstable --allow-read --allow-write --allow-net https://deno.land/x/gagic@0.9.5/mod.ts build --serve --watch
```

## Plan
Expand Down
19 changes: 7 additions & 12 deletions deps.ts
Original file line number Diff line number Diff line change
@@ -1,29 +1,24 @@
import coffee from "https://deno.land/x/coffee@1.0.0/mod.ts";
export { encode } from "https://deno.land/std@0.70.0/encoding/base64.ts";
export {
Markdown,
link,
} from "https://deno.land/x/deno_markdown@0.3/mod.ts";
export { encode } from "https://deno.land/std@0.74.0/encoding/base64.ts";
export { link, Markdown } from "https://deno.land/x/deno_markdown@0.3/mod.ts";

export { green, red } from "https://deno.land/std@0.70.0/fmt/colors.ts";
export { green, red } from "https://deno.land/std@0.74.0/fmt/colors.ts";
export { args } from "https://deno.land/x/args@2.0.7/wrapper.ts";
export {
EarlyExitFlag,
PartialOption,
Option,
PartialOption,
} from "https://deno.land/x/args@2.0.7/flag-types.ts";
export {
FiniteNumber,
Choice,
FiniteNumber,
Text,
} from "https://deno.land/x/args@2.0.7/value-types.ts";
export {
PARSE_FAILURE,
} from "https://deno.land/x/args@2.0.7/symbols.ts";
export { PARSE_FAILURE } from "https://deno.land/x/args@2.0.7/symbols.ts";
export { coffee };

// Test dependencies
export {
assert,
assertEquals,
} from "https://deno.land/std@0.70.0/testing/asserts.ts";
} from "https://deno.land/std@0.74.0/testing/asserts.ts";
4 changes: 2 additions & 2 deletions gagic.config.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @deno-types="https://deno.land/x/gagic@0.9.2/src/types/react/v16.13.1/react.d.ts"
import React from "https://dev.jspm.io/react@16.13.1";
// @deno-types="https://deno.land/x/gagic@0.9.5/src/types/react/v16.14.0/react.d.ts"
import React from "https://dev.jspm.io/react@16.14.0";

export default {
root: "/deno-x-ranking/",
Expand Down
6 changes: 1 addition & 5 deletions mod.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
import {
green,
PARSE_FAILURE,
red,
} from "./deps.ts";
import { green, PARSE_FAILURE, red } from "./deps.ts";
import { consoleTable } from "./src/console_table.ts";
import { Csv, MarkdownFile, Table, Tsv } from "./src/domains/Format.ts";
import { SeparatedFileCreator } from "./src/file_creator.ts";
Expand Down
2 changes: 1 addition & 1 deletion src/file_creator.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Repository } from "./domains/repository.ts";
import { FileFormat, Tsv, Csv } from "./domains/Format.ts";
import { Csv, FileFormat, Tsv } from "./domains/Format.ts";

export class SeparatedFileCreator {
private format: FileFormat;
Expand Down
2 changes: 1 addition & 1 deletion src/repositories/deno_repository__test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { fetchLatestMetaByModuleName as fetchMetaByModuleName } from "./deno_rep
Deno.test("fetchLatestMetaByName using promise all", async () => {
const [ranking, std] = await Promise.all([
fetchMetaByModuleName("ranking", "0.1.1"),
fetchMetaByModuleName("std", "0.70.0"),
fetchMetaByModuleName("std", "0.74.0"),
]);
assertEquals(ranking.upload_options.repository, "yoshixmk/deno-x-ranking");
assertEquals(std.upload_options.repository, "denoland/deno");
Expand Down
5 changes: 1 addition & 4 deletions src/repositories/registry_repository__test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import {
assert,
assertEquals,
} from "../../deps.ts";
import { assert, assertEquals } from "../../deps.ts";
import { fetchAll, fetchOne } from "./registry_repository.ts";

Deno.test("fetchOne", async () => {
Expand Down
4 changes: 2 additions & 2 deletions src/services/arg_service.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import {
args,
Choice,
EarlyExitFlag,
Option,
Choice,
PartialOption,
} from "../../deps.ts";
import { Text } from "../../deps.ts";
import { Format, Tsv, Table, MarkdownFile, Csv } from "../domains/Format.ts";
import { Csv, Format, MarkdownFile, Table, Tsv } from "../domains/Format.ts";

export const parseArgs = () => {
const parser = args
Expand Down
1 change: 0 additions & 1 deletion src/services/registry_service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {
fetchLatestMetaByModuleName,
fetchLatestVersionByModuleName,
Meta,

Versions,
} from "../repositories/deno_repository.ts";
import { fetchAll } from "../repositories/registry_repository.ts";
Expand Down
5 changes: 1 addition & 4 deletions src/utils/unique_test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import {
assert,
assertEquals,
} from "../../deps.ts";
import { assert, assertEquals } from "../../deps.ts";
import type { Repository } from "../domains/repository.ts";
import { unique } from "./unique.ts";

Expand Down

0 comments on commit b48e944

Please sign in to comment.