Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderOMara committed Nov 16, 2024
0 parents commit 880c581
Show file tree
Hide file tree
Showing 14 changed files with 815 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
root = true

[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = tab
indent_size = 4
charset = utf8

[*.{yml,yaml}]
indent_style = space
indent_size = 2
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf
69 changes: 69 additions & 0 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: CD

on:
push:
branches-ignore:
- '**'
tags:
- 'v**'

jobs:
jsr:
name: JSR

runs-on: ubuntu-latest

permissions:
contents: read
id-token: write

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Deno
uses: denoland/setup-deno@v2
with:
deno-version: 2.0.6

- name: Version
run: deno task version "${GITHUB_REF#refs/tags/v}"

- name: Publish
run: deno publish --allow-dirty

npm:
name: NPM

runs-on: ubuntu-latest

permissions:
contents: read
id-token: write

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Deno
uses: denoland/setup-deno@v2
with:
deno-version: 2.0.6

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22.11.0
registry-url: https://registry.npmjs.org/

- name: Version
run: deno task version "${GITHUB_REF#refs/tags/v}"

- name: Build NPM prod
run: deno task npm prod

- name: Publish
working-directory: npm
run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
211 changes: 211 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,211 @@
name: CI

on:
push:
branches:
- '**'
tags-ignore:
- '**'
pull_request:

jobs:
test:
strategy:
matrix:
config:
- deno-version: 2.0.6
- deno-version: 2.0.0
- deno-version: 1.46.3

name: Deno ${{ matrix.config.deno-version }}

runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Deno
uses: denoland/setup-deno@v2
with:
deno-version: ${{ matrix.config.deno-version }}

- name: Legacy
if: startsWith(matrix.config.deno-version, '1.')
run: rm deno.lock

- name: Test
run: deno task test

- name: Coverage
run: deno coverage

check:
name: Check

runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Deno
uses: denoland/setup-deno@v2
with:
deno-version: 2.0.6

- name: Docs
run: deno task docs

- name: Artifact docs
uses: actions/upload-artifact@v4
with:
name: docs
path: docs

- name: Linted
run: deno task linted

- name: Formatted
run: deno task formatted

- name: Publishable
run: deno task publishable

npm-dev:
name: NPM dev

runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Deno
uses: denoland/setup-deno@v2
with:
deno-version: 2.0.6

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22.11.0

- name: Build NPM
run: deno task npm dev

- name: Artifact NPM
uses: actions/upload-artifact@v4
with:
name: npm-dev
path: |
npm
!npm/node_modules
npm-prod:
name: NPM prod

runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Deno
uses: denoland/setup-deno@v2
with:
deno-version: 2.0.6

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22.11.0

- name: Build NPM
run: deno task npm prod

- name: Artifact NPM
uses: actions/upload-artifact@v4
with:
name: npm-prod
path: |
npm
!npm/node_modules
- name: Check Publish
working-directory: npm
run: npm publish --dry-run

node:
strategy:
matrix:
node-version:
- 23.1.0
- 22.11.0
- 20.9.0
- 18.12.0

name: Node ${{ matrix.node-version }}

needs: npm-dev

runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Artifact NPM
uses: actions/download-artifact@v4
with:
name: npm-dev
path: npm

- name: Install
working-directory: npm
run: npm ci

- name: Test
working-directory: npm
run: npm run test

bun:
strategy:
matrix:
bun-version:
- 1.1.34
- 1.0.0

name: Bun ${{ matrix.bun-version }}

needs: npm-dev

runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: ${{ matrix.bun-version }}

- name: Artifact NPM
uses: actions/download-artifact@v4
with:
name: npm-dev
path: npm

- name: Install
working-directory: npm
run: bun install

- name: Test
working-directory: npm
run: bun run test
14 changes: 14 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db

.vscode

/coverage
/docs
/vendor
/npm
21 changes: 21 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright 2024 hqtsm authors

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.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# HQTSM: DataView

Extra DataView functions
Loading

0 comments on commit 880c581

Please sign in to comment.