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

Static assets missing in repo? #9

Open
johankson opened this issue Apr 10, 2022 · 2 comments
Open

Static assets missing in repo? #9

johankson opened this issue Apr 10, 2022 · 2 comments

Comments

@johankson
Copy link

Hi!

I'm a Blazor newbie so forgive me if I'm missing something obvious.
I forked the repo and checked out the demo. I had to copy the /lib/ folder from the nuget package to get it to work in order to get a hold of the mermaid.min.js file.

Doing so made it work, but I got two diagrams rendered.

Am I missing something here?

@DotJoshJohnson
Copy link
Member

You're not missing anything. It was just poor planning on my part. 😬

The MermaidJS.Blazor project relies on libman to manage the static assets at design time. In hindsight, I should have added this as a pre-build step in the project, but what you'll need to do for now is:

Ensure libman is installed:

dotnet tool install -g Microsoft.Web.LibraryManager.Cli

Run libman restore from the src/MermaidJS.Blazor directory to pull down the library:

libman restore

@johankson
Copy link
Author

Seems like libman is x86/x64 only. I'm using a M1 mac (arm64). Couldn't npm be used (and then copy the assets from the node_modules folder? to make it work for all platforms?

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

No branches or pull requests

2 participants