designix-cli 0.5.8
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 +48 -0
- package/dist/designix-cli.js +120 -0
- package/package.json +79 -0
package/README.md
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
designix-cli
|
|
2
|
+
============
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
Presentation
|
|
6
|
+
------------
|
|
7
|
+
|
|
8
|
+
*designix-cli* is a *command line interface* application for using *designix*.
|
|
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 designix-cli
|
|
23
|
+
npx designix --help
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
Usage
|
|
28
|
+
-----
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
npx designix --help
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
Dev
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
git clone https://github.com/charlyoleg2/parametrix
|
|
40
|
+
cd parametrix
|
|
41
|
+
npm install
|
|
42
|
+
npm run ci
|
|
43
|
+
npm -w designix-cli run run
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
// src/designix-cli.ts
|
|
4
|
+
import { geom_cli } from "geomcli";
|
|
5
|
+
|
|
6
|
+
// package.json
|
|
7
|
+
var package_default = {
|
|
8
|
+
name: "designix-cli",
|
|
9
|
+
version: "0.5.8",
|
|
10
|
+
description: "The application cli as frontend of geometrix and designix",
|
|
11
|
+
private: true,
|
|
12
|
+
repository: {
|
|
13
|
+
type: "git",
|
|
14
|
+
url: "git+https://github.com/charlyoleg2/parametrix.git"
|
|
15
|
+
},
|
|
16
|
+
homepage: "https://github.com/charlyoleg2/parametrix#readme",
|
|
17
|
+
keywords: [
|
|
18
|
+
"cad",
|
|
19
|
+
"programmatic",
|
|
20
|
+
"2D",
|
|
21
|
+
"circle",
|
|
22
|
+
"stroke",
|
|
23
|
+
"arc",
|
|
24
|
+
"gear"
|
|
25
|
+
],
|
|
26
|
+
author: "charlyoleg",
|
|
27
|
+
tsup: {
|
|
28
|
+
entry: [
|
|
29
|
+
"src/designix-cli.ts"
|
|
30
|
+
],
|
|
31
|
+
format: "esm",
|
|
32
|
+
splitting: false,
|
|
33
|
+
dts: false,
|
|
34
|
+
sourcemap: false,
|
|
35
|
+
clean: true
|
|
36
|
+
},
|
|
37
|
+
scripts: {
|
|
38
|
+
dev: "tsup --watch",
|
|
39
|
+
build: "tsup",
|
|
40
|
+
check: "tsc --noEmit",
|
|
41
|
+
pretty: "prettier --check .",
|
|
42
|
+
format: "prettier --write .",
|
|
43
|
+
lint: "eslint .",
|
|
44
|
+
"test:unit": "vitest",
|
|
45
|
+
"test:unit:once": "vitest --run",
|
|
46
|
+
"test:bats": "bats test/test1.bats",
|
|
47
|
+
ci: "run-s check build pretty lint test:unit:once test:bats",
|
|
48
|
+
run: "dist/designix-cli.js",
|
|
49
|
+
clean: "shx rm -fr build dist node_modules output"
|
|
50
|
+
},
|
|
51
|
+
dependencies: {
|
|
52
|
+
designix: "^0.5.17",
|
|
53
|
+
geomcli: "^0.5.19",
|
|
54
|
+
geometrix: "^0.5.16"
|
|
55
|
+
},
|
|
56
|
+
devDependencies: {
|
|
57
|
+
"@typescript-eslint/eslint-plugin": "^7.0.1",
|
|
58
|
+
"@typescript-eslint/parser": "^7.0.1",
|
|
59
|
+
bats: "^1.10.0",
|
|
60
|
+
eslint: "^8.56.0",
|
|
61
|
+
"eslint-config-prettier": "^9.1.0",
|
|
62
|
+
"npm-run-all": "^4.1.5",
|
|
63
|
+
prettier: "^3.2.5",
|
|
64
|
+
shx: "^0.3.4",
|
|
65
|
+
tsup: "^8.0.2",
|
|
66
|
+
typescript: "^5.3.3",
|
|
67
|
+
vitest: "^1.3.0"
|
|
68
|
+
},
|
|
69
|
+
exports: {
|
|
70
|
+
".": {
|
|
71
|
+
types: "./dist/designix-cli.d.ts",
|
|
72
|
+
default: "./dist/designix-cli.js"
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
bin: {
|
|
76
|
+
designix: "dist/designix-cli.js"
|
|
77
|
+
},
|
|
78
|
+
files: [
|
|
79
|
+
"dist/",
|
|
80
|
+
"!dist/**/*.map",
|
|
81
|
+
"!dist/**/*.test.*",
|
|
82
|
+
"!dist/**/*.spec.*"
|
|
83
|
+
],
|
|
84
|
+
type: "module"
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
// src/designix-cli.ts
|
|
88
|
+
import {
|
|
89
|
+
gearWheelWheelDef,
|
|
90
|
+
simplifiedGearWheelDef,
|
|
91
|
+
heliostatDef,
|
|
92
|
+
heliostat_2Def,
|
|
93
|
+
baseDef,
|
|
94
|
+
poleStaticDef,
|
|
95
|
+
poleRotorDef,
|
|
96
|
+
rakeDef,
|
|
97
|
+
rakeStopperDef,
|
|
98
|
+
spiderDef,
|
|
99
|
+
swingDef,
|
|
100
|
+
rodDef,
|
|
101
|
+
trapezeDef,
|
|
102
|
+
surfaceDef
|
|
103
|
+
} from "designix";
|
|
104
|
+
var designList = {
|
|
105
|
+
"gear/gear_wheel_wheel": gearWheelWheelDef,
|
|
106
|
+
"gear/simplified_gear_wheel": simplifiedGearWheelDef,
|
|
107
|
+
"heliostat/heliostat": heliostatDef,
|
|
108
|
+
"heliostat/heliostat_2": heliostat_2Def,
|
|
109
|
+
"heliostat/base": baseDef,
|
|
110
|
+
"heliostat/pole_static": poleStaticDef,
|
|
111
|
+
"heliostat/pole_rotor": poleRotorDef,
|
|
112
|
+
"heliostat/rake": rakeDef,
|
|
113
|
+
"heliostat/rake_stopper": rakeStopperDef,
|
|
114
|
+
"heliostat/spider": spiderDef,
|
|
115
|
+
"heliostat/swing": swingDef,
|
|
116
|
+
"heliostat/rod": rodDef,
|
|
117
|
+
"heliostat/trapeze": trapezeDef,
|
|
118
|
+
"heliostat/surface": surfaceDef
|
|
119
|
+
};
|
|
120
|
+
await geom_cli(process.argv, designList, package_default, "output");
|
package/package.json
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "designix-cli",
|
|
3
|
+
"version": "0.5.8",
|
|
4
|
+
"description": "The application cli as frontend of geometrix and designix",
|
|
5
|
+
"private": false,
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/charlyoleg2/parametrix.git"
|
|
9
|
+
},
|
|
10
|
+
"homepage": "https://github.com/charlyoleg2/parametrix#readme",
|
|
11
|
+
"keywords": [
|
|
12
|
+
"cad",
|
|
13
|
+
"programmatic",
|
|
14
|
+
"2D",
|
|
15
|
+
"circle",
|
|
16
|
+
"stroke",
|
|
17
|
+
"arc",
|
|
18
|
+
"gear"
|
|
19
|
+
],
|
|
20
|
+
"author": "charlyoleg",
|
|
21
|
+
"tsup": {
|
|
22
|
+
"entry": [
|
|
23
|
+
"src/designix-cli.ts"
|
|
24
|
+
],
|
|
25
|
+
"format": "esm",
|
|
26
|
+
"splitting": false,
|
|
27
|
+
"dts": false,
|
|
28
|
+
"sourcemap": false,
|
|
29
|
+
"clean": true
|
|
30
|
+
},
|
|
31
|
+
"scripts": {
|
|
32
|
+
"dev": "tsup --watch",
|
|
33
|
+
"build": "tsup",
|
|
34
|
+
"check": "tsc --noEmit",
|
|
35
|
+
"pretty": "prettier --check .",
|
|
36
|
+
"format": "prettier --write .",
|
|
37
|
+
"lint": "eslint .",
|
|
38
|
+
"test:unit": "vitest",
|
|
39
|
+
"test:unit:once": "vitest --run",
|
|
40
|
+
"test:bats": "bats test/test1.bats",
|
|
41
|
+
"ci": "run-s check build pretty lint test:unit:once test:bats",
|
|
42
|
+
"run": "dist/designix-cli.js",
|
|
43
|
+
"clean": "shx rm -fr build dist node_modules output"
|
|
44
|
+
},
|
|
45
|
+
"dependencies": {
|
|
46
|
+
"designix": "^0.5.17",
|
|
47
|
+
"geomcli": "^0.5.19",
|
|
48
|
+
"geometrix": "^0.5.16"
|
|
49
|
+
},
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"@typescript-eslint/eslint-plugin": "^7.0.1",
|
|
52
|
+
"@typescript-eslint/parser": "^7.0.1",
|
|
53
|
+
"bats": "^1.10.0",
|
|
54
|
+
"eslint": "^8.56.0",
|
|
55
|
+
"eslint-config-prettier": "^9.1.0",
|
|
56
|
+
"npm-run-all": "^4.1.5",
|
|
57
|
+
"prettier": "^3.2.5",
|
|
58
|
+
"shx": "^0.3.4",
|
|
59
|
+
"tsup": "^8.0.2",
|
|
60
|
+
"typescript": "^5.3.3",
|
|
61
|
+
"vitest": "^1.3.0"
|
|
62
|
+
},
|
|
63
|
+
"exports": {
|
|
64
|
+
".": {
|
|
65
|
+
"types": "./dist/designix-cli.d.ts",
|
|
66
|
+
"default": "./dist/designix-cli.js"
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"bin": {
|
|
70
|
+
"designix": "dist/designix-cli.js"
|
|
71
|
+
},
|
|
72
|
+
"files": [
|
|
73
|
+
"dist/",
|
|
74
|
+
"!dist/**/*.map",
|
|
75
|
+
"!dist/**/*.test.*",
|
|
76
|
+
"!dist/**/*.spec.*"
|
|
77
|
+
],
|
|
78
|
+
"type": "module"
|
|
79
|
+
}
|