Skip to content

Commit

Permalink
chore: prepare release
Browse files Browse the repository at this point in the history
  • Loading branch information
farnabaz committed Sep 8, 2023
1 parent d1de821 commit d3470b7
Show file tree
Hide file tree
Showing 3 changed files with 2,286 additions and 99 deletions.
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
# @docus/monarch
# @nuxtlabs/monarch-mdc

[![npm version][npm-version-src]][npm-version-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]
[![License][license-src]][license-href]

MDC syntax writing experience in Monaco editor
Integrate MDC syntax with Monaco Editor.


## Installation

```bash
#using yarn
yarn add @docus/monarch
yarn add @nuxtlabs/monarch-mdc
# using npm
npm install @docus/monarch
npm install @nuxtlabs/monarch-mdc
```

## Usage

```js
import * as monaco from 'monaco-editor'
import { language as markdownLanguage } from '@docus/monarch'
import { language as markdownLanguage } from '@nuxtlabs/monarch-mdc'

// Register language
monaco.languages.register({ id: 'docus-markdown' })
Expand Down Expand Up @@ -49,11 +49,11 @@ const editor = monaco.editor.create(el, {


<!-- Badges -->
[npm-version-src]: https://img.shields.io/npm/v/@docus/monarch/latest.svg
[npm-version-href]: https://npmjs.com/package/@docus/monarch
[npm-version-src]: https://img.shields.io/npm/v/@nuxtlabs/monarch-mdc/latest.svg
[npm-version-href]: https://npmjs.com/package/@nuxtlabs/monarch-mdc

[npm-downloads-src]: https://img.shields.io/npm/dt/@docus/monarch.svg
[npm-downloads-href]: https://npmjs.com/package/@docus/monarch
[npm-downloads-src]: https://img.shields.io/npm/dt/@nuxtlabs/monarch-mdc.svg
[npm-downloads-href]: https://npmjs.com/package/@nuxtlabs/monarch-mdc

[license-src]: https://img.shields.io/npm/l/@docus/monarch.svg
[license-href]: https://npmjs.com/package/@docus/monarch
[license-src]: https://img.shields.io/npm/l/@nuxtlabs/monarch-mdc.svg
[license-href]: https://npmjs.com/package/@nuxtlabs/monarch-mdc
28 changes: 24 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@docus/monarch",
"name": "@nuxtlabs/monarch-mdc",
"version": "0.1.0",
"license": "MIT",
"description": "Integrate Docus Markdown with Monaco Editor",
"description": "Integrate MDC syntax with Monaco Editor",
"main": "./dist/index.mjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
Expand All @@ -12,7 +12,8 @@
"scripts": {
"dev": "vite -c playground/vite.config.js",
"lint": "eslint .",
"build": "unbuild"
"build": "unbuild",
"release": "release-it"
},
"devDependencies": {
"@antfu/utils": "^0.7.6",
Expand All @@ -23,15 +24,34 @@
"eslint": "^8.48.0",
"monaco-editor": "^0.41.0",
"monaco-editor-core": "^0.41.0",
"release-it": "^16.1.5",
"unbuild": "^2.0.0",
"vite": "^4.4.9",
"vue": "^3.3.4"
},
"packageManager": "[email protected]",
"release-it": {
"git": {
"commitMessage": "chore(release): release v${version}"
},
"github": {
"release": true,
"releaseName": "v${version}"
},
"hooks": {
"after:bump": "npx changelogen@latest --no-commit --no-tag --output --r $(node -p \"require('./package.json').version\")"
},
"npm": {
"publish": false
}
},
"build": {
"entries": [
"./src/index"
],
"externals": ["monaco-editor-core"],
"externals": [
"monaco-editor-core"
],
"declaration": true
}
}
Loading

0 comments on commit d3470b7

Please sign in to comment.