calipho-sib / feature-viewer

Library to visualize protein sequence features in javascript using D3 - From SIB CALIPHO group; neXtProt project
http://calipho-sib.github.io/feature-viewer/examples/
Other
110 stars 31 forks source link

refactor: migrate to webpack #50

Closed sachdeva-shrey closed 3 years ago

sachdeva-shrey commented 3 years ago

Signed-off-by: sachdeva-shrey shreysachdeva.2000@gmail.com

Type of change

Please tick options that are relevant.

Changes

  1. Migrate to Webpack from Browserify and Grunt which is a much more powerful tool. This make the code base less complicated and easier to maintain in the future.
  2. Fixes the local development server which wasn't working earlier using Webpack.
  3. Removes Bower as a dependency and migrate to NPM/Yarn.
  4. When loading with CDN, previously all the functions (NextprotNXUtilsFeatureViewerNXViewerUtilsnxFeatureViewer) were being loaded as globals separately. Now, it would be loaded under the same namespace i.e. FeatureViewer so that it doesn't pollute the global window object. The FeatureViewer function will now be createFeature instead and it can be referred as new FeatureViewer.createFeature().
  5. Exposes neXtProt features to be through NPM/Yarn which weren't available previously.
  6. Fixes all examples in /examples directory.

Checklist: