@sequent-org/ifc-viewer 1.0.2-ci.2.0 → 1.0.2-ci.4.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/src/index.js ADDED
@@ -0,0 +1,13 @@
1
+ // Основная точка входа пакета @sequent-org/ifc-viewer
2
+ // Автоматически подключает стили и экспортирует API
3
+
4
+ // Подключаем стили автоматически
5
+ import "./style.css";
6
+
7
+ // Экспортируем основной класс
8
+ export { IfcViewer } from "./IfcViewer.js";
9
+
10
+ // Экспортируем вспомогательные классы для расширенного использования
11
+ export { Viewer } from "./viewer/Viewer.js";
12
+ export { IfcService } from "./ifc/IfcService.js";
13
+ export { IfcTreeView } from "./ifc/IfcTreeView.js";
@@ -1,39 +0,0 @@
1
- name: Publish to npm on push (latest)
2
-
3
- on:
4
- push:
5
- branches: [main]
6
-
7
- jobs:
8
- publish:
9
- runs-on: ubuntu-latest
10
- permissions:
11
- contents: read
12
- steps:
13
- - name: Checkout
14
- uses: actions/checkout@v4
15
-
16
- - name: Setup Node
17
- uses: actions/setup-node@v4
18
- with:
19
- node-version: 20
20
- registry-url: 'https://registry.npmjs.org'
21
- cache: 'npm'
22
-
23
- - name: Install deps
24
- run: npm ci
25
-
26
- - name: Test (optional)
27
- run: npm test --if-present
28
-
29
- - name: Build (optional)
30
- run: npm run build --if-present
31
-
32
- - name: Bump unique version (no commit)
33
- # Делает уникальную версию на каждый запуск (пример: 0.1.1-ci.123.0)
34
- run: npm version prerelease --preid=ci.${{ github.run_number }} --no-git-tag-version
35
-
36
- - name: Publish to npm (latest)
37
- env:
38
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
39
- run: npm publish --access public