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

Move mathjax-full to a dev-dependency. #2242 #2244

Merged
merged 2 commits into from
Feb 7, 2020
Merged

Move mathjax-full to a dev-dependency. #2242 #2244

merged 2 commits into from
Feb 7, 2020

Conversation

dpvc
Copy link
Member

@dpvc dpvc commented Nov 19, 2019

Change mathjax-full dependency to a devDependency, so mathjax-full (and its dependencies) are not loaded when mathjax is included in a node project.

Resolves issue #2242

…s not loaded when mathjax is used as a dependency for a node project. Resolves issue #2242
@ggrossetie
Copy link

LGTM 😉

@chiptus
Copy link

chiptus commented Dec 11, 2019

can mathjax-full be loaded from npm instead of git?

@ggrossetie
Copy link

can mathjax-full be loaded from npm instead of git?

That would be even better since the package is published on npmjs: https://www.npmjs.com/package/mathjax-full

But it might change the release process a little bit because you would have to:

  1. release mathjax-full (for instance version 3.0.1)
  2. edit the package.json in this repository to update the version of mathjax-full (to version 3.0.1)
  3. release mathjax

@chiptus
Copy link

chiptus commented Dec 11, 2019

you can pin the version i.e mathjax-full: "3", no? sounds even better than using the git repo as it's not pinned

@chiptus
Copy link

chiptus commented Dec 11, 2019

quick fix for people who need this to be loaded from the npm repo and are using yarn:
add this to your package.json:

{
  ...other package.json things,
  "resolutions": {
     "mathjax-full": "3"
  }
}

@ggrossetie
Copy link

@chiptus Do you know if there's a workaround for npm?

@chiptus
Copy link

chiptus commented Feb 2, 2020 via email

…and add get-es5 script to copy the es5 from there rather than building it directly (since it is already included in mathjax-full
@dpvc
Copy link
Member Author

dpvc commented Feb 7, 2020

I've updated to use the mathjax-full package, as @Mogztter suggested. The es5 directory is already included in that package, so we can just copy that one rather than building it directly. The package.json has to be edited to update its version anyway, so it is no problem to adjust the mathjax-full version as well at that time.

We are preparing a v3.0.1 release, and these changes will be used for that version.

@dpvc dpvc merged commit e97ca14 into develop Feb 7, 2020
@dpvc dpvc deleted the issue2242 branch February 7, 2020 17:22
@ggrossetie
Copy link

Excellent ! Thanks @dpvc

@chiptus
Copy link

chiptus commented Feb 7, 2020 via email

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.

3 participants