Skip to content

Commit

Permalink
fix: ensure everything is compiling
Browse files Browse the repository at this point in the history
  • Loading branch information
antho-bunny committed Aug 14, 2024
1 parent d36ca8e commit d3e59a3
Show file tree
Hide file tree
Showing 19 changed files with 29 additions and 634 deletions.
8 changes: 6 additions & 2 deletions .github/actions/setup-project/action.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: 'Setup Node, pnpm & install'
name: 'Setup Node, deno, pnpm & install'

description: 'Setup node, pnpm and install'
description: 'Setup node, deno, pnpm and install'

runs:
using: "composite"
Expand All @@ -15,6 +15,10 @@ runs:
cache: 'pnpm'
cache-dependency-path: './pnpm-lock.yaml'

- uses: denoland/setup-deno@v1
with:
deno-version: v1.x

- name: Install
shell: bash
run: pnpm install --frozen-lockfile
Expand Down
2 changes: 1 addition & 1 deletion example/deno-simple-http-page/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"license": "MIT",
"scripts": {
"lint": "deno lint",
"test": "deno test",
"test": "deno test --allow-none",
"build": "echo \"No build with Deno!\"",
"dev": "deno run src/main.ts",
"release": "echo \"No release\""
Expand Down
8 changes: 6 additions & 2 deletions example/deno-simple-http-page/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
import * as BunnySDK from "@bunny.net/edgescript-sdk";

function sleep(ms: number): Promise<void> {
return new Promise((resolve) => setTimeout(resolve, ms));
}

console.log("Starting server...");
BunnySDK.net.http.serve({ port: 8080, hostname: '127.0.0.1' }, async (req) => {
console.log("blbl");
console.log(req.url);
console.log(`[INFO]: ${req.method} - ${req.url}`);
await sleep(1);
return new Response("blbl");
});
6 changes: 0 additions & 6 deletions example/simple-http-page/coverage/clover.xml

This file was deleted.

1 change: 0 additions & 1 deletion example/simple-http-page/coverage/coverage-final.json

This file was deleted.

224 changes: 0 additions & 224 deletions example/simple-http-page/coverage/lcov-report/base.css

This file was deleted.

87 changes: 0 additions & 87 deletions example/simple-http-page/coverage/lcov-report/block-navigation.js

This file was deleted.

Binary file not shown.
Loading

0 comments on commit d3e59a3

Please sign in to comment.