Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions samples/esm-vite-monaco-editor-react/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
35 changes: 35 additions & 0 deletions samples/esm-vite-monaco-editor-react/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Monaco SQL Languages Integration Samples

English | [简体中文](./README.zh-CN.md)

## Dev: cheat sheet
### Pick a sample
e.g. esm-plain-webpack
```bash
cd esm-plain-webpack
```

### Install dependencies
```bash
npm install
```

### Open the dev web
```bash
npm run dev
```

### Build
```bash
npm run build
```

### Preview the build artifact
Preview is powered by [cup](https://github.com/wewoor/cup).
```bash
npm run build
```

```bash
npm run preview
```
35 changes: 35 additions & 0 deletions samples/esm-vite-monaco-editor-react/README.zh-CN.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Monaco SQL Languages 集成示例

[English](./README.md) | 简体中文

## 开发备忘录
### 选择一个示例
e.g. esm-plain-webpack
```bash
cd samples/esm-plain-webpack
```

### 安装依赖
```bash
npm install
```

### 以开发模式启动
```bash
npm run dev
```

### 构建
```bash
npm run build
```

### 预览构建产物
预览构建产物功能由 [cup](https://github.com/wewoor/cup) 提供支持。
```bash
npm run build
```

```bash
npm run preview
```
12 changes: 12 additions & 0 deletions samples/esm-vite-monaco-editor-react/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>esm-vite-monaco-editor-react-sample</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
Loading
Loading