-
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[NO-ISSUE] Add serveStatic middleware (#1)
- feat: initial serveStatic implementation - refactor: clean up examples. - refactor: remove superfluous verification code given we have static type checking. - refactor: remove unnecessary file path parsing. - chore: remove old typings folder. - chore: update docs, lockfile etc. - feat: add benchmarks github action - feat: update API docs with `serveStatic` middleware section
- Loading branch information
1 parent
54ceed5
commit dc60ae7
Showing
86 changed files
with
1,694 additions
and
841 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Test | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
branches: [master] | ||
|
||
jobs: | ||
benchmark: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
deno-version: [1.0.2] | ||
|
||
steps: | ||
- name: Install wrk package | ||
run: | | ||
curl https://bazel.build/bazel-release.pub.gpg | sudo apt-key add - | ||
sudo apt-get update | ||
sudo apt-get install build-essential libssl-dev git -y | ||
git clone https://github.com/wg/wrk.git wrk | ||
cd wrk | ||
make | ||
# move the executable to somewhere in your PATH, ex: | ||
sudo cp wrk /usr/local/bin | ||
- uses: actions/checkout@v2 | ||
- name: Use Deno ${{ matrix.deno-version }} | ||
uses: denolib/setup-deno@master | ||
with: | ||
deno-version: ${{ matrix.deno-version }} | ||
- name: Run Benchmark Tests | ||
run: | | ||
results=$(echo "**Benchmark Results**:$(make benchmark)") | ||
results="${results//'%'/'%25'}" | ||
results="${results//$'\n'/'%0A'}" | ||
results="${results//$'\r'/'%0D'}" | ||
echo "::set-output name=results::$results" | ||
id: run_benchmark_tests | ||
- name: Post Results To PR | ||
uses: mshick/add-pr-comment@v1 | ||
with: | ||
message: ${{ steps.run_benchmark_tests.outputs.results }} | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
allow-repeats: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ future: true | |
encoding: "UTF-8" | ||
include: | ||
- "_*_.html" | ||
- "_*_.*.html" | ||
- "_*_.*.html" |
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.