Skip to content

Commit

Permalink
feat: Add extractContentText util and upgrade deps
Browse files Browse the repository at this point in the history
  • Loading branch information
leo91000 committed Dec 7, 2023
1 parent 3071395 commit a7bfbcd
Show file tree
Hide file tree
Showing 13 changed files with 2,613 additions and 1,870 deletions.
10 changes: 0 additions & 10 deletions .eslintrc

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 16
cache: "pnpm"
cache: pnpm
- run: pnpm install --no-frozen-lockfile
- run: pnpm lint
- run: pnpm build
Expand Down
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

[![npm version][npm-version-src]][npm-version-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]
[![Github Actions][github-actions-src]][github-actions-href]
Expand Down Expand Up @@ -51,7 +50,7 @@ defineProps<{
<template>
<JsonRenderer
:content="article"
:content="article"
/>
</template>
```
Expand All @@ -76,4 +75,4 @@ This library also features utility functions :
[codecov-href]: https://codecov.io/gh/leo91000/vue-tiptap-renderer

[bundle-src]: https://img.shields.io/bundlephobia/minzip/@leo91000/vue-tiptap-renderer?style=flat-square
[bundle-href]: https://bundlephobia.com/result?p=@leo91000/vue-tiptap-renderer
[bundle-href]: https://bundlephobia.com/result?p=@leo91000/vue-tiptap-renderer
3 changes: 3 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import antfu from '@antfu/eslint-config'

export default antfu()
76 changes: 39 additions & 37 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,76 +1,78 @@
{
"name": "@leo91000/vue-tiptap-renderer",
"keywords": [
"tiptap",
"json",
"vue",
"render",
"function"
],
"license": "MIT",
"type": "module",
"version": "0.2.2",
"packageManager": "pnpm@8.11.0",
"description": "Tiptap JSON content renderer for Vue 2/3",
"author": {
"name": "Léo Coletta",
"email": "contact@leo-coletta.fr",
"url": "https://leo-coletta.fr"
},
"sideEffects": false,
"repository": "github:leo91000/vue-tiptap-renderer",
"license": "MIT",
"funding": "https://github.com/leo91000",
"homepage": "https://github.com/leo91000/vue-tiptap-renderer#readme",
"repository": "github:leo91000/vue-tiptap-renderer",
"bugs": "https://github.com/leo91000/vue-tiptap-renderer/issues",
"funding": "https://github.com/leo91000",
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"keywords": [
"tiptap",
"json",
"vue",
"render",
"function"
],
"sideEffects": false,
"exports": {
".": {
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
}
},
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"files": [
"dist"
],
"scripts": {
"build": "unbuild",
"dev": "vitest",
"lint": "eslint --ext .ts .",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"typecheck": "tsc --noEmit",
"prepack": "nr build",
"release": "nr test && standard-version && git push --follow-tags && pnpm publish",
"test": "nr lint && vitest run"
"test": "nr lint && nr typecheck && vitest run"
},
"version": "0.2.2",
"packageManager": "pnpm@8.1.0",
"volta": {
"node": "18.12.1",
"npm": "9.2.0"
},
"dependencies": {
"vue-demi": "*"
},
"devDependencies": {
"@antfu/eslint-config": "0.33.1",
"@antfu/ni": "0.18.8",
"@vue/test-utils": "2.2.6",
"@vitest/coverage-c8": "0.25.7",
"eslint": "8.29.0",
"jsdom": "^21.0.0",
"standard-version": "9.5.0",
"typescript": "5.0.2",
"unbuild": "1.0.2",
"vitest": "0.25.7",
"vue": "3.2.45"
},
"peerDependencies": {
"@vue/composition-api": "^1.0.0-rc.1",
"vue": "^2.0.0 || >=3.0.0"
},
"peerDependenciesMeta": {
"@vue/composition-api": {
"optional": true
},
"vue": {
"optional": true
}
},
"dependencies": {
"@tiptap/core": "^2.1.13",
"vue-demi": "^0.14.6"
},
"devDependencies": {
"@antfu/eslint-config": "^2.4.2",
"@antfu/ni": "^0.21.12",
"@vitest/coverage-v8": "^1.0.2",
"@vue/test-utils": "^2.4.3",
"eslint": "^8.55.0",
"jsdom": "^23.0.1",
"rollup": "^4.6.1",
"standard-version": "^9.5.0",
"typescript": "^5.3.3",
"unbuild": "^2.0.0",
"vitest": "^1.0.2",
"vue": "^3.3.10"
}
}
Loading

0 comments on commit a7bfbcd

Please sign in to comment.