feat: test release

This commit is contained in:
cudr 2019-10-05 12:07:11 +03:00
parent 6c85d58736
commit e17e5f0fc3
8 changed files with 45 additions and 8 deletions

View File

@ -4,9 +4,10 @@
"description": "Slate collaborative plugin & microservice", "description": "Slate collaborative plugin & microservice",
"scripts": { "scripts": {
"bootstrap": "lerna bootstrap", "bootstrap": "lerna bootstrap",
"release": "yarn prebuild && yarn build && lerna publish from-package",
"dev": "concurrently \"lerna run --parallel watch\" \"lerna run dev --stream\"", "dev": "concurrently \"lerna run --parallel watch\" \"lerna run dev --stream\"",
"build": "lerna run build --stream", "build": "lerna run build --stream",
"prebuild": "lerna clean --yes && rm -rf ./packages/**/lib/", "prebuild": "rm -rf ./packages/**/lib/",
"format": "prettier --write" "format": "prettier --write"
}, },
"workspaces": [ "workspaces": [

View File

@ -7,7 +7,13 @@
"main": "lib/index.js", "main": "lib/index.js",
"types": "lib/index.d.ts", "types": "lib/index.d.ts",
"description": "slate-collaborative bridge", "description": "slate-collaborative bridge",
"repository": "https://github.com/cudr/slate-collaborative", "repository": {
"type": "git",
"url": "git+https://github.com/cudr/slate-collaborative.git"
},
"publishConfig": {
"access": "public"
},
"author": "cudr", "author": "cudr",
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
@ -34,5 +40,8 @@
"@babel/preset-env": "^7.6.0", "@babel/preset-env": "^7.6.0",
"@babel/preset-typescript": "^7.6.0", "@babel/preset-typescript": "^7.6.0",
"@types/socket.io": "^2.1.2" "@types/socket.io": "^2.1.2"
},
"directories": {
"lib": "lib"
} }
} }

View File

@ -5,6 +5,7 @@
"outDir": "lib", "outDir": "lib",
"rootDir": "src", "rootDir": "src",
"baseUrl": "src", "baseUrl": "src",
"esModuleInterop": true "esModuleInterop": true,
"lib": ["dom", "dom.iterable", "esnext"]
} }
} }

View File

@ -7,7 +7,13 @@
"main": "lib/index.js", "main": "lib/index.js",
"types": "lib/index.d.ts", "types": "lib/index.d.ts",
"description": "slate-collaborative bridge", "description": "slate-collaborative bridge",
"repository": "https://github.com/cudr/slate-collaborative", "repository": {
"type": "git",
"url": "git+https://github.com/cudr/slate-collaborative.git"
},
"publishConfig": {
"access": "public"
},
"author": "cudr", "author": "cudr",
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
@ -27,5 +33,13 @@
"@babel/plugin-proposal-object-rest-spread": "^7.5.5", "@babel/plugin-proposal-object-rest-spread": "^7.5.5",
"@babel/preset-env": "^7.6.0", "@babel/preset-env": "^7.6.0",
"@babel/preset-typescript": "^7.6.0" "@babel/preset-typescript": "^7.6.0"
} },
"directories": {
"lib": "lib"
},
"keywords": [
"slate",
"automerge",
"bridge"
]
} }

View File

@ -2,6 +2,7 @@
"include": ["src/**/*"], "include": ["src/**/*"],
"extends": "../../tsconfig.base.json", "extends": "../../tsconfig.base.json",
"compilerOptions": { "compilerOptions": {
"lib": ["dom", "dom.iterable", "esnext"],
"outDir": "lib", "outDir": "lib",
"rootDir": "src", "rootDir": "src",
"baseUrl": "src", "baseUrl": "src",

View File

@ -7,7 +7,13 @@
"main": "lib/index.js", "main": "lib/index.js",
"types": "lib/index.d.ts", "types": "lib/index.d.ts",
"description": "slate-collaborative bridge", "description": "slate-collaborative bridge",
"repository": "https://github.com/cudr/slate-collaborative", "repository": {
"type": "git",
"url": "git+https://github.com/cudr/slate-collaborative.git"
},
"publishConfig": {
"access": "public"
},
"author": "cudr", "author": "cudr",
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
@ -37,5 +43,8 @@
"@types/react": "^16.9.2", "@types/react": "^16.9.2",
"@types/slate": "^0.47.1", "@types/slate": "^0.47.1",
"@types/socket.io-client": "^1.4.32" "@types/socket.io-client": "^1.4.32"
},
"directories": {
"lib": "lib"
} }
} }

View File

@ -2,7 +2,9 @@ import { ExtendedEditor } from './model'
const onChange = opts => (editor: ExtendedEditor, next: () => void) => { const onChange = opts => (editor: ExtendedEditor, next: () => void) => {
if (!editor.remote) { if (!editor.remote) {
editor.connection.receiveSlateOps(editor.operations) const operations: any = editor.operations
editor.connection.receiveSlateOps(operations)
} }
return next() return next()

View File

@ -6,7 +6,7 @@
"rootDir": "src", "rootDir": "src",
"baseUrl": "src", "baseUrl": "src",
"jsx": "react", "jsx": "react",
"lib": ["es6", "dom"], "lib": ["dom", "dom.iterable", "es6"],
"esModuleInterop": true "esModuleInterop": true
} }
} }