-
-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
1,456 additions
and
1,401 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,17 @@ | ||
### Description | ||
|
||
Please explain the changes you made here. | ||
|
||
### Issue Related | ||
|
||
- Link to the related issue: | ||
### Related Issue | ||
Link to the related issue: | ||
|
||
### Type of Change (select one and follow subtasks) | ||
|
||
- [ ] Documentation (README.md) | ||
- [ ] Maintenance or repo-level work (e.g. linting, build, tests, refactoring, etc.) | ||
- [ ] Bug fix (non-breaking change which fixes an issue) | ||
- [ ] New feature (non-breaking change which adds functionality) | ||
- [ ] Is this a mainstream benefit or an edge case? | ||
- [ ] Is it worth the bytes? | ||
- [ ] I have included test coverage | ||
- [ ] Breaking change (fix or feature that would cause existing functionality/userland code to not work as expected) | ||
- [ ] Explain why a breaking change is necessary: | ||
- [ ] This change requires (or is) a documentation update | ||
- [ ] I have added necessary local documentation (if appropriate) | ||
- [ ] I have added necessary [itty.dev](https://github.com/kwhitley/itty.dev) documentation (if appropriate) | ||
|
||
### Testing | ||
|
||
Please describe the tests that you ran to verify your changes. | ||
|
||
### Checklist | ||
|
||
- [ ] I have read the [CONTRIBUTING](../CONTRIBUTING.md) doc |
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,21 @@ | ||
name: lint | ||
|
||
on: | ||
push: | ||
branches: [v4.x] | ||
pull_request: | ||
branches: [v4.x] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: '16.x' | ||
- name: Install dependencies | ||
run: yarn | ||
- run: yarn lint |
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 |
---|---|---|
|
@@ -110,4 +110,7 @@ dist | |
docs/dist | ||
docs/dist-ssr | ||
docs/*.local | ||
docs/pages/README.md | ||
docs/pages/README.md | ||
|
||
# JetBrains tools | ||
.idea |
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
File renamed without changes.
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,20 @@ | ||
const { createServerAdapter } = require('@whatwg-node/server') | ||
const { createServer } = require('http') | ||
require('isomorphic-fetch') | ||
const { Router, error, json } = require('../dist/index.js') | ||
|
||
const router = Router() | ||
|
||
router.get('/', () => 'Success!').all('*', () => error(404)) | ||
|
||
const ittyServer = createServerAdapter((...args) => | ||
router | ||
.handle(...args) | ||
.then(json) | ||
.catch(error) | ||
) | ||
|
||
// Then use it in any environment | ||
const httpServer = createServer(ittyServer) | ||
httpServer.listen(3001) | ||
console.log('listening at https://localhost:3001') |
Oops, something went wrong.