add zip build to ci
This commit is contained in:
parent
7b210d5257
commit
9b015f4d9a
4 changed files with 67 additions and 7 deletions
29
README.md
29
README.md
|
|
@ -2,21 +2,36 @@
|
|||
|
||||
Three.js-based 3D viewer. Ships as a minified bundle for `web/libraries/dfg-3dviewer/` or standalone HTML embeds.
|
||||
|
||||
**Drupal integration** is provided by the separate [`dfg_3dviewer`](https://github.com/your-org/dfg_3dviewer) module.
|
||||
**Drupal integration** is provided by the separate [`dfg_3dviewer`](https://gitlab.nasarek.dev/rnsrk/dfg_3dviewer_drupal_module) module.
|
||||
|
||||
## Build
|
||||
|
||||
```bash
|
||||
npm install
|
||||
npm run build:library
|
||||
npm run pack:library
|
||||
```
|
||||
|
||||
Output:
|
||||
Output in `dist/library/`:
|
||||
|
||||
- `dist/library/dfg_3dviewer.min.js`
|
||||
- `dist/library/assets/` — CSS, draco, IFC WASM, fonts
|
||||
- `dfg-3dviewer-library.zip` — extract to `web/libraries/dfg-3dviewer/` on Drupal
|
||||
- `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.
|
||||
|
||||
## Local development
|
||||
|
||||
|
|
@ -28,7 +43,7 @@ npm run dev:test
|
|||
|
||||
## Install on Drupal
|
||||
|
||||
1. Extract `dfg-3dviewer-library.zip` to `web/libraries/dfg-3dviewer/`
|
||||
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/`
|
||||
2. Enable the `dfg_3dviewer` Drupal module and configure at `/admin/config/dfg_3dviewer`
|
||||
|
||||
## Standalone embed
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue