GMOD / jbrowse-components

Source code for JBrowse 2, a modern React-based genome browser
https://jbrowse.org/jb2
Apache License 2.0
208 stars 62 forks source link

Simplify plugin-development-tools rollup config? #4009

Open cmdcolin opened 1 year ago

cmdcolin commented 1 year ago

Example: I am not sure what the "NPM" mode is in the plugin-development-tools is

Possible idea: It might be that moving more of the contents of the plugin-development-tools e.g. createRollupConfig into the jbrowse-plugin-template itself could help, it would give plugin authors more control over the output and reduce a 'black box'

cmdcolin commented 1 year ago

This is a somewhat separate issue but if plugins like @jbrowse/plugin-linear-genome-view could add to the JBrowseReExports it could be an interesting way to improve code readability. Currently, you have to do things like this instead

https://github.com/cmdcolin/jbrowse-plugin-gwas/blob/master/src/LinearManhattanDisplay/index.ts#L9-L13

garrettjstevens commented 1 year ago

For reference, "NPM" mode creates a set of files that does not bundle dependencies and can be published to NPM and then NPM installed by e.g. an app using embedded components.