This commit adds support for generating links to be rendered with [Kroki](https://kroki.io) compatible renderer. Apart from supporting many other diagram formats, it directly benefits Mermaid editor because it generates much shorter URLs (due to the compression). Custom Kroki URL can be configured through environment variable if you want to use self-hosted instance of Kroki.
76 lines
2.1 KiB
JSON
76 lines
2.1 KiB
JSON
{
|
|
"name": "mermaid-live-editor",
|
|
"version": "2.0.67",
|
|
"scripts": {
|
|
"dev": "svelte-kit dev --host 0.0.0.0",
|
|
"build": "svelte-kit build",
|
|
"preview": "svelte-kit preview",
|
|
"lint": "prettier --check --plugin-search-dir=. . && eslint --ignore-path .gitignore .",
|
|
"lint:fix": "prettier --write --plugin-search-dir=. . && eslint --fix --ignore-path .gitignore .",
|
|
"format": "prettier --write --plugin-search-dir=. .",
|
|
"pre-commit": "lint-staged",
|
|
"postinstall": "husky install",
|
|
"test": "cypress run",
|
|
"cy": "cypress open"
|
|
},
|
|
"devDependencies": {
|
|
"@cypress/snapshot": "^2.1.7",
|
|
"@sveltejs/adapter-static": "1.0.0-next.22",
|
|
"@sveltejs/kit": "1.0.0-next.202",
|
|
"@types/mermaid": "^8.2.7",
|
|
"@typescript-eslint/eslint-plugin": "^4.33.0",
|
|
"@typescript-eslint/parser": "^4.33.0",
|
|
"autoprefixer": "^10.4.0",
|
|
"chai": "^4.3.4",
|
|
"cssnano": "^5.0.14",
|
|
"cypress": "9.2.0",
|
|
"cypress-localstorage-commands": "^1.6.1",
|
|
"eslint": "^7.32.0",
|
|
"eslint-config-prettier": "^8.1.0",
|
|
"eslint-plugin-cypress": "^2.12.1",
|
|
"eslint-plugin-es": "^4.1.0",
|
|
"eslint-plugin-mocha": "^10.0.3",
|
|
"eslint-plugin-postcss-modules": "^2.0.0",
|
|
"eslint-plugin-svelte3": "^3.2.1",
|
|
"eslint-plugin-tailwindcss": "^1.17.2",
|
|
"husky": "^7.0.4",
|
|
"lint-staged": "^12.1.4",
|
|
"mocha": "^9.1.3",
|
|
"node-html-parser": "^5.2.0",
|
|
"postcss": "^8.4.5",
|
|
"postcss-load-config": "^3.1.0",
|
|
"prettier": "~2.5.1",
|
|
"prettier-plugin-svelte": "^2.5.1",
|
|
"svelte": "^3.46.1",
|
|
"svelte-preprocess": "^4.10.1",
|
|
"tailwindcss": "^3.0.13",
|
|
"tslib": "^2.3.1",
|
|
"typescript": "^4.5.4"
|
|
},
|
|
"type": "module",
|
|
"dependencies": {
|
|
"@analytics/google-analytics": "^0.5.3",
|
|
"@macfja/svelte-persistent-store": "^1.2.0",
|
|
"analytics": "^0.7.19",
|
|
"daisyui": "1.21.0",
|
|
"js-base64": "^3.7.2",
|
|
"mermaid": "8.13.8",
|
|
"moment": "^2.29.1",
|
|
"monaco-editor": "^0.31.1",
|
|
"monaco-mermaid": "^1.0.1",
|
|
"pako": "1.0.10",
|
|
"random-word-slugs": "^0.1.6"
|
|
},
|
|
"lint-staged": {
|
|
"*.{ts,svelte,js,css,md,json}": [
|
|
"prettier --plugin-search-dir=. --write",
|
|
"eslint --ignore-path .gitignore "
|
|
]
|
|
},
|
|
"volta": {
|
|
"node": "14.16.1",
|
|
"yarn": "1.22.10",
|
|
"npm": "7.11.2"
|
|
}
|
|
}
|