create-ifc-lite 1.14.6 → 1.14.7

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 CHANGED
@@ -54,6 +54,6 @@ Each template ships with a `README.md` documenting what it does and how to exten
54
54
 
55
55
  ## Learn more
56
56
 
57
- - [IFClite docs](https://louistrue.github.io/ifc-lite/)
58
- - [GitHub repo](https://github.com/louistrue/ifc-lite)
59
- - [Quick Start guide](https://github.com/louistrue/ifc-lite/blob/main/https://louistrue.github.io/ifc-lite/guide/quickstart/)
57
+ - [IFClite docs](https://ltplus-ag.github.io/ifc-lite/)
58
+ - [GitHub repo](https://github.com/LTplus-AG/ifc-lite)
59
+ - [Quick Start guide](https://github.com/LTplus-AG/ifc-lite/blob/main/https://ltplus-ag.github.io/ifc-lite/guide/quickstart/)
@@ -250,7 +250,7 @@ fileInput.addEventListener('change', async () => {
250
250
  // README
251
251
  writeFileSync(join(targetDir, 'README.md'), `# ${projectName}
252
252
 
253
- Babylon.js IFC viewer using [IFC-Lite](https://github.com/louistrue/ifc-lite).
253
+ Babylon.js IFC viewer using [IFC-Lite](https://github.com/LTplus-AG/ifc-lite).
254
254
 
255
255
  ## Quick Start
256
256
 
@@ -263,6 +263,6 @@ Open http://localhost:5173 and drop an IFC file.
263
263
 
264
264
  ## Learn More
265
265
 
266
- - [IFC-Lite Documentation](https://louistrue.github.io/ifc-lite/)
266
+ - [IFC-Lite Documentation](https://ltplus-ag.github.io/ifc-lite/)
267
267
  `);
268
268
  }
@@ -67,19 +67,19 @@ const buffer = nodeBuffer.buffer.slice(
67
67
  const parser = new IfcParser();
68
68
 
69
69
  console.log('Parsing IFC file...');
70
- parser.parse(buffer).then(result => {
70
+ parser.parseColumnar(buffer).then(store => {
71
71
  console.log('\\nFile parsed successfully!');
72
- console.log(\` Entities: \${result.entityCount}\`);
72
+ console.log(\` Entities: \${store.entityCount}\`);
73
+ console.log(\` Schema: \${store.schemaVersion}\`);
73
74
 
74
75
  // Count by type
75
- const typeCounts = new Map<string, number>();
76
- for (const [id, entity] of result.entities) {
77
- typeCounts.set(entity.type, (typeCounts.get(entity.type) || 0) + 1);
78
- }
76
+ const typeCounts = [...store.entityIndex.byType.entries()]
77
+ .map(([type, ids]) => [type, ids.length] as const)
78
+ .sort((a, b) => b[1] - a[1])
79
+ .slice(0, 10);
79
80
 
80
81
  console.log('\\nTop entity types:');
81
- const sorted = [...typeCounts.entries()].sort((a, b) => b[1] - a[1]).slice(0, 10);
82
- for (const [type, count] of sorted) {
82
+ for (const [type, count] of typeCounts) {
83
83
  console.log(\` \${type}: \${count}\`);
84
84
  }
85
85
  });
@@ -87,7 +87,7 @@ parser.parse(buffer).then(result => {
87
87
  // README
88
88
  writeFileSync(join(targetDir, 'README.md'), `# ${projectName}
89
89
 
90
- IFC parser project using [IFC-Lite](https://github.com/louistrue/ifc-lite).
90
+ IFC parser project using [IFC-Lite](https://github.com/LTplus-AG/ifc-lite).
91
91
 
92
92
  ## Quick Start
93
93
 
@@ -98,7 +98,7 @@ npm run parse ./your-model.ifc
98
98
 
99
99
  ## Learn More
100
100
 
101
- - [IFC-Lite Documentation](https://louistrue.github.io/ifc-lite/)
102
- - [API Reference](https://louistrue.github.io/ifc-lite/api/)
101
+ - [IFC-Lite Documentation](https://ltplus-ag.github.io/ifc-lite/)
102
+ - [API Reference](https://ltplus-ag.github.io/ifc-lite/api/)
103
103
  `);
104
104
  }
@@ -552,7 +552,7 @@ body {
552
552
  `);
553
553
  writeFileSync(join(targetDir, 'README.md'), `# ${projectName}
554
554
 
555
- React + Vite IFC viewer using [IFC-Lite](https://github.com/louistrue/ifc-lite).
555
+ React + Vite IFC viewer using [IFC-Lite](https://github.com/LTplus-AG/ifc-lite).
556
556
 
557
557
  ## Quick Start
558
558
 
@@ -573,8 +573,8 @@ Open the app in your browser and drop an IFC file onto the viewport.
573
573
 
574
574
  ## Learn More
575
575
 
576
- - [IFC-Lite Documentation](https://louistrue.github.io/ifc-lite/)
577
- - [Rendering Guide](https://louistrue.github.io/ifc-lite/guide/rendering/)
578
- - [Geometry Guide](https://louistrue.github.io/ifc-lite/guide/geometry/)
576
+ - [IFC-Lite Documentation](https://ltplus-ag.github.io/ifc-lite/)
577
+ - [Rendering Guide](https://ltplus-ag.github.io/ifc-lite/guide/rendering/)
578
+ - [Geometry Guide](https://ltplus-ag.github.io/ifc-lite/guide/geometry/)
579
579
  `);
580
580
  }
@@ -401,8 +401,8 @@ npx create-ifc-lite my-app --template server
401
401
 
402
402
  ## Learn More
403
403
 
404
- - [IFC-Lite Documentation](https://louistrue.github.io/ifc-lite/)
405
- - [GitHub Repository](https://github.com/louistrue/ifc-lite)
404
+ - [IFC-Lite Documentation](https://ltplus-ag.github.io/ifc-lite/)
405
+ - [GitHub Repository](https://github.com/LTplus-AG/ifc-lite)
406
406
  `);
407
407
  console.log(' Created package.json');
408
408
  console.log(' Created tsconfig.json');
@@ -15,7 +15,7 @@ export function createServerTemplate(targetDir, projectName) {
15
15
 
16
16
  services:
17
17
  ifc-server:
18
- image: ghcr.io/louistrue/ifc-lite-server:latest
18
+ image: ghcr.io/LTplus-AG/ifc-lite-server:latest
19
19
  container_name: ${projectName}-server
20
20
  ports:
21
21
  - "\${PORT:-3001}:8080"
@@ -47,7 +47,7 @@ volumes:
47
47
 
48
48
  services:
49
49
  ifc-server:
50
- image: ghcr.io/louistrue/ifc-lite-server:latest
50
+ image: ghcr.io/LTplus-AG/ifc-lite-server:latest
51
51
  container_name: ${projectName}-server-dev
52
52
  ports:
53
53
  - "\${PORT:-3001}:8080"
@@ -474,7 +474,7 @@ export function createLocalClient(options?: { timeout?: number }) {
474
474
  // README.md
475
475
  writeFileSync(join(targetDir, 'README.md'), `# ${projectName}
476
476
 
477
- IFC processing server using [IFC-Lite](https://github.com/louistrue/ifc-lite).
477
+ IFC processing server using [IFC-Lite](https://github.com/LTplus-AG/ifc-lite).
478
478
 
479
479
  ## Quick Start
480
480
 
@@ -585,8 +585,8 @@ The Docker image works on any container platform:
585
585
 
586
586
  \`\`\`bash
587
587
  # Pull and run
588
- docker pull ghcr.io/louistrue/ifc-lite-server:latest
589
- docker run -p 8080:8080 -v ifc-cache:/app/cache ghcr.io/louistrue/ifc-lite-server
588
+ docker pull ghcr.io/LTplus-AG/ifc-lite-server:latest
589
+ docker run -p 8080:8080 -v ifc-cache:/app/cache ghcr.io/LTplus-AG/ifc-lite-server
590
590
  \`\`\`
591
591
 
592
592
  ### Environment Variables
@@ -603,9 +603,9 @@ RUST_LOG=info
603
603
 
604
604
  ## Learn More
605
605
 
606
- - [IFC-Lite Documentation](https://louistrue.github.io/ifc-lite/)
607
- - [Server API Reference](https://louistrue.github.io/ifc-lite/api/server/)
608
- - [GitHub Repository](https://github.com/louistrue/ifc-lite)
606
+ - [IFC-Lite Documentation](https://ltplus-ag.github.io/ifc-lite/)
607
+ - [Server API Reference](https://ltplus-ag.github.io/ifc-lite/api/server/)
608
+ - [GitHub Repository](https://github.com/LTplus-AG/ifc-lite)
609
609
  `);
610
610
  console.log(' Created docker-compose.yml');
611
611
  console.log(' Created docker-compose.dev.yml');
@@ -258,7 +258,7 @@ fileInput.addEventListener('change', async () => {
258
258
  // README
259
259
  writeFileSync(join(targetDir, 'README.md'), `# ${projectName}
260
260
 
261
- Three.js IFC viewer using [IFC-Lite](https://github.com/louistrue/ifc-lite).
261
+ Three.js IFC viewer using [IFC-Lite](https://github.com/LTplus-AG/ifc-lite).
262
262
 
263
263
  ## Quick Start
264
264
 
@@ -271,7 +271,7 @@ Open http://localhost:5173 and drop an IFC file.
271
271
 
272
272
  ## Learn More
273
273
 
274
- - [Three.js Integration Guide](https://louistrue.github.io/ifc-lite/tutorials/threejs-integration/)
275
- - [IFC-Lite Documentation](https://louistrue.github.io/ifc-lite/)
274
+ - [Three.js Integration Guide](https://ltplus-ag.github.io/ifc-lite/tutorials/threejs-integration/)
275
+ - [IFC-Lite Documentation](https://ltplus-ag.github.io/ifc-lite/)
276
276
  `);
277
277
  }
@@ -4,7 +4,7 @@
4
4
  import { rmSync } from 'fs';
5
5
  import { join, dirname } from 'path';
6
6
  import { execSync } from 'child_process';
7
- const REPO_URL = 'https://github.com/louistrue/ifc-lite';
7
+ const REPO_URL = 'https://github.com/LTplus-AG/ifc-lite';
8
8
  const VIEWER_PATH = 'apps/viewer';
9
9
  /**
10
10
  * Run a shell command silently. Returns true on success, false on failure.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-ifc-lite",
3
- "version": "1.14.6",
3
+ "version": "1.14.7",
4
4
  "description": "Create IFC-Lite projects with one command",
5
5
  "type": "module",
6
6
  "bin": {
@@ -21,7 +21,7 @@
21
21
  "license": "MPL-2.0",
22
22
  "repository": {
23
23
  "type": "git",
24
- "url": "https://github.com/louistrue/ifc-lite.git",
24
+ "url": "https://github.com/LTplus-AG/ifc-lite.git",
25
25
  "directory": "packages/create-ifc-lite"
26
26
  },
27
27
  "publishConfig": {
@@ -30,6 +30,10 @@
30
30
  "engines": {
31
31
  "node": ">=18.0.0"
32
32
  },
33
+ "devDependencies": {
34
+ "@types/node": "^25.9.1",
35
+ "typescript": "^5.3.0"
36
+ },
33
37
  "scripts": {
34
38
  "build": "pnpm exec tsc",
35
39
  "dev": "pnpm exec tsc --watch"