-
-
Notifications
You must be signed in to change notification settings - Fork 1
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 49dfa58
Showing
10 changed files
with
828 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,14 @@ | ||
# These are supported funding model platforms | ||
|
||
github: [lambdalisue] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] | ||
patreon: # Replace with a single Patreon username | ||
open_collective: # Replace with a single Open Collective username | ||
ko_fi: # Replace with a single Ko-fi username | ||
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel | ||
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry | ||
liberapay: # Replace with a single Liberapay username | ||
issuehunt: # Replace with a single IssueHunt username | ||
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry | ||
polar: # Replace with a single Polar username | ||
buy_me_a_coffee: # Replace with a single Buy Me a Coffee username | ||
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] |
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,27 @@ | ||
name: jsr | ||
|
||
env: | ||
DENO_VERSION: 1.x | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v*" | ||
|
||
permissions: | ||
contents: read | ||
id-token: write | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: denoland/setup-deno@v1 | ||
with: | ||
deno-version: ${{ env.DENO_VERSION }} | ||
- name: Publish | ||
run: | | ||
deno run -A jsr:@david/publish-on-tag@^0.1.4 |
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,57 @@ | ||
name: Test | ||
|
||
env: | ||
DENO_VERSION: 1.x | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: denoland/setup-deno@v1 | ||
with: | ||
deno-version: ${{ env.DENO_VERSION }} | ||
- name: Format | ||
run: | | ||
deno fmt --check | ||
- name: Lint | ||
run: deno lint | ||
- name: Type check | ||
run: deno task check | ||
|
||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: denoland/setup-deno@v1 | ||
with: | ||
deno-version: ${{ env.DENO_VERSION }} | ||
- name: Test | ||
run: | | ||
deno task test:coverage | ||
timeout-minutes: 5 | ||
- run: | | ||
deno task coverage --lcov > coverage.lcov | ||
- uses: codecov/codecov-action@v4 | ||
with: | ||
os: ${{ runner.os }} | ||
files: ./coverage.lcov | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
jsr-publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: denoland/setup-deno@v1 | ||
with: | ||
deno-version: ${{ env.DENO_VERSION }} | ||
- name: Publish (dry-run) | ||
run: | | ||
deno publish --dry-run |
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,3 @@ | ||
/docs | ||
deno.lock | ||
.coverage |
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 @@ | ||
|
||
# **Conventional Commits** | ||
# | ||
# <type>[optional scope]: <description> | ||
# | ||
# feat: feature (minor) | ||
# deps: dependencies (minor/patch) | ||
# fix: bug fix (patch) | ||
# refactor: refactoring code | ||
# test: test fix; no code change | ||
# docs: documentation fix; no code change | ||
# style: formatting, missing semi colons, etc; no code change | ||
# chore: updating build tasks, package manager configs, etc; no code change | ||
# | ||
# **Install** | ||
# | ||
# git config commit.template .gitmessage | ||
# | ||
# **Reference** | ||
# | ||
# - https://www.conventionalcommits.org/en/v1.0.0/ |
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 @@ | ||
Copyright 2024 jsr-core | ||
|
||
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,28 @@ | ||
# pipeline | ||
|
||
[![jsr](https://jsr.io/badges/@core/pipeline)](https://jsr.io/@core/pipeline) | ||
[![test](https://github.com/jsr-core/pipeline/workflows/Test/badge.svg)](https://github.com/jsr-core/pipeline/actions?query=workflow%3ATest) | ||
[![codecov](https://codecov.io/github/jsr-core/pipeline/graph/badge.svg?token=pfbLRGU5AM)](https://codecov.io/github/jsr-core/pipeline) | ||
|
||
## Usage | ||
|
||
### pipe | ||
|
||
Pipe a value through a series of operatorfunctions. | ||
|
||
```ts | ||
import { pipe } from "@core/pipeline"; | ||
|
||
const result = pipe( | ||
1, | ||
(v) => v + 1, | ||
(v) => v * 2, | ||
(v) => v.toString(), | ||
); | ||
console.log(result); // "4" | ||
``` | ||
|
||
## License | ||
|
||
The code follows MIT license written in [LICENSE](./LICENSE). Contributors need | ||
to agree that any modifications sent in this repository follow the license. |
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,37 @@ | ||
{ | ||
"name": "@core/pipeline", | ||
"version": "0.0.0", | ||
"exports": { | ||
".": "./mod.ts" | ||
}, | ||
"exclude": [ | ||
".coverage/**" | ||
], | ||
"publish": { | ||
"include": [ | ||
"**/*.ts", | ||
"README.md", | ||
"LICENSE" | ||
], | ||
"exclude": [ | ||
"**/*_test.ts", | ||
"**/*_bench.ts", | ||
".*" | ||
] | ||
}, | ||
"imports": { | ||
"@core/pipeline": "./mod.ts", | ||
"@std/assert": "jsr:@std/assert@^1.0.2", | ||
"@std/jsonc": "jsr:@std/jsonc@^1.0.0", | ||
"@std/path": "jsr:@std/path@^1.0.2", | ||
"@std/testing": "jsr:@std/testing@^1.0.0" | ||
}, | ||
"tasks": { | ||
"check": "deno check **/*.ts", | ||
"test": "deno test -A --doc --parallel --shuffle", | ||
"test:coverage": "deno task test --coverage=.coverage", | ||
"coverage": "deno coverage .coverage", | ||
"update": "deno run --allow-env --allow-read --allow-write=. --allow-run=git,deno --allow-net=jsr.io,registry.npmjs.org jsr:@molt/cli ./*.ts", | ||
"update:commit": "deno task -q update --commit --prefix deps: --pre-commit=fmt,lint" | ||
} | ||
} |
Oops, something went wrong.