Skip to content

Commit 6c745d4

Browse files
JackWang032JackWang032
authored andcommitted
feat: add sample integrate with @monaco-editor/react
1 parent 0f2f811 commit 6c745d4

File tree

14 files changed

+4138
-0
lines changed

14 files changed

+4138
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Monaco SQL Languages Integration Samples
2+
3+
English | [简体中文](./README.zh-CN.md)
4+
5+
## Dev: cheat sheet
6+
### Pick a sample
7+
e.g. esm-plain-webpack
8+
```bash
9+
cd esm-plain-webpack
10+
```
11+
12+
### Install dependencies
13+
```bash
14+
npm install
15+
```
16+
17+
### Open the dev web
18+
```bash
19+
npm run dev
20+
```
21+
22+
### Build
23+
```bash
24+
npm run build
25+
```
26+
27+
### Preview the build artifact
28+
Preview is powered by [cup](https://github.com/wewoor/cup).
29+
```bash
30+
npm run build
31+
```
32+
33+
```bash
34+
npm run preview
35+
```
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Monaco SQL Languages 集成示例
2+
3+
[English](./README.md) | 简体中文
4+
5+
## 开发备忘录
6+
### 选择一个示例
7+
e.g. esm-plain-webpack
8+
```bash
9+
cd samples/esm-plain-webpack
10+
```
11+
12+
### 安装依赖
13+
```bash
14+
npm install
15+
```
16+
17+
### 以开发模式启动
18+
```bash
19+
npm run dev
20+
```
21+
22+
### 构建
23+
```bash
24+
npm run build
25+
```
26+
27+
### 预览构建产物
28+
预览构建产物功能由 [cup](https://github.com/wewoor/cup) 提供支持。
29+
```bash
30+
npm run build
31+
```
32+
33+
```bash
34+
npm run preview
35+
```
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>esm-vite-monaco-editor-react-sample</title>
7+
</head>
8+
<body>
9+
<div id="root"></div>
10+
<script type="module" src="/src/main.tsx"></script>
11+
</body>
12+
</html>

0 commit comments

Comments
 (0)