desi77-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
+ desi77-cli
2
+ ==========
3
+
4
+
5
+ Presentation
6
+ ------------
7
+
8
+ *desi77-cli* is a *command line interface* application for presenting the designs of *desi77*.
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 desi77-cli
23
+ ```
24
+
25
+
26
+ Usage
27
+ -----
28
+
29
+ ```bash
30
+ npx desi77-cli
31
+ npx desi77-cli --help
32
+ ```
33
+
34
+
35
+ Development
36
+ -----------
37
+
38
+ ```bash
39
+ git clone https://github.com/MYNAME/parame77
40
+ cd parame77
41
+ npm install
42
+ npm run ci
43
+ npm -w desi77-cli run run
44
+ ```
45
+
@@ -0,0 +1,91 @@
1
+ #!/usr/bin/env node
2
+
3
+ // src/desi77-cli.ts
4
+ import { geom_cli } from "geomcli";
5
+
6
+ // package.json
7
+ var package_default = {
8
+ name: "desi77-cli",
9
+ description: "The cli-frontend for desi77",
10
+ version: "0.1.0",
11
+ private: false,
12
+ repository: {
13
+ type: "git",
14
+ url: "git+https://github.com/MYNAME/parame77.git"
15
+ },
16
+ homepage: "https://MYNAME.github.io/parame77/",
17
+ author: "MYNAME",
18
+ license: "ISC",
19
+ keywords: [
20
+ "parametrix",
21
+ "3D",
22
+ "CAD"
23
+ ],
24
+ type: "module",
25
+ exports: {
26
+ ".": {
27
+ types: "./dist/desi77-cli.d.ts",
28
+ default: "./dist/desi77-cli.js"
29
+ }
30
+ },
31
+ bin: "./dist/desi77-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/desi77-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/desi77-cli.js",
61
+ clean: "rimraf build dist node_modules"
62
+ },
63
+ dependencies: {
64
+ desi77: "^0.1.0",
65
+ geomcli: "^1.0.17",
66
+ geometrix: "^1.0.17"
67
+ },
68
+ devDependencies: {
69
+ "@eslint/js": "^9.10.0",
70
+ "@types/eslint__js": "^8.42.3",
71
+ bats: "^1.11.1",
72
+ eslint: "^9.24.0",
73
+ "eslint-config-prettier": "^10.1.1",
74
+ "npm-run-all2": "^7.0.2",
75
+ prettier: "^3.5.3",
76
+ rimraf: "^6.0.1",
77
+ tsup: "^8.4.0",
78
+ typescript: "^5.8.3",
79
+ "typescript-eslint": "^8.29.1",
80
+ vitest: "^3.1.1"
81
+ }
82
+ };
83
+
84
+ // src/designList.ts
85
+ import { door1arcDef } from "desi77";
86
+ var designList = {
87
+ "desi77/door1arc": door1arcDef
88
+ };
89
+
90
+ // src/desi77-cli.ts
91
+ await geom_cli(process.argv, designList, package_default, "output");
package/package.json ADDED
@@ -0,0 +1,76 @@
1
+ {
2
+ "name": "desi77-cli",
3
+ "description": "The cli-frontend for desi77",
4
+ "version": "0.1.0",
5
+ "private": false,
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/MYNAME/parame77.git"
9
+ },
10
+ "homepage": "https://MYNAME.github.io/parame77/",
11
+ "author": "MYNAME",
12
+ "license": "ISC",
13
+ "keywords": [
14
+ "parametrix",
15
+ "3D",
16
+ "CAD"
17
+ ],
18
+ "type": "module",
19
+ "exports": {
20
+ ".": {
21
+ "types": "./dist/desi77-cli.d.ts",
22
+ "default": "./dist/desi77-cli.js"
23
+ }
24
+ },
25
+ "bin": "./dist/desi77-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/desi77-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/desi77-cli.js",
55
+ "clean": "rimraf build dist node_modules"
56
+ },
57
+ "dependencies": {
58
+ "desi77": "^0.1.0",
59
+ "geomcli": "^1.0.17",
60
+ "geometrix": "^1.0.17"
61
+ },
62
+ "devDependencies": {
63
+ "@eslint/js": "^9.10.0",
64
+ "@types/eslint__js": "^8.42.3",
65
+ "bats": "^1.11.1",
66
+ "eslint": "^9.24.0",
67
+ "eslint-config-prettier": "^10.1.1",
68
+ "npm-run-all2": "^7.0.2",
69
+ "prettier": "^3.5.3",
70
+ "rimraf": "^6.0.1",
71
+ "tsup": "^8.4.0",
72
+ "typescript": "^5.8.3",
73
+ "typescript-eslint": "^8.29.1",
74
+ "vitest": "^3.1.1"
75
+ }
76
+ }