Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 722 Bytes

building.md

File metadata and controls

25 lines (17 loc) · 722 Bytes

Simple steps to test this locally

  1. Add a .npmrc file
registry=https://registry.npmjs.com/
@mermaid-js:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken="YOUR-TOKEN"

Generate the auth token from the github profile page => settings => developer settings => personal access tokens. Click on the button “Generate new token” and check the checkboxes concerning repo and github registry.

Instead of creating a .npmrc file on your own you can also use npm login --registry=https://npm.pkg.github.com which gives you an interactive prompt for entering your credentials.

  1. Do npm install
npm install
  1. Run the script like below:
node src/cli.js -i test/state1.mmd