@shaclmate/cli 4.0.0 → 4.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.
Files changed (2) hide show
  1. package/README.md +23 -0
  2. package/package.json +11 -3
package/README.md ADDED
@@ -0,0 +1,23 @@
1
+ # @shaclmate/cli
2
+
3
+ > ⚠️ **Under active development.** SHACLmate is experimental — both the compiler and generated code should be considered unstable and subject to breaking changes.
4
+
5
+ Command line tool for generating [TypeScript](https://www.typescriptlang.org/) code from [SHACL](https://www.w3.org/TR/shacl/) shapes.
6
+
7
+ ## Prerequisites
8
+
9
+ * [Node.js](https://nodejs.org/) 18+
10
+
11
+ ## Usage
12
+
13
+ npx -y "@shaclmate/cli@latest" generate ts your-shapes.shaclmate.ttl >generated.ts
14
+
15
+ The generated code is serialized with minimal indentation and newlines. You will probably want to format it using a tool like [Biome](https://biomejs.dev/) or [prettier](https://prettier.io/).
16
+
17
+ ## Runtime dependencies
18
+
19
+ The generated TypeScript code relies on various third-party libraries. The exact set of dependencies will depend on the code generated. See the [GitHub repository](https://github.com/YOUR_ORG/shaclmate) for examples and full documentation.
20
+
21
+ ## License
22
+
23
+ [Apache 2.0](https://github.com/YOUR_ORG/shaclmate/blob/main/LICENSE)
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "shaclmate": "dist/cli.js"
4
4
  },
5
5
  "dependencies": {
6
- "@shaclmate/compiler": "4.0.0",
6
+ "@shaclmate/compiler": "4.0.1",
7
7
  "@rdfjs/prefix-map": "~0.1.2",
8
8
  "@rdfjs/types": "~2.0.1",
9
9
  "@types/n3": "~1.26.0",
@@ -13,6 +13,7 @@
13
13
  "pino": "~9.1.0",
14
14
  "rdf-validate-shacl": "0.5.8"
15
15
  },
16
+ "description": "Command line program to generate TypeScript code from SHACL shapes",
16
17
  "devDependencies": {
17
18
  "@tsconfig/node18": "~18.2.4",
18
19
  "@tsconfig/strictest": "~2.0.8",
@@ -22,16 +23,23 @@
22
23
  "typescript": "5.9.3"
23
24
  },
24
25
  "files": [
26
+ "README.md",
25
27
  "dist/*.d.ts",
26
28
  "dist/*.js"
27
29
  ],
30
+ "homepage": "https://github.com/minorg/shaclmate",
31
+ "keywords": [
32
+ "rdf",
33
+ "shacl",
34
+ "typescript"
35
+ ],
28
36
  "license": "Apache-2.0",
29
37
  "main": "./dist/index.js",
30
38
  "name": "@shaclmate/cli",
31
39
  "packageManager": "npm@10.9.0",
32
40
  "repository": {
33
41
  "type": "git",
34
- "url": "git+https://github.com/minorg/shaclmate"
42
+ "url": "git+https://github.com/minorg/shaclmate.git"
35
43
  },
36
44
  "scripts": {
37
45
  "build": "tsc -b && chmod +x dist/cli.js",
@@ -43,5 +51,5 @@
43
51
  },
44
52
  "type": "module",
45
53
  "types": "./dist/index.d.ts",
46
- "version": "4.0.0"
54
+ "version": "4.0.1"
47
55
  }