Skip to content

Commit

Permalink
Merge 1c3ac10 into 453af97
Browse files Browse the repository at this point in the history
  • Loading branch information
tpluscode committed Mar 8, 2023
2 parents 453af97 + 1c3ac10 commit 363994a
Show file tree
Hide file tree
Showing 311 changed files with 25,475 additions and 26,548 deletions.
6 changes: 1 addition & 5 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
/lib/
*.d.ts
*.js
!jest.config.js
src/datasets/
ontologies/
51 changes: 0 additions & 51 deletions .eslintrc.js

This file was deleted.

9 changes: 9 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": [ "@tpluscode" ],
"parserOptions": {
"project": "./tsconfig.json"
},
"env": {
"mocha": true
}
}
20 changes: 20 additions & 0 deletions .github/check-deps.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash

VOCABS=$(jq '.name' ontologies/*/package.json)

for vocab in $VOCABS
do
HAS_DEPENDENCY=$(grep "$vocab" packages/vocabularies/package.json)
if [ "$HAS_DEPENDENCY" ]
then
echo "${vocab}"
else
MISSING=true
echo "𝙭 ${vocab}"
fi
done

if [ $MISSING ]
then
exit 1
fi
18 changes: 12 additions & 6 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,28 @@ jobs:

strategy:
matrix:
node-version: [12.x, 14.x, 15.x]
node-version: [16, 18]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: yarn install --frozen-lockfile
- run: npm run test
- run: npm run build
- run: npm run test:esm
- run: node ./bin/vocab prefix rdf

- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

check-deps:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: apt-get update
- run: apt-get install jq
- run: .github/check-deps.sh
16 changes: 0 additions & 16 deletions .github/workflows/release.yml

This file was deleted.

3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@ coverage
*.d.ts.map
*.js
*.mjs
!loadDataset/index.mjs
src/datasets/
!mocha-setup.js
ontologies/*/index.ts
3 changes: 0 additions & 3 deletions .npmignore

This file was deleted.

8 changes: 0 additions & 8 deletions babel.config.json

This file was deleted.

13 changes: 0 additions & 13 deletions babel.test.config.json

This file was deleted.

7 changes: 4 additions & 3 deletions examples.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
const { vocabularies, prefixes, expand, shrink } = require('.')
/* eslint-disable no-console,import/no-extraneous-dependencies */
import { vocabularies, prefixes, expand, shrink } from '@zazuko/vocabularies'

Promise.resolve().then(run)

async function run () {
async function run() {
console.warn('Count all available prefixes:')
console.warn('| Prefix | #Quads |')
console.warn('| ---- | ---- |')
Expand All @@ -29,7 +30,7 @@ async function run () {
console.log(`\nshrink ${expand('xsd:Boolean')} to ${shrink(expand('xsd:Boolean'))}`)
}

async function printQuadsCount (prefixSelection) {
async function printQuadsCount(prefixSelection) {
const result = await vocabularies({ only: prefixSelection })

Object.entries(result).forEach(([prefix, dataset]) => {
Expand Down
22 changes: 0 additions & 22 deletions loadDataset/index.mjs

This file was deleted.

5 changes: 0 additions & 5 deletions mocha-setup.js

This file was deleted.

41 changes: 0 additions & 41 deletions modules.ts

This file was deleted.

0 comments on commit 363994a

Please sign in to comment.