Skip to content

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

@dakaza98 dakaza98 requested review from Marmingen and robindymer June 4, 2023 13:50
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

3 participants