You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -16,20 +17,20 @@ My new Nuxt module for doing amazing things.
16
17
## Features
17
18
18
19
<!-- Highlight some of the features your module provide here -->
19
-
- ⛰ Foo
20
-
- 🚠 Bar
21
-
- 🌲 Baz
20
+
- 🚀 Easily configure codemirror to your own needs using almost every API
21
+
- 🚠 Built with Typescript
22
+
- 🌲 Custom useNuxtCodeMirror composable for creating your own editor
23
+
- Built for CodeMirror 6 and above
22
24
23
25
## Quick Setup
24
26
25
27
Install the module to your Nuxt application with one command:
26
28
27
29
```bash
28
-
npx nuxi module add my-module
30
+
npx nuxi module add thimodev/nuxt-codemirror
29
31
```
30
32
31
-
That's it! You can now use My Module in your Nuxt app ✨
32
-
33
+
That's it! You can now use Nuxt-codemirror in your Nuxt app ✨
33
34
34
35
## Contribution
35
36
@@ -38,26 +39,26 @@ That's it! You can now use My Module in your Nuxt app ✨
38
39
39
40
```bash
40
41
# Install dependencies
41
-
npm install
42
+
pnpm i
42
43
43
44
# Generate type stubs
44
-
npm run dev:prepare
45
+
pnpm dev:prepare
45
46
46
47
# Develop with the playground
47
-
npm run dev
48
+
pnpm dev
48
49
49
50
# Build the playground
50
-
npm run dev:build
51
+
pnpm dev:build
51
52
52
53
# Run ESLint
53
-
npm run lint
54
+
pnpm lint
54
55
55
56
# Run Vitest
56
-
npm runtest
57
-
npm run test:watch
57
+
pnpmtest
58
+
pnpm test:watch
58
59
59
60
# Release new version
60
-
npm run release
61
+
pnpm release
61
62
```
62
63
63
64
</details>
@@ -78,8 +79,8 @@ That's it! You can now use My Module in your Nuxt app ✨
78
79
79
80
80
81
81
-
## TO write FAQ
82
+
## FAQ
82
83
83
-
- I get extension duplicate error: Fix Unrecognized extension value in extension set ([object Object]). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.
84
+
- I get an extension duplicate error: Fix Unrecognized extension value in extension set ([object Object]). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.
84
85
85
-
shamefully hoist solves it for now with pnpm together with a resolutions config for codemirror state
86
+
For now write shamefully-hoist=true in your .npmrc file to solve this. We are working on a better solution
0 commit comments