simple-circuit-engine 0.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.
package/package.json ADDED
@@ -0,0 +1,94 @@
1
+ {
2
+ "name": "simple-circuit-engine",
3
+ "version": "0.0.1",
4
+ "description": "Educational electronic circuits Build & Simulation engine with THREE.js 3D visualization",
5
+ "type": "module",
6
+ "main": "./dist/index.js",
7
+ "module": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "sideEffects": false,
10
+ "files": [
11
+ "dist",
12
+ "README.md",
13
+ "LICENSE"
14
+ ],
15
+ "keywords": [
16
+ "circuit",
17
+ "digital",
18
+ "electronics",
19
+ "education",
20
+ "three.js",
21
+ "3d",
22
+ "visualization",
23
+ "builder",
24
+ "simulation"
25
+ ],
26
+ "author": "Simon Thuillier",
27
+ "license": "MIT",
28
+ "repository": {
29
+ "type": "git",
30
+ "url": "https://github.com/SimonThuillier/simple-circuit-engine"
31
+ },
32
+ "exports": {
33
+ ".": {
34
+ "types": "./dist/index.d.ts",
35
+ "import": "./dist/index.js"
36
+ },
37
+ "./core": {
38
+ "types": "./dist/core/index.d.ts",
39
+ "import": "./dist/core/index.js"
40
+ },
41
+ "./scene": {
42
+ "types": "./dist/scene/index.d.ts",
43
+ "import": "./dist/scene/index.js"
44
+ }
45
+ },
46
+ "scripts": {
47
+ "dev:demo": "vite --config vite.demo.config.ts",
48
+ "build": "tsc && vite build",
49
+ "prepublishOnly": "npm run build",
50
+ "build:visualizer": "vite build --config vite.visualizer.config.ts && cp scripts/visualizer/circuit-topology-visualizer.html output/",
51
+ "build:editor": "vite build --config vite.circuit-editor.config.ts && cp scripts/editor/circuit-editor.html output/",
52
+ "build:simulator": "vite build --config vite.circuit-simulator.config.ts && cp scripts/simulator/circuit-simulator.html output/",
53
+ "build:engine": "vite build --config vite.circuit-engine.config.ts && cp scripts/engine/circuit-engine.html output/",
54
+ "test": "vitest",
55
+ "test:ui": "vitest --ui",
56
+ "test:coverage": "vitest --coverage",
57
+ "typecheck": "tsc --noEmit",
58
+ "lint": "tsc --noEmit",
59
+ "format": "prettier --write .",
60
+ "format:check": "prettier --check .",
61
+ "generate:samples": "tsx scripts/samples/generate-sample-circuits.ts",
62
+ "docs:audit": "typedoc --validation.notDocumented --emit none 2>&1 | grep 'not documented'",
63
+ "docs:generate": "typedoc",
64
+ "docs:validate": "typedoc --treatWarningsAsErrors --treatValidationWarningsAsErrors",
65
+ "lint:docs": "eslint src --ext .ts --rule 'tsdoc/syntax: error'",
66
+ "check:unused": "npx knip"
67
+ },
68
+ "devDependencies": {
69
+ "d3": "^7.9.0",
70
+ "d3-graphviz": "^5.6.0",
71
+ "@types/d3": "^7.4.3",
72
+ "@types/d3-graphviz": "^2.6.10",
73
+ "@types/node": "^22.10.2",
74
+ "@types/three": "^0.181.0",
75
+ "@vitest/ui": "^4.0.15",
76
+ "jsdom": "^27.0.1",
77
+ "prettier": "3.7.1",
78
+ "tsx": "^4.20.6",
79
+ "typedoc": "^0.28.15",
80
+ "typescript": "^5.9.2",
81
+ "vite": "^7.2.0",
82
+ "vite-plugin-dts": "^4.3.0",
83
+ "vitest": "^4.0.15",
84
+ "knip": "^5.80.0"
85
+ },
86
+ "dependencies": {
87
+ "three": "^0.181.0",
88
+ "lil-gui": "^0.21.0"
89
+ },
90
+ "engines": {
91
+ "node": ">=18.0.0",
92
+ "npm": ">=11.6.0"
93
+ }
94
+ }