Skip to content

Do not depend on bower for frontend packages #1966

@brichet

Description

@brichet

The formgrader extension relies on bower for the frontend dependencies that is serves.

Bower is deprecated and should not be used anymore, we can't update the dependencies.
This leads to security issues like https://github.com/jupyter/nbgrader/security/dependabot/60.

The 2 ways I can see to not use bower anymore are:

  1. Using CDN for the frontend packages
    This would easily solve the problem as all the packages seems to be available over CDN.
    The drawback is that we need network access to run the application, and also to properly display the feedbacks

    {{ resources.include_css('bootstrap.min.css')}}

    Reference to Reduce the size of feedback files #718 (comment)

  2. Using NPM to download the dependencies in the static directory.
    Then the `node_modules directory would replace the current components directory, and could be included with the formgrader extension.
    That way it would be the same behavior as currently.

I would go for the 2nd way to reduce changes.

References:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions