Skip to content

Commit

Permalink
Add monaco package
Browse files Browse the repository at this point in the history
  • Loading branch information
ivy-lli committed Jan 3, 2025
1 parent 3802153 commit cf5b3a9
Show file tree
Hide file tree
Showing 35 changed files with 1,633 additions and 8 deletions.
11 changes: 10 additions & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,22 @@
"version": "0.2.0",
"configurations": [
{
"name": "Chrome",
"name": "Storybook (Chrome)",
"type": "chrome",
"request": "launch",
"url": "http://localhost:6006",
"preLaunchTask": "Start Dev Server",
"postDebugTask": "Terminate All Tasks",
"webRoot": "${workspaceFolder}/packages/components"
},
{
"name": "Monaco (Chrome)",
"type": "chrome",
"request": "launch",
"url": "http://localhost:5173",
"preLaunchTask": "Start Monaco Dev Server",
"postDebugTask": "Terminate All Tasks",
"webRoot": "${workspaceFolder}/packages/monaco"
}
]
}
19 changes: 19 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,25 @@
],
"isBackground": true
},
{
"label": "Start Monaco Dev Server",
"type": "shell",
"command": "npm run dev:monaco",
"problemMatcher": [
{
"owner": "typescript",
"pattern": {
"regexp": ""
},
"background": {
"activeOnStart": true,
"beginsPattern": ".*",
"endsPattern": ".*"
}
}
],
"isBackground": true
},
{
"label": "Terminate All Tasks",
"command": "echo ${input:terminate}",
Expand Down
2 changes: 2 additions & 0 deletions build/unpublish-npm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ REGISTRY="https://npmjs-registry.ivyteam.ch/"

npm unpublish "@axonivy/ui-icons@${1}" --registry $REGISTRY
npm unpublish "@axonivy/ui-components@${1}" --registry $REGISTRY
npm unpublish "@axonivy/jsonrpc@${1}" --registry $REGISTRY
npm unpublish "@axonivy/monaco@${1}" --registry $REGISTRY
186 changes: 180 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"lint:ci": "npm run lint -- -o eslint.xml -f checkstyle",
"lint:fix": "lerna run lint:fix --",
"dev": "npm run dev --workspace=@axonivy/ui-components",
"dev:monaco": "npm run dev --workspace=@axonivy/monaco",
"test": "npm run test --workspace=@axonivy/ui-components",
"test:ci": "lerna run test:ci",
"publish:next": "lerna publish --exact --canary --preid next --pre-dist-tag next --no-git-tag-version --no-push --ignore-scripts --yes"
Expand Down
11 changes: 11 additions & 0 deletions packages/monaco/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/** @type {import('eslint').Linter.Config} */
module.exports = {
extends: ['../../config/base.eslintrc.json'],
parserOptions: {
tsconfigRootDir: __dirname,
project: 'tsconfig.json'
},
rules: {
'@typescript-eslint/no-explicit-any': 'off'
}
};
21 changes: 21 additions & 0 deletions packages/monaco/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="utf-8" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<title>Monaco Playground</title>
</head>


<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root" style="height: 100%;">
<div class="init-loader"></div>
</div>
<script type="module" src="/src/playground/index.tsx"></script>
</body>

</html>
Loading

0 comments on commit cf5b3a9

Please sign in to comment.