Skip to content
OpenCloningPublic

About

Teselagen Open Source modules

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1,026 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenCloning fork of TeselaGen's Open Source Mono Repo

codecov

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"

Packages

@opencloning/tg-oss-ove (open-source vector editor - a tool for viewing and manipulating DNA/AA sequences)

@opencloning/tg-oss-ui (reusable react components)

@opencloning/tg-oss-bio-parsers (parsers and formatters for genbank/fasta/json/snapgene/geneious/jbei-xml)

@opencloning/tg-oss-sequence-utils (util functions for working with biological sequences (dna/rna/protein))

@opencloning/tg-oss-range-utils (util functions for working with biological ranges e.g. {start: 2, end: 61})

@opencloning/tg-oss-file-utils (util functions for working with files and blobs)

Contributing

This project welcomes contributions. Please have a look at the CONTRIBUTING file to learn about how to get started after a fresh clone.

License

All code from this repository is placed under the MIT License.

Publishing

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.

  1. PRs are squash-merged, and their title must follow Conventional Commits (checked by CI): feat: ..., fix: ..., perf: ..., deps: ..., or feat!: ... for breaking changes. These trigger a release. chore, docs, test, refactor, ci, build and style don't.
  2. 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's demo or cypress folders 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.
  3. 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.

Publishing a beta version (for use when linking to a branch in another project)

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.

Running tests

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

Coverage

Both collect coverage, which CI merges and uploads to Codecov (files excluded from it are listed in codecov.yml):

  • yarn test:coverage runs the unit tests with bun's coverage, written to coverage/ (options in bunfig.toml).
  • With VITE_COVERAGE=true, the dev server instruments the code (vite-plugin-istanbul) and Cypress collects the coverage (@cypress/code-coverage) into packages/<package>/coverage/, e.g. VITE_COVERAGE=true yarn workspace @opencloning/tg-oss-ove e2e.

Adding a new package

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).

About

Teselagen Open Source modules

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages