Skip to content

Commit 914ba1e

Browse files
authored
Update/rdf lens (#8)
* update rdf-lens * add gh action tests * move to DEBUG logging * bump dependencies * add configuration from template * 0.2.0
1 parent e58d025 commit 914ba1e

38 files changed

+4053
-2384
lines changed

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
lib
2+
node_modules

.eslintrc.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"es2021": true
5+
},
6+
"extends": [
7+
"eslint:recommended",
8+
"plugin:@typescript-eslint/recommended",
9+
"prettier"
10+
],
11+
"parser": "@typescript-eslint/parser",
12+
"parserOptions": {
13+
"ecmaVersion": "latest",
14+
"sourceType": "module"
15+
},
16+
"plugins": ["@typescript-eslint"],
17+
"rules": {
18+
"indent": ["error", 4],
19+
"linebreak-style": ["error", "unix"],
20+
"quotes": ["error", "double"],
21+
"semi": ["error", "always"],
22+
"@typescript-eslint/no-unused-vars": "warn"
23+
}
24+
}

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "npm"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"

.github/workflows/build-test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,5 @@ jobs:
1919
bun-version: latest
2020

2121
- run: bun i # Install dependencies
22-
- run: bun test # Run tests
22+
- run: bun test # Run tests
23+
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Node.js Package
2+
3+
on:
4+
workflow_dispatch:
5+
release:
6+
types: [created]
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
- uses: actions/setup-node@v3
14+
with:
15+
node-version: 20
16+
- run: npm ci
17+
- run: npm run build
18+
- run: npm run tests
19+
20+
publish:
21+
needs: build
22+
runs-on: ubuntu-latest
23+
permissions:
24+
contents: read
25+
packages: write
26+
steps:
27+
- uses: actions/checkout@v3
28+
- uses: actions/setup-node@v3
29+
with:
30+
node-version: 20
31+
registry-url: https://npm.pkg.github.com/
32+
- run: npm ci
33+
- run: npm publish
34+
env:
35+
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

.github/workflows/test.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: bun-test
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- 'master'
7+
jobs:
8+
my-job:
9+
name: bun-test
10+
runs-on: ubuntu-latest
11+
steps:
12+
# ...
13+
- uses: actions/checkout@v4
14+
- uses: oven-sh/setup-bun@v1
15+
16+
# run any `bun` or `bunx` command
17+
- run: bun install
18+
- run: bun test
19+

.gitignore

Lines changed: 178 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,180 @@
1-
node_modules
1+
2+
bin/bundle.mjs
3+
# Outputs
24
lib
5+
6+
# Based on https://raw.githubusercontent.com/github/gitignore/main/Node.gitignore
7+
8+
# Logs
9+
10+
logs
11+
_.log
12+
npm-debug.log_
13+
yarn-debug.log*
14+
yarn-error.log*
15+
lerna-debug.log*
16+
.pnpm-debug.log*
17+
18+
# Caches
19+
20+
.cache
21+
22+
# Diagnostic reports (https://nodejs.org/api/report.html)
23+
24+
report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json
25+
26+
# Runtime data
27+
28+
pids
29+
_.pid
30+
_.seed
31+
*.pid.lock
32+
33+
# Directory for instrumented libs generated by jscoverage/JSCover
34+
35+
lib-cov
36+
37+
# Coverage directory used by tools like istanbul
38+
39+
coverage
40+
*.lcov
41+
42+
# nyc test coverage
43+
44+
.nyc_output
45+
46+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
47+
48+
.grunt
49+
50+
# Bower dependency directory (https://bower.io/)
51+
52+
bower_components
53+
54+
# node-waf configuration
55+
56+
.lock-wscript
57+
58+
# Compiled binary addons (https://nodejs.org/api/addons.html)
59+
60+
build/Release
61+
62+
# Dependency directories
63+
64+
node_modules/
65+
jspm_packages/
66+
67+
# Snowpack dependency directory (https://snowpack.dev/)
68+
69+
web_modules/
70+
71+
# TypeScript cache
72+
73+
*.tsbuildinfo
74+
75+
# Optional npm cache directory
76+
77+
.npm
78+
79+
# Optional eslint cache
80+
81+
.eslintcache
82+
83+
# Optional stylelint cache
84+
85+
.stylelintcache
86+
87+
# Microbundle cache
88+
89+
.rpt2_cache/
90+
.rts2_cache_cjs/
91+
.rts2_cache_es/
92+
.rts2_cache_umd/
93+
94+
# Optional REPL history
95+
96+
.node_repl_history
97+
98+
# Output of 'npm pack'
99+
100+
*.tgz
101+
102+
# Yarn Integrity file
103+
104+
.yarn-integrity
105+
106+
# dotenv environment variable files
107+
108+
.env
109+
.env.development.local
110+
.env.test.local
111+
.env.production.local
112+
.env.local
113+
114+
# parcel-bundler cache (https://parceljs.org/)
115+
116+
.parcel-cache
117+
118+
# Next.js build output
119+
120+
.next
121+
out
122+
123+
# Nuxt.js build / generate output
124+
125+
.nuxt
3126
dist
4-
bin/bundle.mjs
127+
128+
# Gatsby files
129+
130+
# Comment in the public line in if your project uses Gatsby and not Next.js
131+
132+
# https://nextjs.org/blog/next-9-1#public-directory-support
133+
134+
# public
135+
136+
# vuepress build output
137+
138+
.vuepress/dist
139+
140+
# vuepress v2.x temp and cache directory
141+
142+
.temp
143+
144+
# Docusaurus cache and generated files
145+
146+
.docusaurus
147+
148+
# Serverless directories
149+
150+
.serverless/
151+
152+
# FuseBox cache
153+
154+
.fusebox/
155+
156+
# DynamoDB Local files
157+
158+
.dynamodb/
159+
160+
# TernJS port file
161+
162+
.tern-port
163+
164+
# Stores VSCode versions used for testing VSCode extensions
165+
166+
.vscode-test
167+
168+
# yarn v2
169+
170+
.yarn/cache
171+
.yarn/unplugged
172+
.yarn/build-state.yml
173+
.yarn/install-state.gz
174+
.pnp.*
175+
176+
# IntelliJ based IDEs
177+
.idea
178+
179+
# Finder (MacOS) folder config
180+
.DS_Store

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npx lint-staged

.lintstagedrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"*.ts": ["eslint --fix", "prettier --write"]
3+
}

.npmignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*
2+
!lib

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
lib
2+
node_modules

.prettierrc.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"trailingComma": "all",
3+
"tabWidth": 4,
4+
"semi": true,
5+
"singleQuote": false
6+
}

LICENSE

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

bun.lockb

29.1 KB
Binary file not shown.

input.ttl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<jr> a js:JsReaderChannel.
2020
<jw> a js:JsWriterChannel.
2121
[ ] a js:Send;
22-
js:msg "Hallo world";
22+
js:msg "Hello";
2323
js:sendWriter <jw>.
2424

2525
[ ] a js:Resc;

0 commit comments

Comments
 (0)