Skip to content

Commit

Permalink
add lerna
Browse files Browse the repository at this point in the history
  • Loading branch information
jitsedesmet committed Jan 14, 2025
1 parent b5db2e0 commit f821281
Show file tree
Hide file tree
Showing 16 changed files with 8,764 additions and 4,657 deletions.
1 change: 0 additions & 1 deletion .yarnrc.yml

This file was deleted.

6 changes: 3 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Changelog
All notable changes to this project will be documented in this file.

<a name="v0.0.0-1"></a>
## [v0.0.0-1] - 2025-01-14
<a name="v0.0.0"></a>
## [v0.0.0] - 2025-01-14

Initial pre-commit
Initial version
4 changes: 2 additions & 2 deletions engines/engine-sparql-1-1-adjust/lib/Sparql11AdjustParser.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Builder, type ImplArgs} from '@traqula/core';
import {Builder, type ImplArgs, LexerBuilder} from '@traqula/core';
import {gram, lex} from '@traqula/rules-sparql-1-1-adjust';
import {
Expression,
Expand Down Expand Up @@ -37,7 +37,7 @@ export class Sparql11AdjustParser implements ISparqlParser {
public constructor(context: Partial<ImplArgs['context']> = {}) {
this.dataFactory = context.dataFactory ?? new DataFactory({ blankNodePrefix: 'g_' });
this.parser = adjustBuilder.consumeToParser({
tokenVocabulary: l11.sparql11Tokens.addBefore(l11.a, lex.BuiltInAdjust).build(),
tokenVocabulary: LexerBuilder.create(l11.sparql11Tokens).addBefore(l11.a, lex.BuiltInAdjust).build(),
}, {
parseMode: new Set([ g11.canParseVars, g11.canCreateBlankNodes ]),
...context,
Expand Down
20 changes: 10 additions & 10 deletions engines/engine-sparql-1-1-adjust/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@traqula/engine-sparql-1-1-adjust",
"version": "0.0.0-1",
"version": "0.0.0",
"description": "Core components of Traqula",
"lsd:module": true,
"license": "MIT",
Expand All @@ -25,21 +25,21 @@
},
"typings": "lib/index",
"scripts": {
"build": "yarn build:ts && yarn build:transpile",
"build": "npm run build:ts && npm run build:transpile && npm run build:transpile-spec",
"build:ts": "node \"../../node_modules/typescript/bin/tsc\"",
"build:transpile": " node \"../../node_modules/esbuild/bin/esbuild\" --format=cjs --bundle --log-level=error --outfile=lib/index.cjs lib/index.ts",
"build:transpile-spec": " node \"../../node_modules/esbuild/bin/esbuild\" --format=cjs --platform=node --bundle --log-level=error --outfile=spec/parser.cjs spec/parser.ts",
"spec:base": "rdf-test-suite spec/parser.cjs http://w3c.github.io/rdf-tests/sparql/sparql11/manifest-all.ttl -c ../../.rdf-test-suite-cache/",
"spec:query": "yarn spec:base -- -s http://www.w3.org/TR/sparql11-query/",
"spec:update": "yarn spec:base -- -s http://www.w3.org/TR/sparql11-update/",
"spec:earl:query": "yarn spec:query --silent -- -o earl -p spec/earl-meta.json > spec/earl-query.ttl",
"spec:earl:update": "yarn spec:update --silent -- -o earl -p spec/earl-meta.json > spec/earl-update.ttl",
"spec:all": "yarn spec:base && yarn spec:query && yarn spec:update",
"spec:earl": "yarn spec:earl:query && yarn spec:earl:update"
"spec:query": "npm run spec:base -- -s http://www.w3.org/TR/sparql11-query/",
"spec:update": "npm run spec:base -- -s http://www.w3.org/TR/sparql11-update/",
"spec:earl:query": "npm run spec:query --silent -- -o earl -p spec/earl-meta.json > spec/earl-query.ttl",
"spec:earl:update": "npm run spec:update --silent -- -o earl -p spec/earl-meta.json > spec/earl-update.ttl",
"spec:all": "npm run spec:base && npm run spec:query && npm run spec:update",
"spec:earl": "npm run spec:earl:query && npm run spec:earl:update"
},
"dependencies": {
"@traqula/core": "workspace:^",
"@traqula/rules-sparql-1-1": "workspace:^",
"@traqula/core": "^0.0.0",
"@traqula/rules-sparql-1-1": "^0.0.0",
"chevrotain": "^11.0.3",
"rdf-data-factory": "^2.0.1"
}
Expand Down
2 changes: 1 addition & 1 deletion engines/engine-sparql-1-1-adjust/test/statics.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ SELECT ?s ?p (ADJUST(?o, "-PT10H"^^<http://www.w3.org/2001/XMLSchema#dayTimeDura
?s ?p ?o
}
`;
const res: unknown = parser.parse(query);
const res: unknown = new Sparql11AdjustParser().parse(query);
expect(res).toMatchObject({});
})
});
22 changes: 11 additions & 11 deletions engines/engine-sparql-1-1/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@traqula/engine-sparql-1-1",
"version": "0.0.0-1",
"version": "0.0.0",
"description": "Core components of Traqula",
"lsd:module": true,
"license": "MIT",
Expand Down Expand Up @@ -30,25 +30,25 @@
},
"typings": "lib/index",
"scripts": {
"build": "yarn build:ts && yarn build:transpile && yarn build:transpile-spec",
"build": "npm run build:ts && npm run build:transpile && npm run build:transpile-spec",
"build:ts": "node \"../../node_modules/typescript/bin/tsc\"",
"build:transpile": " node \"../../node_modules/esbuild/bin/esbuild\" --format=cjs --bundle --log-level=error --outfile=lib/index.cjs lib/index.ts",
"build:transpile-spec": " node \"../../node_modules/esbuild/bin/esbuild\" --format=cjs --platform=node --bundle --log-level=error --outfile=spec/parser.cjs spec/parser.ts",
"spec:base": "rdf-test-suite spec/parser.cjs http://w3c.github.io/rdf-tests/sparql/sparql11/manifest-all.ttl -c ../../.rdf-test-suite-cache/",
"spec:query": "yarn spec:base -- -s http://www.w3.org/TR/sparql11-query/",
"spec:update": "yarn spec:base -- -s http://www.w3.org/TR/sparql11-update/",
"spec:earl:query": "yarn spec:query --silent -- -o earl -p spec/earl-meta.json > spec/earl-query.ttl",
"spec:earl:update": "yarn spec:update --silent -- -o earl -p spec/earl-meta.json > spec/earl-update.ttl",
"spec:all": "yarn spec:base && yarn spec:query && yarn spec:update",
"spec:earl": "yarn spec:earl:query && yarn spec:earl:update"
"spec:query": "npm run spec:base -- -s http://www.w3.org/TR/sparql11-query/",
"spec:update": "npm run spec:base -- -s http://www.w3.org/TR/sparql11-update/",
"spec:earl:query": "npm run spec:query --silent -- -o earl -p spec/earl-meta.json > spec/earl-query.ttl",
"spec:earl:update": "npm run spec:update --silent -- -o earl -p spec/earl-meta.json > spec/earl-update.ttl",
"spec:all": "npm run spec:base && npm run spec:query && npm run spec:update",
"spec:earl": "npm run spec:earl:query && npm run spec:earl:update"
},
"dependencies": {
"@traqula/core": "workspace:^",
"@traqula/rules-sparql-1-1": "workspace:^",
"@traqula/core": "^0.0.0",
"@traqula/rules-sparql-1-1": "^0.0.0",
"chevrotain": "^11.0.3",
"rdf-data-factory": "^2.0.1"
},
"devDependencies": {
"@traqula/test-utils": "workspace:^"
"@traqula/test-utils": "^0.0.0"
}
}
20 changes: 10 additions & 10 deletions engines/engine-sparql-1-2/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@traqula/engine-sparql-1-2",
"version": "0.0.0-1",
"version": "0.0.0",
"description": "Core components of Traqula",
"lsd:module": true,
"license": "MIT",
Expand Down Expand Up @@ -30,21 +30,21 @@
},
"typings": "lib/index",
"scripts": {
"build": "yarn build:ts && yarn build:transpile && yarn build:transpile-spec",
"build": "npm run build:ts && npm run build:transpile && npm run build:transpile-spec",
"build:ts": "node \"../../node_modules/typescript/bin/tsc\"",
"build:transpile": " node \"../../node_modules/esbuild/bin/esbuild\" --format=cjs --bundle --log-level=error --outfile=lib/index.cjs lib/index.ts",
"build:transpile-spec": " node \"../../node_modules/esbuild/bin/esbuild\" --format=cjs --platform=node --bundle --log-level=error --outfile=spec/parser.cjs spec/parser.ts",
"spec:base": "rdf-test-suite spec/parser.cjs http://w3c.github.io/rdf-tests/sparql/sparql11/manifest-all.ttl -c ../../.rdf-test-suite-cache/",
"spec:query": "yarn spec:base -- -s http://www.w3.org/TR/sparql11-query/",
"spec:update": "yarn spec:base -- -s http://www.w3.org/TR/sparql11-update/",
"spec:earl:query": "yarn spec:query --silent -- -o earl -p spec/earl-meta.json > spec/earl-query.ttl",
"spec:earl:update": "yarn spec:update --silent -- -o earl -p spec/earl-meta.json > spec/earl-update.ttl",
"spec:all": "yarn spec:base && yarn spec:query && yarn spec:update",
"spec:earl": "yarn spec:earl:query && yarn spec:earl:update"
"spec:query": "npm run spec:base -- -s http://www.w3.org/TR/sparql11-query/",
"spec:update": "npm run spec:base -- -s http://www.w3.org/TR/sparql11-update/",
"spec:earl:query": "npm run spec:query --silent -- -o earl -p spec/earl-meta.json > spec/earl-query.ttl",
"spec:earl:update": "npm run spec:update --silent -- -o earl -p spec/earl-meta.json > spec/earl-update.ttl",
"spec:all": "npm run spec:base && npm run spec:query && npm run spec:update",
"spec:earl": "npm run spec:earl:query && npm run spec:earl:update"
},
"dependencies": {
"@traqula/core": "workspace:^",
"@traqula/rules-sparql-1-1": "workspace:^",
"@traqula/core": "^0.0.0",
"@traqula/rules-sparql-1-1": "^0.0.0",
"chevrotain": "^11.0.3",
"rdf-data-factory": "^2.0.1"
}
Expand Down
8 changes: 8 additions & 0 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
"version": "0.0.0",
"packages": [
"packages/*",
"engines/*"
]
}
Loading

0 comments on commit f821281

Please sign in to comment.