Skip to content

Commit

Permalink
Merge pull request #65 from thefrontside/deno-config-updates-1.36.x
Browse files Browse the repository at this point in the history
update deno config for capat with 1.36.x (and earlier?)
  • Loading branch information
jbolda authored Sep 14, 2023
2 parents 9007df1 + d67dae7 commit 5a84250
Show file tree
Hide file tree
Showing 11 changed files with 895 additions and 543 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/cli-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,9 @@ jobs:
uses: actions/checkout@v3

- name: setup deno
# uses: denoland/setup-deno@v1
uses: denoland/setup-deno@004814556e37c54a2f6e31384c9e18e983317366
uses: denoland/setup-deno@v1
with:
deno-version: v1.25.x
deno-version: v1.x

- name: Get Version
id: vars
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/npm-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ jobs:
uses: actions/checkout@v3

- name: setup deno
# uses: denoland/setup-deno@v1
uses: denoland/setup-deno@004814556e37c54a2f6e31384c9e18e983317366
uses: denoland/setup-deno@v1
with:
deno-version: v1.x

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: setup deno
uses: denoland/setup-deno@v1
with:
deno-version: "1.25.1"
deno-version: v1.x

- name: format
run: deno fmt --check
Expand Down
26 changes: 10 additions & 16 deletions cli/deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,26 +19,20 @@
"rules": {
"exclude": ["prefer-const", "require-yield", "no-inner-declarations"]
},
"files": {
"exclude": ["dist", "example", "bundled-assets.js", "node_modules"]
}
"exclude": ["dist", "example", "bundled-assets.js", "node_modules"]
},
"fmt": {
"files": {
"exclude": [
"README.md",
"build/",
"node_modules",
"example",
"bundled-assets.js",
"dist"
]
}
"exclude": [
"README.md",
"build/",
"node_modules",
"example",
"bundled-assets.js",
"dist"
]
},
"test": {
"files": {
"exclude": ["build", "node_modules", "example"]
}
"exclude": ["build", "node_modules", "example"]
},
"compilerOptions": {
"jsx": "react-jsx",
Expand Down
707 changes: 707 additions & 0 deletions cli/deno.lock

Large diffs are not rendered by default.

12 changes: 3 additions & 9 deletions deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,12 @@
"rules": {
"exclude": ["prefer-const", "require-yield", "no-inner-declarations"]
},
"files": {
"exclude": ["build", "cli", "www/"]
}
"exclude": ["build", "cli", "www/"]
},
"fmt": {
"files": {
"exclude": ["README.md", "build/", "cli", "www/"]
}
"exclude": ["README.md", "build/", "cli", "www/"]
},
"test": {
"files": {
"exclude": ["build", "cli", "www/"]
}
"exclude": ["build", "cli", "www/"]
}
}
327 changes: 101 additions & 226 deletions deno.lock

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions src/deps.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
export * as graphql from "https://esm.sh/[email protected]";
export * as graphql from "https://esm.sh/[email protected]?pin=v132";
export * from "https://deno.land/x/[email protected]/mod.ts";
export * from "https://deno.land/x/[email protected]/index.ts";
export { assert } from "https://deno.land/[email protected]/testing/asserts.ts";
export { default as globToRegExp } from "https://esm.sh/[email protected]";
export { default as hash } from "https://esm.sh/[email protected]";
export { default as globToRegExp } from "https://esm.sh/[email protected]?pin=v132";
export { default as hash } from "https://esm.sh/[email protected]?pin=v132";

import * as alea from "https://esm.sh/[email protected]";
import * as alea from "https://esm.sh/[email protected]?pin=v132";
export const Alea = alea.default;
1 change: 0 additions & 1 deletion src/graphql/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ export interface Node {

type NonOverridableKeys = "__typename" | "id";

//deno-lint-ignore ban-types
export type Preset<T> = T extends object ? {
[P in keyof T as P extends NonOverridableKeys ? never : P]?: Preset<T[P]>;
}
Expand Down
331 changes: 57 additions & 274 deletions www/deno.lock

Large diffs are not rendered by default.

16 changes: 9 additions & 7 deletions www/test/www.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import twindConfig from "../twind.config.ts";

describe("www", () => {
let controller: AbortController;
let closed: Promise<void>;
beforeEach(async function () {
controller = new AbortController();
let opts = {
Expand All @@ -26,11 +25,14 @@ describe("www", () => {
plugins: [twindPlugin(twindConfig)],
});
await new Promise((onListen) => {
closed = Deno.serve(cxt.handler() as Deno.ServeHandler, {
...opts,
signal: controller.signal,
onListen,
});
Deno.serve(
{
...opts,
signal: controller.signal,
onListen,
},
cxt.handler() as Deno.ServeHandler
);
});
});
afterEach(async () => {
Expand All @@ -56,7 +58,7 @@ describe("www", () => {
expect(response.ok).toEqual(true);
expect(response.headers.get("Content-Type")).toMatch("text/html");
expect(html).toContain(
`<base href="http://example.com/path/to/subdir/" />`,
`<base href="http://example.com/path/to/subdir/" />`
);
});
});

0 comments on commit 5a84250

Please sign in to comment.