Skip to content

Commit 9825da5

Browse files
committed
2 parents 5bcd401 + 3b958d2 commit 9825da5

File tree

1 file changed

+20
-19
lines changed

1 file changed

+20
-19
lines changed

README.md

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11

22

3-
# Nuxt-CodeMirror
3+
# Nuxt CodeMirror
44

55
[![npm version][npm-version-src]][npm-version-href]
66
[![npm downloads][npm-downloads-src]][npm-downloads-href]
77
[![License][license-src]][license-href]
88
[![Nuxt][nuxt-src]][nuxt-href]
99

10-
My new Nuxt module for doing amazing things.
10+
Codemirror as a Nuxt module. Demo preview: Coming soon
11+
1112

1213
- [ Release Notes](/CHANGELOG.md)
1314
<!-- - [🏀 Online playground](https://stackblitz.com/github/your-org/my-module?file=playground%2Fapp.vue) -->
@@ -16,20 +17,20 @@ My new Nuxt module for doing amazing things.
1617
## Features
1718

1819
<!-- Highlight some of the features your module provide here -->
19-
-&nbsp;Foo
20-
- 🚠 &nbsp;Bar
21-
- 🌲 &nbsp;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
2224

2325
## Quick Setup
2426

2527
Install the module to your Nuxt application with one command:
2628

2729
```bash
28-
npx nuxi module add my-module
30+
npx nuxi module add thimodev/nuxt-codemirror
2931
```
3032

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 ✨
3334

3435
## Contribution
3536

@@ -38,26 +39,26 @@ That's it! You can now use My Module in your Nuxt app ✨
3839

3940
```bash
4041
# Install dependencies
41-
npm install
42+
pnpm i
4243

4344
# Generate type stubs
44-
npm run dev:prepare
45+
pnpm dev:prepare
4546

4647
# Develop with the playground
47-
npm run dev
48+
pnpm dev
4849

4950
# Build the playground
50-
npm run dev:build
51+
pnpm dev:build
5152

5253
# Run ESLint
53-
npm run lint
54+
pnpm lint
5455

5556
# Run Vitest
56-
npm run test
57-
npm run test:watch
57+
pnpm test
58+
pnpm test:watch
5859

5960
# Release new version
60-
npm run release
61+
pnpm release
6162
```
6263

6364
</details>
@@ -78,8 +79,8 @@ That's it! You can now use My Module in your Nuxt app ✨
7879

7980

8081

81-
## TO write FAQ
82+
## FAQ
8283

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.
8485

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

Comments
 (0)