monacopilot 0.8.8 → 0.8.9
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/README.md +2 -50
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -6,56 +6,8 @@ Extended Monaco Editor with AI auto-completion and new themes for React.
|
|
|
6
6
|
|
|
7
7
|
[https://monacopilot.vercel.app/docs](https://monacopilot.vercel.app/docs)
|
|
8
8
|
|
|
9
|
-
##
|
|
9
|
+
## Development and Contributions
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
The Monacopilot repository uses [PNPM Workspaces](https://pnpm.io/workspaces) and [Tsup](https://tsup.egoist.dev/). To install dependencies, run `pnpm install` in the project root directory.
|
|
14
|
-
|
|
15
|
-
#### Building the Package
|
|
16
|
-
|
|
17
|
-
To build the package, execute the following command:
|
|
18
|
-
|
|
19
|
-
```bash
|
|
20
|
-
pnpm build
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
Alternatively, `pnpm dev` to start the watch mode for automatic rebuilds on file changes.
|
|
24
|
-
|
|
25
|
-
#### Testing Monacopilot Locally
|
|
26
|
-
|
|
27
|
-
To test Monacopilot locally, first, you need to set the Groq API key as an environment variable in the `test` directory root within the `.env.local` file.
|
|
28
|
-
|
|
29
|
-
```plaintext
|
|
30
|
-
GROQ_API_KEY=your_api_key
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
Then, run:
|
|
34
|
-
|
|
35
|
-
```bash
|
|
36
|
-
pnpm dev:test
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
#### Adding or Editing Themes
|
|
40
|
-
|
|
41
|
-
To add a theme, you can add the `.tmTheme` file of the theme you want to include to the `themes` directory at the root. If you wish to edit any theme, simply edit the `.tmTheme` file of the theme you want to modify. Then, run the following command after updating or adding.
|
|
42
|
-
|
|
43
|
-
```bash
|
|
44
|
-
pnpm generate-themes
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
This command will read the theme you added/edited and automatically generate Monaco Editor-compatible theme data as if by magic. Additionally, it will automatically add the theme name to the theme type if you've added a new theme.
|
|
48
|
-
|
|
49
|
-
#### Contributing to the Documentation
|
|
50
|
-
|
|
51
|
-
If you wish to contribute to the documentation, use the following command:
|
|
52
|
-
|
|
53
|
-
```bash
|
|
54
|
-
pnpm dev:docs
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
Edit the `.mdx` files in the docs directory, and the documentation will refresh instantly, reflecting your changes.
|
|
58
|
-
|
|
59
|
-
---
|
|
11
|
+
For guidelines on contributing, Please read the [contributing guide](/CONTRIBUTING.md).
|
|
60
12
|
|
|
61
13
|
We welcome contributions from the community to enhance Monacopilot's capabilities and make it even more powerful ❤️
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "monacopilot",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.9",
|
|
4
4
|
"description": "Extended Monaco Editor with AI auto-completion and new themes for React.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"monaco-editor-react",
|
|
48
48
|
"ai-editor"
|
|
49
49
|
],
|
|
50
|
-
"homepage": "https://
|
|
50
|
+
"homepage": "https://monacopilot.vercel.app",
|
|
51
51
|
"license": "MIT",
|
|
52
52
|
"author": "Arshad Yaseen <m@arshadyaseen.com>",
|
|
53
53
|
"peerDependencies": {
|