Skip to content

Commit cf5b3a9

Browse files
committed
Add monaco package
1 parent 3802153 commit cf5b3a9

35 files changed

+1633
-8
lines changed

.vscode/launch.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,22 @@
55
"version": "0.2.0",
66
"configurations": [
77
{
8-
"name": "Chrome",
8+
"name": "Storybook (Chrome)",
99
"type": "chrome",
1010
"request": "launch",
1111
"url": "http://localhost:6006",
1212
"preLaunchTask": "Start Dev Server",
1313
"postDebugTask": "Terminate All Tasks",
1414
"webRoot": "${workspaceFolder}/packages/components"
15+
},
16+
{
17+
"name": "Monaco (Chrome)",
18+
"type": "chrome",
19+
"request": "launch",
20+
"url": "http://localhost:5173",
21+
"preLaunchTask": "Start Monaco Dev Server",
22+
"postDebugTask": "Terminate All Tasks",
23+
"webRoot": "${workspaceFolder}/packages/monaco"
1524
}
1625
]
1726
}

.vscode/tasks.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,25 @@
2222
],
2323
"isBackground": true
2424
},
25+
{
26+
"label": "Start Monaco Dev Server",
27+
"type": "shell",
28+
"command": "npm run dev:monaco",
29+
"problemMatcher": [
30+
{
31+
"owner": "typescript",
32+
"pattern": {
33+
"regexp": ""
34+
},
35+
"background": {
36+
"activeOnStart": true,
37+
"beginsPattern": ".*",
38+
"endsPattern": ".*"
39+
}
40+
}
41+
],
42+
"isBackground": true
43+
},
2544
{
2645
"label": "Terminate All Tasks",
2746
"command": "echo ${input:terminate}",

build/unpublish-npm.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ REGISTRY="https://npmjs-registry.ivyteam.ch/"
44

55
npm unpublish "@axonivy/ui-icons@${1}" --registry $REGISTRY
66
npm unpublish "@axonivy/ui-components@${1}" --registry $REGISTRY
7+
npm unpublish "@axonivy/jsonrpc@${1}" --registry $REGISTRY
8+
npm unpublish "@axonivy/monaco@${1}" --registry $REGISTRY

package-lock.json

Lines changed: 180 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"lint:ci": "npm run lint -- -o eslint.xml -f checkstyle",
1919
"lint:fix": "lerna run lint:fix --",
2020
"dev": "npm run dev --workspace=@axonivy/ui-components",
21+
"dev:monaco": "npm run dev --workspace=@axonivy/monaco",
2122
"test": "npm run test --workspace=@axonivy/ui-components",
2223
"test:ci": "lerna run test:ci",
2324
"publish:next": "lerna publish --exact --canary --preid next --pre-dist-tag next --no-git-tag-version --no-push --ignore-scripts --yes"

packages/monaco/.eslintrc.cjs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/** @type {import('eslint').Linter.Config} */
2+
module.exports = {
3+
extends: ['../../config/base.eslintrc.json'],
4+
parserOptions: {
5+
tsconfigRootDir: __dirname,
6+
project: 'tsconfig.json'
7+
},
8+
rules: {
9+
'@typescript-eslint/no-explicit-any': 'off'
10+
}
11+
};

packages/monaco/index.html

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="utf-8" />
6+
<link rel="icon" href="/favicon.ico" />
7+
<meta name="viewport" content="width=device-width, initial-scale=1" />
8+
<meta name="theme-color" content="#000000" />
9+
<title>Monaco Playground</title>
10+
</head>
11+
12+
13+
<body>
14+
<noscript>You need to enable JavaScript to run this app.</noscript>
15+
<div id="root" style="height: 100%;">
16+
<div class="init-loader"></div>
17+
</div>
18+
<script type="module" src="/src/playground/index.tsx"></script>
19+
</body>
20+
21+
</html>

0 commit comments

Comments
 (0)