Skip to content

Commit

Permalink
WIP: wiring together
Browse files Browse the repository at this point in the history
  • Loading branch information
jeswr committed Mar 27, 2022
1 parent 77d90d2 commit 9c94127
Show file tree
Hide file tree
Showing 10 changed files with 593 additions and 25 deletions.
61 changes: 61 additions & 0 deletions .componentsjs-generator-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
"source": "lib",
"ignorePackagePaths": [
],
"ignoreComponents": [
"NodeJS.ReadableStream",
"Headers",
"Readable",
"LRUCache",
"EventEmitter",


"Error",
"RegExp",
"NodeJS.ReadableStream",
"Headers",
"IQueryEngine",
"ActionContext",
"Map",
"Readable",
"EventEmitter",
"FetchDocumentLoader",
"BindingsToQuadsIterator",
"AsyncIteratorJsonBindings",
"QueryEngineFactory",
"QueryEngineFactoryBase",
"bindingsStreamToGraphQl",
"HttpServiceSparqlEndpoint",
"IQueryResult",
"KEY_CONTEXT_INITIALBINDINGS",
"KEY_CONTEXT_QUERYFORMAT",
"KEY_CONTEXT_GRAPHQL_SINGULARIZEVARIABLES",
"KEY_CONTEXT_LENIENT",
"KEY_CONTEXT_QUERY",
"IQueryOptions",
"IMetadata",
"MetadataBindings",
"MetadataQuads",
"Response",
"RequestInfo",
"RequestInit",


"IQueryableResultStream",
"IQueryableResultBindings",
"IQueryableResultQuads",
"IQueryableResultBoolean",
"IQueryableResultVoid",

"RDF.Stream",
"Omit",
"MediateMediaTyped",
"IActorDereferenceOutput",
"Factory",

"UriTemplate",
"LRUCache"
],
"modulePrefix": {
}
}
3 changes: 3 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ module.exports = {
'unicorn/catch-error-name': ['error', { name: 'error' }],
'unicorn/no-reduce': 'off',
'no-duplicate-imports': 'off', // Incompatible with type imports
'unicorn/consistent-destructuring': 'off',
'unicorn/no-array-callback-reference': 'off',
'unicorn/no-new-array': 'off',

// TS
'@typescript-eslint/lines-between-class-members': ['error', { exceptAfterSingleLine: true }],
Expand Down
Empty file.
5 changes: 4 additions & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,14 @@
"*.md"
],
"message": "Bump to release version %s",
"allowBranch": "master",
"allowBranch": [
"master"
],
"npmClient": "npm"
}
},
"packages": [
"engines/*",
"packages/*"
],
"useWorkspaces": true,
Expand Down
14 changes: 10 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@
"private": true,
"repository": "https://github.com/comunica/comunica-feature-reasoning/",
"workspaces": [
"engines/*",
"packages/*"
],
"engines": {
"node": ">=8.0"
},
"devDependencies": {
"@comunica/actor-abstract-parse": "^2.0.1",
"@rdfjs/types": "^1.1.0",
"@strictsoftware/typedoc-plugin-monorepo": "^0.4.2",
"@types/jest": "^27.4.0",
Expand All @@ -20,6 +22,7 @@
"arrayify-stream": "^2.0.0",
"asynciterator": "^3.4.0",
"babel-loader": "^8.2.3",
"componentsjs-generator": "^3.0.2",
"cross-fetch": "^3.1.5",
"eslint": "^8.9.0",
"eslint-config-es": "4.1.0",
Expand Down Expand Up @@ -95,14 +98,17 @@
"test": "jest",
"test-ci": "jest --ci --maxWorkers=4 --coverage",
"lint": "eslint . --ext .ts --cache",
"lint:fix": "eslint . --ext .ts --cache --fix",
"clean": "rm -rf ./node_modules && rm -rf ./packages/*/node_modules",
"build": "tsc",
"build-watch": "tsc --watch",
"build": "npm run build:ts && npm run build:components",
"build:ts": "tsc",
"build:components": "componentsjs-generator engines/* packages/*",
"build-watch": "nodemon -e ts --ignore '*.d.ts' --exec yarn run build",
"build-watch:ts": "tsc --watch",
"build-watch:components": "nodemon -e d.ts --exec yarn run build:components",
"publish": "yarn run build",
"publish-release": "lerna publish",
"publish-bare": "lerna exec -- npm publish --silent",
"publish-canary": "yarn run build && lerna version prerelease --preid alpha.$(git rev-parse --short HEAD) --ignore-scripts --force-publish --no-push --no-git-tag-version --yes && git update-index --assume-unchanged $(git ls-files | tr '\\n' ' ') && lerna publish from-package --no-git-reset --pre-dist-tag next --force-publish --no-push --no-git-tag-version --yes && git update-index --no-assume-unchanged $(git ls-files | tr '\\n' ' ') && git checkout .",
"publish-canary": "yarn run build && lerna version prerelease --preid alpha.$(.github/get-next-alpha-version.sh) --exact --ignore-scripts --force-publish --no-push --no-git-tag-version --yes && git update-index --assume-unchanged $(git ls-files | tr '\\n' ' ') && lerna publish from-package --no-git-reset --pre-dist-tag next --force-publish --no-push --no-git-tag-version --yes && git update-index --no-assume-unchanged $(git ls-files | tr '\\n' ' ') && git checkout .",
"doc": "typedoc",
"postinstall": "yarn run build && lerna run prepare",
"version": "manual-git-changelog onversion"
Expand Down
2 changes: 1 addition & 1 deletion renovate.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": [
"config:base"
"github>rubensworks/renovate-presets:js"
]
}
3 changes: 2 additions & 1 deletion tsconfig.eslint.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"extends": "./tsconfig.json",
"include": [
"engines/**/*.ts",
"packages/**/*.ts"
],
"exclude": [
"**/node_modules"
]
}
}
13 changes: 6 additions & 7 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6",
"es2019",
"dom",
"esnext.asynciterable"
"es2020",
"es2021",
"dom"
],
"target": "es2017",
"target": "es2020",
"removeComments": false,
"preserveConstEnums": true,
"sourceMap": true,
Expand All @@ -22,8 +21,8 @@
"strictPropertyInitialization": false
},
"include": [
"packages/*/index.ts",
"packages/*/index-browser.ts",
"engines/*/bin/**/*",
"engines/*/lib/**/*",
"packages/*/bin/**/*",
"packages/*/lib/**/*"
],
Expand Down
2 changes: 1 addition & 1 deletion typedoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = {
out: 'documentation',
theme: 'default',
'external-modulemap': '.*packages/([^/]+)/.*',
entryPoints: getPackagesSync(path.join(__dirname, 'packages')).map(
entryPoints: getPackagesSync(__dirname).map(
pkg => path.relative(__dirname, pkg.location)
),
excludeExternals: false,
Expand Down
Loading

0 comments on commit 9c94127

Please sign in to comment.