monaco-mermaid-ng 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.prettierignore +7 -0
- package/.prettierrc.json +3 -0
- package/LICENSE +21 -0
- package/README.md +177 -0
- package/README.zh-CN.md +177 -0
- package/browser.js +1414 -0
- package/eslint.config.js +86 -0
- package/index.d.ts +3 -0
- package/index.js +1377 -0
- package/package.json +47 -0
- package/tsconfig.json +26 -0
package/package.json
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "monaco-mermaid-ng",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Monaco language and theme support for mermaidJS",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"types": "index.d.ts",
|
|
8
|
+
"keywords": [
|
|
9
|
+
"monaco",
|
|
10
|
+
"mermaid",
|
|
11
|
+
"syntax-highlighting",
|
|
12
|
+
"editor"
|
|
13
|
+
],
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "https://github.com/AstroAir/monaco-mermaid"
|
|
17
|
+
},
|
|
18
|
+
"homepage": "https://github.com/AstroAir/monaco-mermaid#readme",
|
|
19
|
+
"bugs": {
|
|
20
|
+
"url": "https://github.com/AstroAir/monaco-mermaid/issues"
|
|
21
|
+
},
|
|
22
|
+
"scripts": {
|
|
23
|
+
"build": "tsc index.ts --declaration true --lib es2019,dom --downlevelIteration && node -e \"require('fs').renameSync('index.js','browser.js')\" && tsc index.ts --lib es2019,dom --target es6 --downlevelIteration --moduleResolution node",
|
|
24
|
+
"dev": "npm run build && watch -p ./index.ts -p ./package.json -c \"npm run build\"",
|
|
25
|
+
"prepublishOnly": "npm run build",
|
|
26
|
+
"lint": "prettier --check . && eslint .",
|
|
27
|
+
"lint:fix": "prettier --write . && eslint . --fix"
|
|
28
|
+
},
|
|
29
|
+
"author": "Yash Singh",
|
|
30
|
+
"license": "MIT",
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"@eslint/js": "^9.18.0",
|
|
33
|
+
"@stylistic/eslint-plugin": "^5.7.1",
|
|
34
|
+
"eslint": "^9.18.0",
|
|
35
|
+
"eslint-config-prettier": "^10.1.8",
|
|
36
|
+
"eslint-plugin-es-x": "^8.4.1",
|
|
37
|
+
"globals": "^16.0.0",
|
|
38
|
+
"monaco-editor": "^0.45.0",
|
|
39
|
+
"prettier": "^2.8.8",
|
|
40
|
+
"typescript": "^4.9.5",
|
|
41
|
+
"typescript-eslint": "^8.21.0",
|
|
42
|
+
"watch-cli": "^0.2.3"
|
|
43
|
+
},
|
|
44
|
+
"peerDependencies": {
|
|
45
|
+
"monaco-editor": "*"
|
|
46
|
+
}
|
|
47
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2019",
|
|
4
|
+
"lib": ["ES2019", "DOM"],
|
|
5
|
+
"module": "ESNext",
|
|
6
|
+
"moduleResolution": "node",
|
|
7
|
+
"declaration": true,
|
|
8
|
+
"strict": true,
|
|
9
|
+
"noImplicitAny": true,
|
|
10
|
+
"strictNullChecks": true,
|
|
11
|
+
"noImplicitThis": true,
|
|
12
|
+
"alwaysStrict": true,
|
|
13
|
+
"noUnusedLocals": false,
|
|
14
|
+
"noUnusedParameters": false,
|
|
15
|
+
"noImplicitReturns": true,
|
|
16
|
+
"noFallthroughCasesInSwitch": true,
|
|
17
|
+
"inlineSourceMap": true,
|
|
18
|
+
"inlineSources": true,
|
|
19
|
+
"esModuleInterop": true,
|
|
20
|
+
"skipLibCheck": true,
|
|
21
|
+
"forceConsistentCasingInFileNames": true,
|
|
22
|
+
"downlevelIteration": true
|
|
23
|
+
},
|
|
24
|
+
"include": ["index.ts", "eslint.config.js"],
|
|
25
|
+
"exclude": ["node_modules"]
|
|
26
|
+
}
|