UNPKG

@uiw/react-md-editor

Version:

A markdown editor with preview, implemented with React.js and TypeScript.

109 lines (108 loc) 3.32 kB
{ "name": "@uiw/react-md-editor", "version": "2.1.10", "description": "A markdown editor with preview, implemented with React.js and TypeScript.", "homepage": "https://uiwjs.github.io/react-md-editor/", "author": "kenny wang <wowohoo@qq.com>", "main": "lib/cjs/index.js", "module": "lib/esm/index.js", "typings": "lib/cjs/index.d.ts", "scripts": { "prepare": "npm run build", "test": "tsbb test --env=jsdom", "coverage": "tsbb test --env=jsdom --coverage", "released": "npm run build && npm run doc", "doc": "kkt build --app-src ./website", "start": "kkt start --app-src ./website", "build": "npm run ts:build && npm run types:esm && npm run types:cjs && npm run css:build && npm run css:build:dist", "watch": "npm run ts:watch & npm run types:watch & npm run css:watch", "types:build": "tsbb types --sourceRoot src --target ESNEXT", "types:watch": "npm run types:esm -- --watch & npm run types:cjs -- --watch", "types:esm": "npm run types:build -- --outDir ../lib/esm", "types:cjs": "npm run types:build -- --outDir ../lib/cjs", "css:build": "compile-less -d src -o lib/esm", "css:watch": "compile-less -d src -o lib/esm --watch", "css:build:dist": "compile-less -d src --combine dist/markdown-editor.css --rm-global", "ts:watch": "tsbb watch --env-name esm:dev --env-name cjs --target react", "ts:build": "tsbb build --target react", "prettier": "prettier --write '**/*.{js,jsx,tsx,ts,less,md,json}'", "map": "source-map-explorer build/static/js/*.js --html build/website-result.html" }, "repository": { "type": "git", "url": "https://github.com/uiwjs/react-md-editor" }, "files": [ "dist", "lib", "src" ], "keywords": [], "license": "MIT", "peerDependencies": { "react": ">=16.8.0", "react-dom": ">=16.8.0" }, "devDependencies": { "@kkt/less-modules": "6.6.2", "@kkt/raw-modules": "6.6.2", "@kkt/scope-plugin-options": "6.6.2", "@types/classnames": "2.2.11", "@types/katex": "0.11.0", "@types/node": "14.14.20", "@types/prismjs": "1.16.2", "@types/react": "17.0.0", "@types/react-dom": "17.0.0", "@types/react-test-renderer": "17.0.0", "@uiw/react-github-corners": "1.2.0", "@uiw/react-codesandbox": "1.1.0", "@uiw/react-shields": "1.1.1", "compile-less-cli": "1.6.0", "katex": "0.12.0", "husky": "4.3.8", "kkt": "6.6.2", "lint-staged": "10.5.3", "prettier": "2.2.1", "react": "17.0.1", "react-dom": "17.0.1", "react-test-renderer": "17.0.1", "source-map-explorer": "2.5.2", "tsbb": "2.0.5" }, "dependencies": { "@babel/runtime": "^7.8.4", "@uiw/react-markdown-preview": "^2.1.1", "classnames": "^2.2.6" }, "husky": { "hooks": { "pre-commit": "lint-staged" } }, "lint-staged": { "*.{js,jsx,less,md,json}": [ "prettier --write" ], "*.ts?(x)": [ "prettier --parser=typescript --write" ] }, "eslintConfig": { "extends": [ "react-app", "react-app/jest" ] }, "browserslist": { "production": [ ">0.2%", "not dead", "not op_mini all" ], "development": [ "last 1 chrome version", "last 1 firefox version", "last 1 safari version" ] } }