no ci for package building
This commit is contained in:
parent
1efcf41b50
commit
33611850b6
3 changed files with 7 additions and 105 deletions
30
README.md
30
README.md
|
|
@ -4,34 +4,18 @@ Three.js-based 3D viewer. Ships as a minified bundle for `web/libraries/dfg-3dvi
|
|||
|
||||
**Drupal integration** is provided by the separate [`dfg_3dviewer`](https://gitlab.nasarek.dev/rnsrk/dfg_3dviewer_drupal_module) module.
|
||||
|
||||
## Build
|
||||
## Build and package
|
||||
|
||||
```bash
|
||||
npm install
|
||||
npm run build:library
|
||||
npm run pack:library
|
||||
```
|
||||
|
||||
Output in `dist/library/`:
|
||||
Output:
|
||||
|
||||
- `dfg_3dviewer.min.js`
|
||||
- `assets/` — CSS, draco, IFC WASM, fonts
|
||||
|
||||
For local packaging (optional):
|
||||
|
||||
```bash
|
||||
npm run pack:library # creates dfg-3dviewer-library.zip (gitignored)
|
||||
```
|
||||
|
||||
## Releases
|
||||
|
||||
Tagged pushes build `dfg-3dviewer-library.zip` in CI and attach it to a GitLab Release.
|
||||
|
||||
```bash
|
||||
git tag v1.0.3
|
||||
git push origin v1.0.3
|
||||
```
|
||||
|
||||
Download the zip from [Releases](https://gitlab.nasarek.dev/rnsrk/dfg_3dviewer_js_library/-/releases) and extract to `web/libraries/dfg-3dviewer/` on Drupal.
|
||||
- `dist/library/` — `dfg_3dviewer.min.js` and `assets/` (CSS, draco, IFC WASM, fonts)
|
||||
- `dfg-3dviewer-library.zip` — extract to `web/libraries/dfg-3dviewer/` on Drupal (gitignored)
|
||||
|
||||
## Local development
|
||||
|
||||
|
|
@ -43,7 +27,7 @@ npm run dev:test
|
|||
|
||||
## Install on Drupal
|
||||
|
||||
1. Download `dfg-3dviewer-library.zip` from [Releases](https://gitlab.nasarek.dev/rnsrk/dfg_3dviewer_js_library/-/releases) and extract to `web/libraries/dfg-3dviewer/`
|
||||
1. Build and pack locally (see above), then extract `dfg-3dviewer-library.zip` to `web/libraries/dfg-3dviewer/`
|
||||
2. Enable the `dfg_3dviewer` Drupal module and configure at `/admin/config/dfg_3dviewer`
|
||||
|
||||
## Standalone embed
|
||||
|
|
@ -58,6 +42,6 @@ Or pass config in code: `await Viewer.MainInit({ ... })`.
|
|||
## Repository layout
|
||||
|
||||
- `viewer/` — source
|
||||
- `dist/` — build output (gitignored; run `npm run build:library` or download a Release zip)
|
||||
- `dist/` — build output (gitignored; run `npm run build:library`)
|
||||
- `rollup.config.js` — production builds
|
||||
- `tests/` — Playwright E2E
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue