Skip to content

Commit d3470b7

Browse files
committed
chore: prepare release
1 parent d1de821 commit d3470b7

File tree

3 files changed

+2286
-99
lines changed

3 files changed

+2286
-99
lines changed

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
# @docus/monarch
1+
# @nuxtlabs/monarch-mdc
22

33
[![npm version][npm-version-src]][npm-version-href]
44
[![npm downloads][npm-downloads-src]][npm-downloads-href]
55
[![License][license-src]][license-href]
66

7-
MDC syntax writing experience in Monaco editor
7+
Integrate MDC syntax with Monaco Editor.
88

99

1010
## Installation
1111

1212
```bash
1313
#using yarn
14-
yarn add @docus/monarch
14+
yarn add @nuxtlabs/monarch-mdc
1515
# using npm
16-
npm install @docus/monarch
16+
npm install @nuxtlabs/monarch-mdc
1717
```
1818

1919
## Usage
2020

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

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

5050

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

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

58-
[license-src]: https://img.shields.io/npm/l/@docus/monarch.svg
59-
[license-href]: https://npmjs.com/package/@docus/monarch
58+
[license-src]: https://img.shields.io/npm/l/@nuxtlabs/monarch-mdc.svg
59+
[license-href]: https://npmjs.com/package/@nuxtlabs/monarch-mdc

package.json

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"name": "@docus/monarch",
2+
"name": "@nuxtlabs/monarch-mdc",
33
"version": "0.1.0",
44
"license": "MIT",
5-
"description": "Integrate Docus Markdown with Monaco Editor",
5+
"description": "Integrate MDC syntax with Monaco Editor",
66
"main": "./dist/index.mjs",
77
"module": "./dist/index.mjs",
88
"types": "./dist/index.d.ts",
@@ -12,7 +12,8 @@
1212
"scripts": {
1313
"dev": "vite -c playground/vite.config.js",
1414
"lint": "eslint .",
15-
"build": "unbuild"
15+
"build": "unbuild",
16+
"release": "release-it"
1617
},
1718
"devDependencies": {
1819
"@antfu/utils": "^0.7.6",
@@ -23,15 +24,34 @@
2324
"eslint": "^8.48.0",
2425
"monaco-editor": "^0.41.0",
2526
"monaco-editor-core": "^0.41.0",
27+
"release-it": "^16.1.5",
2628
"unbuild": "^2.0.0",
2729
"vite": "^4.4.9",
2830
"vue": "^3.3.4"
2931
},
32+
"packageManager": "pnpm@8.7.4",
33+
"release-it": {
34+
"git": {
35+
"commitMessage": "chore(release): release v${version}"
36+
},
37+
"github": {
38+
"release": true,
39+
"releaseName": "v${version}"
40+
},
41+
"hooks": {
42+
"after:bump": "npx changelogen@latest --no-commit --no-tag --output --r $(node -p \"require('./package.json').version\")"
43+
},
44+
"npm": {
45+
"publish": false
46+
}
47+
},
3048
"build": {
3149
"entries": [
3250
"./src/index"
3351
],
34-
"externals": ["monaco-editor-core"],
52+
"externals": [
53+
"monaco-editor-core"
54+
],
3555
"declaration": true
3656
}
3757
}

0 commit comments

Comments
 (0)