https://github.com/observablehq/codemirror-testing
A repo to test out CodeMirror outside of our infrastructure
https://github.com/observablehq/codemirror-testing
Last synced: 9 months ago
JSON representation
A repo to test out CodeMirror outside of our infrastructure
- Host: GitHub
- URL: https://github.com/observablehq/codemirror-testing
- Owner: observablehq
- Created: 2021-12-08T23:07:32.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-08T23:22:02.000Z (about 4 years ago)
- Last Synced: 2025-01-17T00:51:04.007Z (11 months ago)
- Language: TypeScript
- Size: 25.4 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
CodeMirror Testing
==================
This repo exists to test out CodeMirror outside of the Observable infrastructure.
The main use case is for quickly creating reproduction examples of bugs for
reporting issues to CodeMirror.
To keep things simple, we dispense with much of our normal tooling. We use
TypeScript and Webpack directly to build the sample website, which only has
CodeMirror dependencies in it (i.e. no Next.js, React, etc.)
## Running this repo
To use this repo, run the following:
```
npm install
npm run build
npm start
```
Then point your browser to http://localhost:8080/.
You can also run `npm run watch` to have Webpack watch for changes. Note: this
command does _not_ include hot reloading in the browser, so don't forget to
manually reload after compilation finishes!
## Creating a reproducible case
You can either create a branch, or commit directly to main and tag the committed
version you want to share (as I did with scrollPosIntoView). Since this is more
or less a scratchpad, we don't need to worry about keeping this orderly.