@lde/local-sparql-endpoint 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,11 @@
1
+ # local-sparql-endpoint
2
+
3
+ This library was generated with [Nx](https://nx.dev).
4
+
5
+ ## Building
6
+
7
+ Run `nx build local-sparql-endpoint` to build the library.
8
+
9
+ ## Running unit tests
10
+
11
+ Run `nx test local-sparql-endpoint` to execute the unit tests via [Vitest](https://vitest.dev/).
@@ -0,0 +1,3 @@
1
+ export declare function startSparqlEndpoint(port: number, fixture: string): Promise<void>;
2
+ export declare const teardownSparqlEndpoint: () => Promise<void>;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,wBAAsB,mBAAmB,CACvC,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,IAAI,CAAC,CAMf;AAED,eAAO,MAAM,sBAAsB,qBAElC,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,12 @@
1
+ import { setup, teardown } from 'jest-dev-server';
2
+ let servers;
3
+ export async function startSparqlEndpoint(port, fixture) {
4
+ servers = await setup({
5
+ command: `npx comunica-sparql-file-http ${fixture} -p ${port}`,
6
+ port,
7
+ launchTimeout: 60000,
8
+ });
9
+ }
10
+ export const teardownSparqlEndpoint = async () => {
11
+ await teardown(servers);
12
+ };
package/package.json ADDED
@@ -0,0 +1,29 @@
1
+ {
2
+ "name": "@lde/local-sparql-endpoint",
3
+ "version": "0.0.1",
4
+ "type": "module",
5
+ "main": "./dist/index.js",
6
+ "module": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "exports": {
9
+ "./package.json": "./package.json",
10
+ ".": {
11
+ "development": "./src/index.ts",
12
+ "types": "./dist/index.d.ts",
13
+ "import": "./dist/index.js",
14
+ "default": "./dist/index.js"
15
+ }
16
+ },
17
+ "files": [
18
+ "dist",
19
+ "!**/*.tsbuildinfo"
20
+ ],
21
+ "dependencies": {
22
+ "tslib": "^2.3.0",
23
+ "jest-dev-server": "11.0.0",
24
+ "spawnd": "11.0.0"
25
+ },
26
+ "devDependencies": {
27
+ "jest-dev-server": "^11.0.0"
28
+ }
29
+ }