Build from source
The repository is an npm workspaces monorepo with five packages under packages/: sparql-utils, sparql-editor-monaco, sparql-editor-codemirror, sparql-results and sparql-studio.
Install:
sh
npm iRun dev server (dev/*.html):
sh
npm run devRun tests:
sh
npm testBuild packages:
sh
npm run buildWhat the library build emits
For each package, build:lib emits into packages/<pkg>/build:
- ESM (
*.js), the main entry point. - CSS (
*.css). - TypeScript declarations.
- The editor / language-server worker assets.
Assets bundling
Asset URLs use a relative base (base: "./") so they resolve in any consuming bundler.
The documentation website
This site is built with VitePress from the docs/ folder:
Local preview with hot reload:
sh
npm run docs:devBuild the static site into docs/.vitepress/dist:
sh
npm run docs:buildPreview the built site:
sh
npm run docs:previewOne-liner to build and test the docs website:
sh
npm run build && npm run docs:build && npm run docs:preview