Skip to content

Commit

Permalink
chore: switched to stricter-standard, updated deps, ci cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
bergos committed Jun 29, 2021
1 parent 7be795b commit e5d1bee
Show file tree
Hide file tree
Showing 13 changed files with 23 additions and 54 deletions.
2 changes: 1 addition & 1 deletion packages/rdf/.github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ jobs:
strategy:
matrix:
node:
- '12'
- '14'
- '16'
steps:
Expand All @@ -16,3 +15,4 @@ jobs:
node-version: ${{ matrix.node }}
- run: npm install
- run: npm test
- run: npm run coverage
31 changes: 0 additions & 31 deletions packages/rdf/.github/workflows/test.yml

This file was deleted.

1 change: 0 additions & 1 deletion packages/rdf/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.nyc_output
coverage
node_modules
package-lock.json
2 changes: 1 addition & 1 deletion packages/rdf/lib/cube/buildCubeShape/Cube.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import TermMap from '@rdfjs/term-map'
import clownface from 'clownface'
import rdf from 'rdf-ext'
import TermMap from '@rdfjs/term-map'
import Dimension from './Dimension.js'
import * as ns from './namespaces.js'

Expand Down
4 changes: 2 additions & 2 deletions packages/rdf/lib/cube/buildCubeShape/Dimension.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import clownface from 'clownface'
import rdf from 'rdf-ext'
import TermMap from '@rdfjs/term-map'
import TermSet from '@rdfjs/term-set'
import clownface from 'clownface'
import rdf from 'rdf-ext'
import * as ns from './namespaces.js'

const datatypeParsers = new TermMap([
Expand Down
4 changes: 2 additions & 2 deletions packages/rdf/lib/cube/buildCubeShape/index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import clownface from 'clownface'
import TermMap from '@rdfjs/term-map'
import TermSet from '@rdfjs/term-set'
import clownface from 'clownface'
import rdf from 'rdf-ext'
import { Transform } from 'readable-stream'
import urlJoin from '../../urlJoin.js'
import Cube from './Cube.js'
import * as ns from './namespaces.js'
import urlJoin from '../../urlJoin.js'

function defaultCube ({ observationSet }) {
const observationSetIri = observationSet && observationSet.value
Expand Down
2 changes: 1 addition & 1 deletion packages/rdf/lib/cube/toObservation.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { URL } from 'url'
import clownface from 'clownface'
import namespace from '@rdfjs/namespace'
import TermMap from '@rdfjs/term-map'
import TermSet from '@rdfjs/term-set'
import clownface from 'clownface'
import rdf from 'rdf-ext'
import { Transform } from 'readable-stream'
import dateToId from '../dateToId.js'
Expand Down
19 changes: 10 additions & 9 deletions packages/rdf/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
"type": "module",
"scripts": {
"coverage": "codecov",
"lint": "standard",
"test": "nyc --reporter=lcov mocha"
"test": "stricter-standard && c8 --reporter=lcov --reporter=text mocha"
},
"repository": {
"type": "git",
Expand All @@ -24,19 +23,21 @@
"@rdfjs/namespace": "^1.1.0",
"@rdfjs/term-map": "^1.0.0",
"@rdfjs/term-set": "^1.0.1",
"clownface": "^1.0.0",
"rdf-ext": "^1.3.0",
"clownface": "^1.3.0",
"rdf-ext": "^1.3.2",
"rdf-transform-triple-to-quad": "^1.0.2",
"readable-stream": "^3.6.0"
},
"devDependencies": {
"@rdfjs/to-ntriples": "^1.0.2",
"codecov": "^3.6.5",
"c8": "^7.7.3",
"codecov": "^3.8.2",
"get-stream": "^6.0.1",
"into-stream": "^5.1.1",
"isstream": "^0.1.2",
"mocha": "^8.4.0",
"nyc": "^15.0.1",
"standard": "^16.0.3"
"mocha": "^9.0.1",
"stricter-standard": "^0.2.0"
},
"engines": {
"node": ">= 14.0.0"
}
}
2 changes: 1 addition & 1 deletion packages/rdf/test/PatternMatcher.test.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { strictEqual } from 'assert'
import { describe, it } from 'mocha'
import rdf from 'rdf-ext'
import { ex } from './support/namespaces.js'
import PatternMatcher from '../lib/PatternMatcher.js'
import { ex } from './support/namespaces.js'

describe('PatternMatcher', () => {
it('should be a constructor', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/rdf/test/cube/buildCubeShape.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import { termToNTriples as toNT } from '@rdfjs/to-ntriples'
import { isDuplex } from 'isstream'
import { describe, it } from 'mocha'
import rdf from 'rdf-ext'
import buildCubeShape from '../../lib/cube/buildCubeShape/index.js'
import createObservationsStream from '../support/createObservationsStream.js'
import datasetStreamToClownface from '../support/datasetStreamToClownface.js'
import * as ns from '../support/namespaces.js'
import buildCubeShape from '../../lib/cube/buildCubeShape/index.js'

function checkMinMax (result, min, max) {
const propertyShape = result.has(ns.sh.path, ns.ex.property)
Expand Down
4 changes: 2 additions & 2 deletions packages/rdf/test/cube/toObservation.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import { isDuplex } from 'isstream'
import { describe, it } from 'mocha'
import rdf from 'rdf-ext'
import { Readable } from 'readable-stream'
import * as ns from '../support/namespaces.js'
import dateToId from '../../lib/dateToId.js'
import toObservation from '../../lib/cube/toObservation.js'
import dateToId from '../../lib/dateToId.js'
import * as ns from '../support/namespaces.js'

function createMeasure ({ term = ns.ex('topic/a') } = {}) {
return clownface({ dataset: rdf.dataset(), term })
Expand Down
2 changes: 1 addition & 1 deletion packages/rdf/test/mapMatch.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { isDuplex } from 'isstream'
import { describe, it } from 'mocha'
import rdf from 'rdf-ext'
import { Readable } from 'readable-stream'
import * as ns from './support/namespaces.js'
import mapMatch from '../mapMatch.js'
import * as ns from './support/namespaces.js'

describe('mapMatch', () => {
it('should be a factory', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/rdf/test/setGraph.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { isDuplex } from 'isstream'
import { describe, it } from 'mocha'
import rdf from 'rdf-ext'
import { Readable } from 'readable-stream'
import * as ns from './support/namespaces.js'
import setGraph from '../setGraph.js'
import * as ns from './support/namespaces.js'

describe('setGraph', () => {
it('should be a factory', () => {
Expand Down

0 comments on commit e5d1bee

Please sign in to comment.