Skip to content

Commit

Permalink
feat: add logger as initial jsr test
Browse files Browse the repository at this point in the history
  • Loading branch information
frytg committed Nov 22, 2024
1 parent f63441d commit 1c71a59
Show file tree
Hide file tree
Showing 9 changed files with 466 additions and 18 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# adapted from https://github.com/denoland/std/blob/main/.github/workflows/workspace_publish.yml

name: workspace publish

on:
release:
types: [published]
workflow_dispatch:

jobs:
publish:
runs-on: ubuntu-latest
timeout-minutes: 30

permissions:
contents: read
id-token: write

steps:
- name: Clone repository
uses: actions/checkout@v4

- name: Set up Deno
uses: denoland/setup-deno@v2
with:
deno-version: canary

- name: Format
run: deno fmt --check

# - name: Test
# run: deno task test

- name: Publish to JSR
run: deno publish
37 changes: 20 additions & 17 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,21 +1,24 @@
MIT License
This is free and unencumbered software released into the public domain.

Copyright (c) 2024 Dan
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.

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:
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
of the public at large and to the detriment of our heirs and
successors. We intend this dedication to be an overt act of
relinquishment in perpetuity of all present and future rights to this
software under copyright law.

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 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.

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.
For more information, please refer to <https://unlicense.org>
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
# js-utils
# js-utils

A collection of utilities for TypeScript and JavaScript.

This repository is work in progress.

## License

[Unlicense](./LICENSE) - also see [unlicense.org](https://unlicense.org)
43 changes: 43 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"$schema": "https://biomejs.dev/schemas/1.9.3/schema.json",
"files": {
"maxSize": 2097152,
"ignore": ["*.vue"]
},
"formatter": {
"indentStyle": "tab",
"formatWithErrors": true,
"lineWidth": 120
},
"javascript": {
"formatter": {
"quoteStyle": "single",
"semicolons": "asNeeded",
"trailingCommas": "all"
},
"globals": ["cast", "Bun"]
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"correctness": {
"all": true,
"noNodejsModules": "off",
"noUndeclaredDependencies": "info"
},
"performance": {
"all": true
},
"security": {
"all": true
},
"nursery": {
"useSortedClasses": "info"
}
}
},
"organizeImports": {
"enabled": true
}
}
35 changes: 35 additions & 0 deletions deno.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"compilerOptions": {
"strict": true,
"exactOptionalPropertyTypes": true,
"useUnknownInCatchVariables": true,
"noImplicitOverride": true,
"noUncheckedIndexedAccess": true
},
"exclude": [".git"],
"fmt": {
"useTabs": true,
"lineWidth": 120,
"semiColons": false,
"singleQuote": true
},
"tasks": {
"check": "deno fmt --check"
},
"lint": {
"rules": {
"include": [
"camelcase",
"no-sync-fn-in-async-fn",
"single-var-declarator",
"verbatim-module-syntax",
"no-console"
]
}
},
"workspace": ["./logger"],
"imports": {
"@biomejs/biome": "npm:@biomejs/biome@^1.9.4",
"@types/node": "npm:@types/node@^22.9.0"
}
}
Loading

0 comments on commit 1c71a59

Please sign in to comment.