This is a fork of TeselaGen/tg-oss, which is no longer maintained by its original authors. The packages are published to npm under the @opencloning scope (previously @teselagen).
To migrate from the @teselagen/* packages, replace the scope in your dependencies and imports, or keep your existing imports by using an npm alias:
"@teselagen/ove": "npm:@opencloning/tg-oss-ove@^1.0.0"@opencloning/tg-oss-ove (open-source vector editor - a tool for viewing and manipulating DNA/AA sequences)
- DEMO: https://opencloning.github.io/tg-oss/ove
- CODE: packages/ove
@opencloning/tg-oss-ui (reusable react components)
- DEMO: https://opencloning.github.io/tg-oss/ui
- CODE: packages/ui
@opencloning/tg-oss-bio-parsers (parsers and formatters for genbank/fasta/json/snapgene/geneious/jbei-xml)
- CODE: packages/bio-parsers
@opencloning/tg-oss-sequence-utils (util functions for working with biological sequences (dna/rna/protein))
- CODE: packages/sequence-utils
@opencloning/tg-oss-range-utils (util functions for working with biological ranges e.g. {start: 2, end: 61})
- CODE: packages/range-utils
@opencloning/tg-oss-file-utils (util functions for working with files and blobs)
- CODE: packages/file-utils
This project welcomes contributions. Please have a look at the CONTRIBUTING file to learn about how to get started after a fresh clone.
All code from this repository is placed under the MIT License.
Packages are versioned and released independently with release-please (see release-please-config.json and .github/workflows/publish.yml). Don't bump versions or edit the CHANGELOG.md files by hand.
- PRs are squash-merged, and their title must follow Conventional Commits (checked by CI):
feat: ...,fix: ...,perf: ...,deps: ..., orfeat!: ...for breaking changes. These trigger a release.chore,docs,test,refactor,ci,buildandstyledon't. - On every push to master, release-please opens or updates a single release PR. For each package, it looks at the commits that touched files in
packages/<package>since its last release, and bumps the version and writes the CHANGELOG.md of only the packages that changed. Changes to a package'sdemoorcypressfolders don't count. A package that depends on a bumped package gets a patch release too, because the published packages pin each other's exact versions. - Merging the release PR tags each released package (e.g.
tg-oss-ove-v1.0.2), creates the GitHub releases, and publishes the new versions to npm. The ove and ui demos are deployed to gh-pages when their version changes.
To force a specific version, add a Release-As: x.y.z footer to the body of a commit that touches the package.
Push to the beta branch. The GitHub Action publishes each package with a version based on its current version and the workflow run number (for example, 1.0.0-beta.42), using the beta npm tag. Rerunning the same workflow keeps the same versions.
Unit tests are run automatically via precommit hook that runs a bun test command at the top level
Cypress e2e tests can be run locally via the following commands:
yarn workspace @opencloning/tg-oss-ove launch-e2e
yarn workspace @opencloning/tg-oss-ui launch-e2e
CI is run via GitHub Actions on every pull request and push to master, and runs the unit tests and a suite of Cypress e2e tests
Both collect coverage, which CI merges and uploads to Codecov (files excluded from it are listed in codecov.yml):
yarn test:coverageruns the unit tests with bun's coverage, written tocoverage/(options inbunfig.toml).- With
VITE_COVERAGE=true, the dev server instruments the code (vite-plugin-istanbul) and Cypress collects the coverage (@cypress/code-coverage) intopackages/<package>/coverage/, e.g.VITE_COVERAGE=true yarn workspace @opencloning/tg-oss-ove e2e.
Duplicate an existing package that is most similar to the new package being added and make the necessary changes.
You'll need to ask an @opencloning npm org admin to update the trusted publishers settings in the npm registry for the new package (a maintainer will need to manually publish the first version in order to add it to the registry).