-
Notifications
You must be signed in to change notification settings - Fork 0
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
0 parents
commit 7c73bee
Showing
20 changed files
with
1,284 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: '' | ||
labels: '' | ||
assignees: j3lte | ||
|
||
--- | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**Runtime info:** | ||
- [ ] Deno | ||
- [ ] Node | ||
- OS: [e.g. iOS] | ||
- Version [e.g. 22] | ||
|
||
**To Reproduce** | ||
Steps to reproduce the behavior: | ||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' | ||
4. See error | ||
|
||
**Expected behavior** | ||
A clear and concise description of what you expected to happen. | ||
|
||
**Screenshots** | ||
If applicable, add screenshots to help explain your problem. | ||
|
||
**Additional context** | ||
Add any other context about the problem here. |
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 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Is your feature request related to a problem? Please describe.** | ||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||
|
||
**Describe the solution you'd like** | ||
A clear and concise description of what you want to happen. | ||
|
||
**Describe alternatives you've considered** | ||
A clear and concise description of any alternative solutions or features you've considered. | ||
|
||
**Additional context** | ||
Add any other context or screenshots about the feature request here. |
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,36 @@ | ||
name: Build NPM package (On Demand) | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: "Release version (x.y.z):" | ||
required: true | ||
|
||
jobs: | ||
release: | ||
name: Build NPM package (On Demand) | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Deno | ||
uses: denoland/setup-deno@v1 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18.x | ||
registry-url: 'https://registry.npmjs.org' | ||
|
||
- name: Run Deno dnt | ||
run: deno task npm ${{ github.event.inputs.version }} | ||
|
||
- name: Check Version | ||
run: cat ./npm/package.json | jq .version | ||
|
||
# Disabled for now | ||
# - name: Publish to NPM | ||
# run: cd ./npm && yarn publish --verbose --access public --new-version ${{ github.event.inputs.version }} | ||
# env: | ||
# NODE_AUTH_TOKEN: ${{ secrets.NPMJS_ACCESS_TOKEN }} |
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,35 @@ | ||
name: Build NPM package (On Release) | ||
|
||
on: | ||
release: | ||
types: | ||
- published | ||
|
||
jobs: | ||
release: | ||
name: Build NPM package (On Demand) | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Deno | ||
uses: denoland/setup-deno@v1 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18.x | ||
registry-url: 'https://registry.npmjs.org' | ||
|
||
- name: Run Deno dnt | ||
run: deno task npm ${{ github.ref_name }} | ||
|
||
- name: Check Version | ||
run: cat ./npm/package.json | jq .version | ||
|
||
# Disabled for now | ||
# - name: Publish to NPM | ||
# run: cd ./npm && yarn publish --verbose --access public --new-version ${{ github.ref_name }} | ||
# env: | ||
# NODE_AUTH_TOKEN: ${{ secrets.NPMJS_ACCESS_TOKEN }} |
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,40 @@ | ||
name: Deno CI (test) | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
jobs: | ||
test: | ||
name: Tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Deno | ||
uses: denoland/setup-deno@v1 | ||
|
||
- name: Check format | ||
run: deno fmt --check | ||
|
||
- name: Check linting | ||
run: deno lint | ||
|
||
- name: Tests | ||
run: deno task test | ||
|
||
- name: Coverage | ||
run: deno task coverage | ||
|
||
# Disabled for now | ||
# - name: Upload coverage reports to Codecov | ||
# uses: codecov/codecov-action@v3 | ||
# with: | ||
# token: ${{ secrets.CODECOV_TOKEN }} | ||
# file: ./.coverage/coverage.lcov | ||
# flags: unittests | ||
# name: codecov-umbrella | ||
# fail_ci_if_error: true |
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,9 @@ | ||
.env* | ||
*.json | ||
!deno.json | ||
.DS_Store | ||
node_modules | ||
npm/ | ||
_local_testing.ts | ||
.coverage/ | ||
coverage.lcov |
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 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright © CaffCode 2023. All Rights Reserved. | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. |
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,15 @@ | ||
# Pastedeno | ||
|
||
Pastebin Client for Deno/Node | ||
|
||
> Work in progress! | ||
> This is a fork of pastebin-ts, which is updated to work with Deno and Node | ||
## License | ||
|
||
[MIT](LICENSE) | ||
|
||
--- | ||
|
||
[!["Buy Me A Coffee"](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://www.buymeacoffee.com/j3lte) |
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 @@ | ||
{ | ||
"tasks": { | ||
"format": "deno fmt ./src/", | ||
"lint": "deno lint ./src/", | ||
"test": "deno test --coverage=.coverage", | ||
"coverage": "deno coverage .coverage --lcov --exclude=/test/ --exclude=/scripts/ > ./.coverage/coverage.lcov", | ||
"test:watch": "deno test --watch", | ||
"clean": "rm -r ./coverage", | ||
"npm": "deno run -A ./scripts/build-npm.ts" | ||
}, | ||
"fmt": { | ||
"options": { | ||
"indentWidth": 2, | ||
"lineWidth": 100, | ||
"singleQuote": false, | ||
"useTabs": false, | ||
"proseWrap": "preserve" | ||
}, | ||
"files": { | ||
"exclude": [ | ||
".coverage/", | ||
"npm/", | ||
".github/", | ||
"README.md" | ||
] | ||
} | ||
}, | ||
"lint": { | ||
"rules": { | ||
"include": [ | ||
"ban-untagged-todo", | ||
"explicit-function-return-type" | ||
] | ||
}, | ||
"exclude": [ | ||
"npm/" | ||
] | ||
}, | ||
"test": { | ||
"exclude": [ | ||
"npm/", | ||
"src/node/", | ||
".coverage/" | ||
] | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,16 @@ | ||
export { | ||
assertEquals, | ||
assertMatch, | ||
assertNotEquals, | ||
assertThrows, | ||
} from "https://deno.land/[email protected]/testing/asserts.ts"; | ||
import * as mf from "https://deno.land/x/[email protected]/mod.ts"; | ||
export { mf }; | ||
export { | ||
afterAll, | ||
afterEach, | ||
beforeAll, | ||
beforeEach, | ||
describe, | ||
it, | ||
} from "https://deno.land/[email protected]/testing/bdd.ts"; |
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 @@ | ||
// WIP https://github.com/aegrumet/umbilical/blob/32331bdac3131e5cef140c5798204e48fd5b988e/mocks/fetch.ts |
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 @@ | ||
export * from "./src/mod.ts"; |
Oops, something went wrong.