Skip to content

Commit 7cb9e8b

Browse files
committedAug 7, 2024
chore: Initial commit
0 parents  commit 7cb9e8b

File tree

8 files changed

+187
-0
lines changed

8 files changed

+187
-0
lines changed
 

Diff for: ‎.github/FUNDING.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# These are supported funding model platforms
2+
3+
github: [lambdalisue] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4+
patreon: # Replace with a single Patreon username
5+
open_collective: # Replace with a single Open Collective username
6+
ko_fi: # Replace with a single Ko-fi username
7+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
liberapay: # Replace with a single Liberapay username
10+
issuehunt: # Replace with a single IssueHunt username
11+
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
12+
polar: # Replace with a single Polar username
13+
buy_me_a_coffee: # Replace with a single Buy Me a Coffee username
14+
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

Diff for: ‎.github/workflows/jsr.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: jsr
2+
3+
env:
4+
DENO_VERSION: 1.x
5+
6+
on:
7+
push:
8+
tags:
9+
- "v*"
10+
11+
permissions:
12+
contents: read
13+
id-token: write
14+
15+
jobs:
16+
publish:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
with:
21+
fetch-depth: 0
22+
- uses: denoland/setup-deno@v1
23+
with:
24+
deno-version: ${{ env.DENO_VERSION }}
25+
- name: Publish
26+
run: |
27+
deno run -A jsr:@david/publish-on-tag@^0.1.4

Diff for: ‎.github/workflows/test.yml

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Test
2+
3+
env:
4+
DENO_VERSION: 1.x
5+
6+
on:
7+
push:
8+
branches:
9+
- main
10+
pull_request:
11+
workflow_dispatch:
12+
13+
jobs:
14+
check:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
- uses: denoland/setup-deno@v1
19+
with:
20+
deno-version: ${{ env.DENO_VERSION }}
21+
- name: Format
22+
run: |
23+
deno fmt --check
24+
- name: Lint
25+
run: deno lint
26+
- name: Type check
27+
run: deno task check
28+
29+
test:
30+
runs-on: ubuntu-latest
31+
steps:
32+
- uses: actions/checkout@v4
33+
- uses: denoland/setup-deno@v1
34+
with:
35+
deno-version: ${{ env.DENO_VERSION }}
36+
- name: Test
37+
run: |
38+
deno task test:coverage
39+
timeout-minutes: 5
40+
- run: |
41+
deno task coverage --lcov > coverage.lcov
42+
- uses: codecov/codecov-action@v4
43+
with:
44+
os: ${{ runner.os }}
45+
files: ./coverage.lcov
46+
token: ${{ secrets.CODECOV_TOKEN }}
47+
48+
jsr-publish:
49+
runs-on: ubuntu-latest
50+
steps:
51+
- uses: actions/checkout@v4
52+
- uses: denoland/setup-deno@v1
53+
with:
54+
deno-version: ${{ env.DENO_VERSION }}
55+
- name: Publish (dry-run)
56+
run: |
57+
deno publish --dry-run

Diff for: ‎.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/docs
2+
deno.lock
3+
.coverage

Diff for: ‎.gitmessage

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
2+
# **Conventional Commits**
3+
#
4+
# <type>[optional scope]: <description>
5+
#
6+
# feat: feature (minor)
7+
# deps: dependencies (minor/patch)
8+
# fix: bug fix (patch)
9+
# refactor: refactoring code
10+
# test: test fix; no code change
11+
# docs: documentation fix; no code change
12+
# style: formatting, missing semi colons, etc; no code change
13+
# chore: updating build tasks, package manager configs, etc; no code change
14+
#
15+
# **Install**
16+
#
17+
# git config commit.template .gitmessage
18+
#
19+
# **Reference**
20+
#
21+
# - https://www.conventionalcommits.org/en/v1.0.0/

Diff for: ‎LICENSE

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Copyright 2024 jsr-core
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy
4+
of this software and associated documentation files (the "Software"), to deal
5+
in the Software without restriction, including without limitation the rights
6+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
copies of the Software, and to permit persons to whom the Software is
8+
furnished to do so, subject to the following conditions:
9+
10+
The above copyright notice and this permission notice shall be included in all
11+
copies or substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19+
SOFTWARE.
20+

Diff for: ‎README.md

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# iterutil
2+
3+
[![jsr](https://jsr.io/badges/@core/iterutil)](https://jsr.io/@core/iterutil)
4+
[![test](https://github.com/jsr-core/iterutil/workflows/Test/badge.svg)](https://github.com/jsr-core/iterutil/actions?query=workflow%3ATest)
5+
[![codecov](https://codecov.io/github/jsr-core/iterutil/graph/badge.svg?token=pfbLRGU5AM)](https://codecov.io/github/jsr-core/iterutil)
6+
7+
Iterator / AsyncIterator utility pack for JavaScript and TypeScript.
8+
9+
## License
10+
11+
The code follows MIT license written in [LICENSE](./LICENSE). Contributors need
12+
to agree that any modifications sent in this repository follow the license.

Diff for: ‎deno.jsonc

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"name": "@core/iterutil",
3+
"version": "0.0.0",
4+
"exports": {
5+
".": "./mod.ts"
6+
},
7+
"exclude": [
8+
".coverage/**"
9+
],
10+
"publish": {
11+
"include": [
12+
"**/*.ts",
13+
"README.md",
14+
"LICENSE"
15+
],
16+
"exclude": [
17+
"**/*_test.ts",
18+
"**/*_bench.ts",
19+
".*"
20+
]
21+
},
22+
"imports": {
23+
"@core/iterutil": "./mod.ts"
24+
},
25+
"tasks": {
26+
"check": "deno check **/*.ts",
27+
"test": "deno test -A --doc --parallel --shuffle",
28+
"test:coverage": "deno task test --coverage=.coverage",
29+
"coverage": "deno coverage .coverage",
30+
"update": "deno run --allow-env --allow-read --allow-write=. --allow-run=git,deno --allow-net=jsr.io,registry.npmjs.org jsr:@molt/cli ./*.ts",
31+
"update:commit": "deno task -q update --commit --prefix deps: --pre-commit=fmt,lint"
32+
}
33+
}

0 commit comments

Comments
 (0)
Please sign in to comment.