This page is for if you want to run the package and reusable components in development, and get involved by making a code contribution.
Clone the repository:
git clone https://github.com/sib-swiss/sparql-editor
cd sparql-editorRequirement: NodeJS installed.
Install dependencies:
npm iUpgrade dependencies to the latest available versions:
npm run upgradeRun the index.html page in development with auto reload when change to the code:
npm run devRun the demo pages locally:
npm run demoRun linting and basic tests with vitest:
npm testTip
This will be done automatically when you commit through a pre-commit hook.
Auto format code with prettier:
npm run fmtLint with eslint (we recommend to install the ESLint extension on VSCode):
npm run lintBuild for production in the dist folder:
npm run buildTo create a new release, you will need to login on your machine once with npm adduser if not already done.
Running the following script will upgrade version in package.json, generate changelog, create a tag, and publish the package to NPM:
cd packages/sparql-editor
npm version patch
# Or minor / majorYou will need to go through NPM 2FA to publish.
cd packages/sparql-overview
npm version patch