Skip to content

vemonet/cytoscape-rdf

Repository files navigation

🧬 Web Component to display Nanopublications

Run tests and update docs

A standard Web Component to display Nanopublications.

This document contains details on the development workflow used for the component.

Refer to the documentation website for more details on how to use the component: vemonet.github.io/cytoscape-rdf

📥️ Install

Clone the repository:

git clone https://github.com/vemonet/cytoscape-rdf
cd cytoscape-rdf

Install dependencies:

yarn

If you use VS Code, we highly recommend the lit-plugin extension, which enables some extremely useful features for lit-html templates.

🧑‍💻 Development

Start the component in development mode, it will automatically reload when the code is changed:

yarn dev

📦️ Build

To build the JavaScript version of your component:

yarn build

This sample uses the TypeScript compiler and rollup to produce JavaScript that runs in modern browsers.

☑️ Testing

Tests can be run with the test script:

yarn test

Alternatively the test:prod command will run your tests in Lit's production mode.

This project uses modern-web.dev's @web/test-runner for testing. See the modern-web.dev testing documentation for more information.

✒️ Formatting

Prettier is used for code formatting:

yarn fmt

You can change the configuration in the package.json. Prettier has not been configured to run when committing files, but this can be added with Husky and pretty-quick. See the prettier.io site for instructions.

✅ Linting

To check if the project does not break any linting rule run:

yarn lint

Linting of TypeScript files is provided by ESLint and TypeScript ESLint. In addition, lit-analyzer is used to type-check and lint lit-html templates with the same engine and rules as lit-plugin.

📖 Documentation website

To build and run the documentation website, run:

yarn docs

To build the website for deployment, run:

yarn docs:build

ℹ️ More information

🔨 Built with Lit and N3.js

Vite TS starter: https://github.com/vitejs/vite/tree/main/packages/create-vite/template-lit-ts

Official lit TS starter: https://github.com/lit/lit-element-starter-ts

About

🧬 A Web Component to display RDF quads data as cytoscape network

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published