mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-28 21:03:57 -05:00
3a06f84af1
This commit refactors a lot of things that are not easy to separate. It replaces the binary protocol of y-protocols with json. It introduces event based message processing. It implements our own code mirror plugins for synchronisation of content and remote cursors Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
63 lines
1.6 KiB
JSON
63 lines
1.6 KiB
JSON
{
|
|
"name": "@hedgedoc/commons",
|
|
"private": true,
|
|
"version": "0.3.0",
|
|
"description": "Common code between frontend and backend",
|
|
"author": "The HedgeDoc Authors",
|
|
"license": "AGPL-3.0",
|
|
"scripts": {
|
|
"build": "rm -rf dist && microbundle",
|
|
"build:watch": "rm -rf dist && microbundle -w",
|
|
"test": "jest",
|
|
"test:ci": "jest --ci",
|
|
"prepublish": "rm -rf dist && yarn lint && yarn build && yarn test",
|
|
"lint": "eslint src --ext .ts",
|
|
"lint:fix": "eslint --fix --ext .ts src"
|
|
},
|
|
"type": "module",
|
|
"main": "dist/index.cjs",
|
|
"module": "dist/index.mjs",
|
|
"types": "dist/index.d.ts",
|
|
"source": "src/index.ts",
|
|
"exports": {
|
|
"types": "./dist/index.d.ts",
|
|
"import": "./dist/index.mjs",
|
|
"require": "./dist/index.cjs"
|
|
},
|
|
"files": [
|
|
"LICENSES/*",
|
|
"package.json",
|
|
"README.md",
|
|
"dist/**"
|
|
],
|
|
"browserslist": [
|
|
"node> 12"
|
|
],
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/hedgedoc/hedgedoc.git"
|
|
},
|
|
"dependencies": {
|
|
"eventemitter2": "6.4.9",
|
|
"isomorphic-ws": "5.0.0",
|
|
"ws": "8.13.0",
|
|
"yjs": "13.5.51"
|
|
},
|
|
"devDependencies": {
|
|
"@jest/types": "29.5.0",
|
|
"@mrdrogdrog/optional": "1.1.0",
|
|
"@types/ws": "8.5.4",
|
|
"@typescript-eslint/eslint-plugin": "5.56.0",
|
|
"@typescript-eslint/parser": "5.56.0",
|
|
"eslint": "8.36.0",
|
|
"eslint-config-prettier": "8.8.0",
|
|
"eslint-plugin-jest": "27.2.1",
|
|
"eslint-plugin-prettier": "4.2.1",
|
|
"jest": "29.5.0",
|
|
"microbundle": "0.15.1",
|
|
"prettier": "2.8.7",
|
|
"ts-jest": "29.0.5",
|
|
"typescript": "5.0.2"
|
|
},
|
|
"packageManager": "yarn@3.5.0"
|
|
}
|