[ ] New feature (non-breaking change which adds functionality)
[x] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[x] Bug fix (non-breaking change which fixes an issue)
[x] This change requires a documentation update
Changes
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.
Fixes the local development server which wasn't working earlier using Webpack.
Removes Bower as a dependency and migrate to NPM/Yarn.
When loading with CDN, previously all the functions (Nextprot, NXUtils, FeatureViewer, NXViewerUtils, nxFeatureViewer) 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().
Exposes neXtProt features to be through Node which weren't available previously.
Fixes all examples in /examples directory.
Checklist:
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[x] Any dependent changes have been merged and published in downstream modules
Signed-off-by: sachdeva-shrey shreysachdeva.2000@gmail.com
Type of change
Please tick options that are relevant.
Changes
Nextprot
,NXUtils
,FeatureViewer
,NXViewerUtils
,nxFeatureViewer
) 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. TheFeatureViewer
function will now becreateFeature
instead and it can be referred asnew FeatureViewer.createFeature()
./examples
directory.Checklist: