Skip to content

Commit

Permalink
Change build environment
Browse files Browse the repository at this point in the history
  • Loading branch information
hasanbalci committed Aug 28, 2024
1 parent 2158ae4 commit f9d6eb5
Show file tree
Hide file tree
Showing 6 changed files with 2,226 additions and 7,014 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -242,12 +242,20 @@ require(['cytoscape', 'cytoscape-expand-collapse'], function( cytoscape, expandC
Plain HTML/JS has the extension registered for you automatically, because no `require()` is needed.


## Build targets

* `npm run build` : Build `./src/**` into `cytoscape-expand-collapse.js` in production environment and minimize the file.
* `npm run build:dev` : Build `./src/**` into `cytoscape-expand-collapse.js` in development environment without minimizing the file.

## Publishing instructions

This project is set up to automatically be published to npm and bower. To publish:

1. Set the version number environment variable: `export VERSION=1.2.3`
1. Publish: `gulp publish`
1. Build the extension : `npm run build`
1. Commit the build : `git commit -am "Build for release"`
1. Bump the version number and tag: `npm version major|minor|patch`
1. Push to origin: `git push && git push --tags`
1. Publish to npm: `npm publish .`
1. If publishing to bower for the first time, you'll need to run `bower register cytoscape-expand-collapse https://github.com/iVis-at-Bilkent/cytoscape.js-expand-collapse.git`


Expand Down
Loading

0 comments on commit f9d6eb5

Please sign in to comment.