Repository navigation
61 replace webPack by Vite - #131
Merged
Merged
Conversation
…vironment. - now the real browser version of SAxon-JS is used in the browser with a special loading, as no npm-package was available for it - add 2 test-suites for PlayWright with testing in a setip with a real browser.
- .. and jest 29.7
- ... and import-xml.ts to accept multiple aProperty values
Merge pull request #127 from GfSE/125-Display-CASCaRA-Types-(Ontology)
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Imported IDs can inject HTML event handlers, while Turtle export incorrectly converts repeated values into RDF lists and URL-shaped literals into IRIs.
5 open issues
Escape imported IDs before inserting them into HTML attributes · New Preserve direct RDF predicate values instead of wrapping them in lists · New Keep URL-shaped property values as literals · New Keep language-tagged values as strings until serializers support arrays · New Assert that imported items render in the outline after reload · New
What changed in this PR
Migrates the Vue application from Vue CLI/Webpack to Vite to modernize the build environment and reduce legacy dependency exposure. It also updates browser integration tests and several shared import/export behaviors.
Changes:
- Replaces build configuration, updates dependencies, and loads the Saxon-JS browser runtime separately.
- Adds production-build browser tests for ReqIF transformation and cache persistence, integrated into CI.
- Adds ontology navigation links and changes XML property parsing and Turtle serialization.
| File | Description |
|---|---|
tests/browser/saxon-js-reqif.spec.ts |
Adds browser-runtime and ReqIF transformation smoke tests. |
tests/browser/README.md |
Documents browser testing and CI integration. |
tests/browser/item-cache-pinia-store.spec.ts |
Tests import, persistence, and reload behavior. |
tests/browser/import-reqif-xslt.spec.ts |
Removes native-browser XSLT tests. |
test-results/.last-run.json |
Updates recorded test status. |
src/vue/stores/asset-cache.ts |
Legacy source path; no diff supplied. |
src/vue/shims-vue.d.ts |
Legacy declaration path; no diff supplied. |
src/vue/plugins/export/neo4j-api/export-neo4j.vue |
Legacy export path; no diff supplied. |
src/vue/main.ts |
Legacy entry-point path; no diff supplied. |
src/vue/App.vue |
Legacy application path; no diff supplied. |
src/common/lib/operations.ts |
Legacy shared-library path; no diff supplied. |
playwright.config.ts |
Builds and serves the production app for browser tests. |
packages/vue/vue.config.js |
Removes Webpack configuration. |
packages/vue/vite.config.mts |
Adds Vite plugins, aliases, and security headers. |
packages/vue/tsconfig.json |
Switches browser environment types to Vite. |
packages/vue/src/main.ts |
Uses Vite glob imports for plugin discovery. |
packages/vue/src/components/PageOntology.vue |
Adds titled cross-reference links and outline navigation. |
packages/vue/public/index.html |
Removes the Vue CLI HTML template. |
packages/vue/package.json |
Replaces build tooling and updates test dependencies. |
packages/vue/jest.config.js |
Replaces the Vue CLI Jest preset with explicit transforms. |
packages/vue/index.html |
Adds the Vite entry page and Saxon-JS script. |
packages/vue/babel.config.js |
Replaces the Vue CLI Babel preset. |
packages/vue/.eslintignore |
Excludes generated and static files from linting. |
packages/common/tests/pig-metaclasses-xml.spec.ts |
Tests importing multiple property values. |
packages/common/src/schema/pig/ts/pig-metaclasses.ts |
Splits XML property values into separate instances. |
packages/common/src/lib/platform-independence.ts |
Resolves Saxon-JS separately for browser and Node environments. |
packages/common/src/lib/definitions.ts |
Adds a mailto matching expression. |
packages/common/src/export/ttl/getTTL.ts |
Changes repeated-value and URI-like value serialization. |
packages/common/src/export/html/getHTML.ts |
Adds title-resolved ontology cross-reference links. |
packages/common/src/build-info.ts |
Refreshes generated version and build metadata. |
packages/common/package.json |
Updates version and testing dependencies. |
package.json |
Adds browser tests to the combined test command. |
.github/workflows/README.md |
Documents CI and Saxon-JS runtime maintenance. |
.github/workflows/node.js.yml |
Installs Chromium and runs combined tests. |
.github/copilot-instructions.md |
Translates guidance and adds cross-reference rendering requirements. |
Review effort: Balanced
- improved Turtle export to include property restrictions plus some refinements
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Maintain build environment: Replace WebPack by Vite, because the former is deprecated in the Vue environment. As the used version of WebPack is older, there are numerous vulnerabilities that we've got rid of.