EMo release via npm
A project needs a convenient way to integrate the Viewer
Goals:
-
- publish the Viewer as npm package
-
- install the Viewer as npm package
-
- integrate the Viewer
Publish
-
what to publish (build && statics && usual suspects): setup package.json -
setup package scope (GitLab) -
create access token (GitLab) -
configure registry setup / .npmrc -
configure publishing setup in package.json
Install
-
setup registry according to package scope -
install the npm package
Integrate
-
import js modules (main.js) -
import css (main.scss) -
copy config-object (project's entrypoint)
TODOs:
-
(automate) renaming of build files from checksums to readable names to ease the integration -
patch / change build pipeline to end up with a single js / css file instead of 3 (if applicable) -
release the Viewer as standalone package -
accordance on licensing
Edited by schneider210