Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/masad-frost/codemirror-extension-package-template-2
https://github.com/masad-frost/codemirror-extension-package-template-2
Last synced: 29 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/masad-frost/codemirror-extension-package-template-2
- Owner: masad-frost
- Created: 2022-03-15T02:54:10.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-15T02:54:11.000Z (almost 3 years ago)
- Last Synced: 2024-12-19T23:55:06.974Z (about 1 month ago)
- Language: TypeScript
- Size: 8.79 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Development
First of all get familiarize yourself with codemirror, the docs are great place to start https://codemirror.net/6/docs/Once you've done that, you can start writing your extension under inside the `./src` folder. You'll see that we have a simple theme extension that changes the color of the editor's lines as a template.
Simply hit the Run button to start a development server and to start using your extension. The development files are under `./dev`
You can also write tests under the `./test` folder. Here's an example of [a test file](https://github.com/codemirror/commands/blob/acab64fc3d911393b6728c1e8eacadf5c11cc9bf/test/test-commands.ts).
# Publishing
1. Make your package's title and descript inside `package.json`
2. Update this README file to include information about your package
3. Update the package's version using `yarn version` https://classic.yarnpkg.com/en/docs/cli/version
4. `yarn login` https://classic.yarnpkg.com/en/docs/cli/login
5. `yarn build`
6. `yarn publish` https://classic.yarnpkg.com/en/docs/cli/publish