desi76-cli 0.1.0

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,45 @@
1
+ desi76-cli
2
+ ==========
3
+
4
+
5
+ Presentation
6
+ ------------
7
+
8
+ *desi76-cli* is a *command line interface* application for presenting the designs of *desi76*.
9
+
10
+
11
+ Requirements
12
+ ------------
13
+
14
+ - [node](https://nodejs.org) > 20.10.0
15
+ - [npm](https://docs.npmjs.com/cli) > 10.1.0
16
+
17
+
18
+ Installation
19
+ ------------
20
+
21
+ ```bash
22
+ npm i -D desi76-cli
23
+ ```
24
+
25
+
26
+ Usage
27
+ -----
28
+
29
+ ```bash
30
+ npx desi76-cli
31
+ npx desi76-cli --help
32
+ ```
33
+
34
+
35
+ Development
36
+ -----------
37
+
38
+ ```bash
39
+ git clone https://github.com/MYNAME/parame76
40
+ cd parame76
41
+ npm install
42
+ npm run ci
43
+ npm -w desi76-cli run run
44
+ ```
45
+
@@ -0,0 +1,92 @@
1
+ #!/usr/bin/env node
2
+
3
+ // src/desi76-cli.ts
4
+ import { geom_cli } from "geomcli";
5
+
6
+ // package.json
7
+ var package_default = {
8
+ name: "desi76-cli",
9
+ description: "The cli-frontend for desi76",
10
+ version: "0.1.0",
11
+ private: false,
12
+ repository: {
13
+ type: "git",
14
+ url: "git+https://github.com/MYNAME/parame76.git"
15
+ },
16
+ homepage: "https://MYNAME.github.io/parame76/",
17
+ author: "MYNAME",
18
+ license: "ISC",
19
+ keywords: [
20
+ "parametrix",
21
+ "3D",
22
+ "CAD"
23
+ ],
24
+ type: "module",
25
+ exports: {
26
+ ".": {
27
+ types: "./dist/desi76-cli.d.ts",
28
+ default: "./dist/desi76-cli.js"
29
+ }
30
+ },
31
+ bin: "./dist/desi76-cli.js",
32
+ files: [
33
+ "dist/",
34
+ "!dist/**/*.d.ts",
35
+ "!dist/**/*.map",
36
+ "!dist/**/*.test.*",
37
+ "!dist/**/*.spec.*"
38
+ ],
39
+ tsup: {
40
+ entry: [
41
+ "src/desi76-cli.ts"
42
+ ],
43
+ format: "esm",
44
+ splitting: false,
45
+ dts: false,
46
+ sourcemap: false,
47
+ clean: true
48
+ },
49
+ scripts: {
50
+ dev: "tsup --watch",
51
+ build: "tsup",
52
+ check: "tsc --noEmit",
53
+ pretty: "prettier --check .",
54
+ format: "prettier --write .",
55
+ lint: "eslint .",
56
+ "test:unit": "vitest",
57
+ "test:unit:once": "vitest --run",
58
+ "test:bats": "bats test/test1.bats",
59
+ ci: "run-s check build pretty lint test:unit:once test:bats",
60
+ run: "dist/desi76-cli.js",
61
+ clean: "rimraf build dist node_modules"
62
+ },
63
+ dependencies: {
64
+ desi76: "^0.1.0",
65
+ geomcli: "^1.0.21",
66
+ geometrix: "^1.0.21"
67
+ },
68
+ devDependencies: {
69
+ "@eslint/js": "^9.10.0",
70
+ "@types/eslint__js": "^8.42.3",
71
+ bats: "^1.12.0",
72
+ eslint: "^9.29.0",
73
+ "eslint-config-prettier": "^10.1.5",
74
+ "npm-run-all2": "^8.0.4",
75
+ prettier: "^3.5.3",
76
+ rimraf: "^6.0.1",
77
+ tsup: "^8.5.0",
78
+ typescript: "^5.8.3",
79
+ "typescript-eslint": "^8.34.1",
80
+ vitest: "^3.2.3"
81
+ }
82
+ };
83
+
84
+ // src/designList.ts
85
+ import { voilaDef, catamaranDef } from "desi76";
86
+ var designList = {
87
+ "desi76/catamaran": catamaranDef,
88
+ "desi76/voila": voilaDef
89
+ };
90
+
91
+ // src/desi76-cli.ts
92
+ await geom_cli(process.argv, designList, package_default, "output");
package/package.json ADDED
@@ -0,0 +1,76 @@
1
+ {
2
+ "name": "desi76-cli",
3
+ "description": "The cli-frontend for desi76",
4
+ "version": "0.1.0",
5
+ "private": false,
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/MYNAME/parame76.git"
9
+ },
10
+ "homepage": "https://MYNAME.github.io/parame76/",
11
+ "author": "MYNAME",
12
+ "license": "ISC",
13
+ "keywords": [
14
+ "parametrix",
15
+ "3D",
16
+ "CAD"
17
+ ],
18
+ "type": "module",
19
+ "exports": {
20
+ ".": {
21
+ "types": "./dist/desi76-cli.d.ts",
22
+ "default": "./dist/desi76-cli.js"
23
+ }
24
+ },
25
+ "bin": "./dist/desi76-cli.js",
26
+ "files": [
27
+ "dist/",
28
+ "!dist/**/*.d.ts",
29
+ "!dist/**/*.map",
30
+ "!dist/**/*.test.*",
31
+ "!dist/**/*.spec.*"
32
+ ],
33
+ "tsup": {
34
+ "entry": [
35
+ "src/desi76-cli.ts"
36
+ ],
37
+ "format": "esm",
38
+ "splitting": false,
39
+ "dts": false,
40
+ "sourcemap": false,
41
+ "clean": true
42
+ },
43
+ "scripts": {
44
+ "dev": "tsup --watch",
45
+ "build": "tsup",
46
+ "check": "tsc --noEmit",
47
+ "pretty": "prettier --check .",
48
+ "format": "prettier --write .",
49
+ "lint": "eslint .",
50
+ "test:unit": "vitest",
51
+ "test:unit:once": "vitest --run",
52
+ "test:bats": "bats test/test1.bats",
53
+ "ci": "run-s check build pretty lint test:unit:once test:bats",
54
+ "run": "dist/desi76-cli.js",
55
+ "clean": "rimraf build dist node_modules"
56
+ },
57
+ "dependencies": {
58
+ "desi76": "^0.1.0",
59
+ "geomcli": "^1.0.21",
60
+ "geometrix": "^1.0.21"
61
+ },
62
+ "devDependencies": {
63
+ "@eslint/js": "^9.10.0",
64
+ "@types/eslint__js": "^8.42.3",
65
+ "bats": "^1.12.0",
66
+ "eslint": "^9.29.0",
67
+ "eslint-config-prettier": "^10.1.5",
68
+ "npm-run-all2": "^8.0.4",
69
+ "prettier": "^3.5.3",
70
+ "rimraf": "^6.0.1",
71
+ "tsup": "^8.5.0",
72
+ "typescript": "^5.8.3",
73
+ "typescript-eslint": "^8.34.1",
74
+ "vitest": "^3.2.4"
75
+ }
76
+ }