0.6.11 • Published 1 year ago
@js4cytoscape/cx2js v0.6.11
cytoscape-cx2js
Convert CX JSON to cytoscape.js.
cytoscape-cx2js does not handle conversion of Cytoscape Desktop Annotations. To convert Cytoscape Desktop Annotations to cytoscape.js see: cyannotation-cx2js.
cytoscape-cx2js does not handle conversion of CX2. To convert CX2 to cytoscape.js see: cx-viz-converter.
Documentation for the CX data model can be found here.
Run targets
npm run build: build projectnpm run build-prod: build the project for productionnpm run clean: clean the projectnpm run watch: watch mode (debug mode enabled, autorebuild, autoreload)npm test: run testsnpm run lint: lint the project
Testing
All files /test will be run by Mocha. You can npm test to run all tests, or you can run mocha -g specific-test-name (prerequisite: npm install -g mocha) to run specific tests.
Chai is included to make the tests easier to read and write.
Publishing a release
- Make sure the tests are passing:
npm test - Make sure the linting is passing:
npm run lint - Bump the version number with
npm version, in accordance with semver. Theversioncommand innpmupdates bothpackage.jsonand git tags, but note that it uses avprefix on the tags (e.g.v1.2.3). - For a bug fix / patch release, run
npm version patch. - For a new feature release, run
npm version minor. - For a breaking API change, run
npm version major. - For a specific version number (e.g. 1.2.3), run
npm version 1.2.3. - Push the release:
git push origin --tags - Publish to npm:
npm publish .
0.6.11
1 year ago
0.6.10
2 years ago
0.6.9-alpha.1
2 years ago
0.6.8
3 years ago
0.6.7-alpha.1
4 years ago
0.6.7-alpha.0
4 years ago
0.6.7-7-alpha.0
4 years ago
0.6.5
4 years ago