Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install javascript packages with npm instead of putting the files directly in the source code #764

Open
wants to merge 13 commits into
base: development
Choose a base branch
from

Conversation

dakaza98
Copy link
Member

@dakaza98 dakaza98 commented Jun 4, 2023

This PR adds a new module that makes it possible to install javascript packages with npm. Currently, we are doing this by downloading a complete javascript file and adding it into the repository. For example, this is how we do it with codemirror and materialize. This was the way to it several years ago, but now everyone relies on npm instead. One of the main advantages is that it separates our libraries from our code as well as makes it much easier to remember to update the libraries. So I have added a module that allows us to install packages from npm and use them in our code.

To test the functionality of the npm module, I have also installed codemirror with npm to see if it works. This replaces the HTML code editor used in the HTML block when creating a webpage with the new codemirror from npm. Before, we had version 5 of codemirror but now they are using version 6, which means there are some changes to the HTML block code as well, but functionality should be similar

Closes #728

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update and find a better way to install codemirror
2 participants