@tscircuit/cli 0.0.204 → 0.0.206
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/bun.lockb +0 -0
- package/bunfig.toml +2 -0
- package/cli/lib/cmd-fns/dev/fulfill-export-requests.ts +0 -11
- package/cli/lib/cmd-fns/export-gerbers.ts +8 -2
- package/cli/lib/export-fns/export-gerbers.ts +1 -6
- package/cli/lib/get-program.ts +5 -1
- package/cli/lib/util/create-context-and-run-program.ts +5 -0
- package/cli/tests/export-gerber-keyboard.test.ts +16 -0
- package/cli/tests/export-gerber.test.ts +49 -0
- package/cli/tests/fixtures/preload.ts +54 -0
- package/dist/cli.js +24 -23
- package/example-project/examples/basic-chip.tsx +2 -7
- package/frontend/views/HeaderMenu.tsx +2 -2
- package/package.json +9 -4
|
@@ -4,12 +4,7 @@ import manual_edits from "../src/manual-edits"
|
|
|
4
4
|
|
|
5
5
|
export const BasicChip = () => (
|
|
6
6
|
<board pcbX={0} pcbY={0} width="20mm" height="20mm">
|
|
7
|
-
<group
|
|
8
|
-
subcircuit
|
|
9
|
-
layout={layout()
|
|
10
|
-
.autoLayoutSchematic()
|
|
11
|
-
.manualPcbPlacement(manual_edits.pcb_placements)}
|
|
12
|
-
>
|
|
7
|
+
<group subcircuit>
|
|
13
8
|
<chip
|
|
14
9
|
name="U2"
|
|
15
10
|
schPortArrangement={{
|
|
@@ -24,7 +19,7 @@ export const BasicChip = () => (
|
|
|
24
19
|
"4": "D+",
|
|
25
20
|
}}
|
|
26
21
|
/>
|
|
27
|
-
<resistor name="R1" resistance="10kohm" footprint="0805" />
|
|
22
|
+
<resistor name="R1" pcbX={4} resistance="10kohm" footprint="0805" />
|
|
28
23
|
<trace from=".U2 > .1" to=".R1 > port.1" />
|
|
29
24
|
</group>
|
|
30
25
|
</board>
|
|
@@ -137,7 +137,7 @@ export const HeaderMenu = () => {
|
|
|
137
137
|
Pick'n'Place CSV
|
|
138
138
|
</MenubarItem>
|
|
139
139
|
<MenubarItem onSelect={() => bomExportDialog.openDialog()}>
|
|
140
|
-
Bill of Materials
|
|
140
|
+
Bill of Materials CSV
|
|
141
141
|
</MenubarItem>
|
|
142
142
|
<MenubarItem
|
|
143
143
|
onSelect={() => {
|
|
@@ -154,7 +154,7 @@ export const HeaderMenu = () => {
|
|
|
154
154
|
Schematic (PDF)
|
|
155
155
|
</MenubarItem>
|
|
156
156
|
<MenubarItem onSelect={() => soupExportDialog.openDialog()}>
|
|
157
|
-
|
|
157
|
+
Circuit JSON
|
|
158
158
|
</MenubarItem>
|
|
159
159
|
</MenubarSubContent>
|
|
160
160
|
</MenubarSub>
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tscircuit/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.206",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Command line tool for developing, publishing and installing tscircuit circuits",
|
|
7
7
|
"main": "./dist/cli.js",
|
|
8
8
|
"scripts": {
|
|
9
|
-
"
|
|
9
|
+
"cli": "bun cli/cli.ts",
|
|
10
|
+
"start": "bun run dev",
|
|
10
11
|
"dev": "bun run build:dev-server && concurrently 'bun run dev:frontend' 'bun run dev:test-project'",
|
|
11
12
|
"dev:fast": "concurrently 'bun run dev:frontend' 'bun run dev:test-project'",
|
|
12
13
|
"dev:frontend": "vite dev --config frontend/vite.config.ts",
|
|
@@ -69,6 +70,7 @@
|
|
|
69
70
|
"prompts": "^2.4.2",
|
|
70
71
|
"redaxios": "^0.5.1",
|
|
71
72
|
"semver": "^7.6.0",
|
|
73
|
+
"tempy": "^3.1.0",
|
|
72
74
|
"ts-morph": "^22.0.0",
|
|
73
75
|
"tsup": "^8.0.2",
|
|
74
76
|
"winterspec": "0.0.86",
|
|
@@ -81,7 +83,7 @@
|
|
|
81
83
|
"@tscircuit/soup-util": "*"
|
|
82
84
|
},
|
|
83
85
|
"devDependencies": {
|
|
84
|
-
"@biomejs/biome": "^1.9.
|
|
86
|
+
"@biomejs/biome": "^1.9.1",
|
|
85
87
|
"@headlessui/react": "^1.7.18",
|
|
86
88
|
"@radix-ui/react-alert-dialog": "^1.0.5",
|
|
87
89
|
"@radix-ui/react-context-menu": "^2.1.5",
|
|
@@ -101,7 +103,7 @@
|
|
|
101
103
|
"@tscircuit/manual-edit-events": "^0.0.4",
|
|
102
104
|
"@tscircuit/pcb-viewer": "^1.10.2",
|
|
103
105
|
"@tscircuit/schematic-viewer": "^1.2.14",
|
|
104
|
-
"@tscircuit/soup-util": "^0.0.
|
|
106
|
+
"@tscircuit/soup-util": "^0.0.27",
|
|
105
107
|
"@tscircuit/table-viewer": "0.0.8",
|
|
106
108
|
"@types/archiver": "^6.0.2",
|
|
107
109
|
"@types/bun": "^1.0.8",
|
|
@@ -119,11 +121,14 @@
|
|
|
119
121
|
"@vitejs/plugin-react": "^4.3.1",
|
|
120
122
|
"autoprefixer": "^10.4.20",
|
|
121
123
|
"ava": "^6.1.1",
|
|
124
|
+
"bun-match-svg": "^0.0.3",
|
|
122
125
|
"class-variance-authority": "^0.7.0",
|
|
123
126
|
"clsx": "^2.1.0",
|
|
124
127
|
"cmdk": "^1.0.0",
|
|
125
128
|
"concurrently": "^8.2.2",
|
|
129
|
+
"extract-zip": "^2.0.1",
|
|
126
130
|
"make-vfs": "^1.0.10",
|
|
131
|
+
"pcb-stackup": "^4.2.8",
|
|
127
132
|
"postcss": "^8.4.41",
|
|
128
133
|
"react": "^18.2.0",
|
|
129
134
|
"react-data-grid": "7.0.0-beta.37",
|