mirror of
https://github.com/mdx-js/mdx.git
synced 2024-09-11 15:05:32 +03:00
* new very fast, more spacious, playground * proper syntax highlighting for MDX * static (except for playground), no RSC, super fast, can be hosted everywhere
185 lines
5.6 KiB
JSON
185 lines
5.6 KiB
JSON
{
|
|
"private": true,
|
|
"name": "monorepo",
|
|
"license": "MIT",
|
|
"homepage": "https://mdxjs.com",
|
|
"repository": "mdx-js/mdx",
|
|
"bugs": "https://github.com/mdx-js/mdx/issues",
|
|
"funding": {
|
|
"type": "opencollective",
|
|
"url": "https://opencollective.com/unified"
|
|
},
|
|
"type": "module",
|
|
"workspaces": [
|
|
"packages/remark-mdx",
|
|
"packages/mdx",
|
|
"packages/react",
|
|
"packages/preact",
|
|
"packages/vue",
|
|
"packages/esbuild",
|
|
"packages/loader",
|
|
"packages/node-loader",
|
|
"packages/register",
|
|
"packages/rollup"
|
|
],
|
|
"devDependencies": {
|
|
"@node-loader/core": "^2.0.0",
|
|
"@wooorm/starry-night": "^3.0.0",
|
|
"acorn": "^8.0.0",
|
|
"ajv": "^8.12.0",
|
|
"ap-style-title-case": "^2.0.0",
|
|
"autoprefixer": "^10.0.0",
|
|
"c8": "^7.0.0",
|
|
"capture-website": "^3.0.0",
|
|
"chrome-aws-lambda": "^10.0.0",
|
|
"copy-to-clipboard": "^3.0.0",
|
|
"cross-env": "^7.0.0",
|
|
"cssnano": "^6.0.0",
|
|
"devlop": "^1.0.0",
|
|
"dlv": "^1.0.0",
|
|
"esbuild": "^0.19.0",
|
|
"eslint-config-xo-react": "^0.27.0",
|
|
"eslint-plugin-es": "^4.0.0",
|
|
"eslint-plugin-react": "^7.0.0",
|
|
"eslint-plugin-react-hooks": "^4.0.0",
|
|
"estree-util-value-to-estree": "^2.0.0",
|
|
"globby": "^13.0.0",
|
|
"hast-to-hyperscript": "^10.0.0",
|
|
"hast-util-select": "^5.0.0",
|
|
"hast-util-to-jsx-runtime": "^2.0.0",
|
|
"hast-util-to-text": "^3.0.0",
|
|
"hastscript": "^7.0.0",
|
|
"p-all": "^4.0.0",
|
|
"periscopic": "^3.0.0",
|
|
"postcss": "^8.0.0",
|
|
"postcss-cli": "^10.0.0",
|
|
"prettier": "^3.0.0",
|
|
"puppeteer-core": "^21.0.0",
|
|
"react": "^18.0.0",
|
|
"react-dom": "^18.0.0",
|
|
"react-error-boundary": "^4.0.0",
|
|
"rehype-autolink-headings": "^6.0.0",
|
|
"rehype-document": "^6.0.0",
|
|
"rehype-infer-description-meta": "^1.0.0",
|
|
"rehype-infer-reading-time-meta": "^1.0.0",
|
|
"rehype-infer-title-meta": "^1.0.0",
|
|
"rehype-meta": "^3.0.0",
|
|
"rehype-minify-url": "^4.0.0",
|
|
"rehype-parse": "^8.0.0",
|
|
"rehype-preset-minify": "^6.0.0",
|
|
"rehype-raw": "^6.0.0",
|
|
"rehype-remove-comments": "^5.0.0",
|
|
"rehype-sanitize": "^5.0.0",
|
|
"rehype-shift-heading": "^1.0.0",
|
|
"rehype-slug": "^5.0.0",
|
|
"rehype-stringify": "^9.0.0",
|
|
"remark-cli": "^11.0.0",
|
|
"remark-directive": "^2.0.0",
|
|
"remark-frontmatter": "^4.0.0",
|
|
"remark-gemoji": "^7.0.0",
|
|
"remark-gfm": "^3.0.0",
|
|
"remark-github": "^11.0.0",
|
|
"remark-mdx-frontmatter": "^2.0.0",
|
|
"remark-preset-wooorm": "^9.0.0",
|
|
"remark-squeeze-paragraphs": "^5.0.0",
|
|
"remark-strip-badges": "^6.0.0",
|
|
"remark-toc": "^8.0.0",
|
|
"type-coverage": "^2.0.0",
|
|
"typescript": "^5.0.0",
|
|
"unified": "^10.0.0",
|
|
"unist-builder": "^3.0.0",
|
|
"unist-util-remove-position": "^4.0.0",
|
|
"unist-util-visit": "^4.0.0",
|
|
"vfile": "^5.0.0",
|
|
"xast-util-feed": "^1.0.0",
|
|
"xast-util-sitemap": "^1.0.0",
|
|
"xast-util-to-xml": "^3.0.0",
|
|
"xo": "^0.56.0"
|
|
},
|
|
"scripts": {
|
|
"docs-js": "esbuild docs/_asset/index.js --bundle --conditions=browser,production --define:process.env.NODE_ENV=\\\"production\\\" --log-level=warning --minify --outfile=public/index.js --target=es2020 && esbuild docs/_asset/editor.jsx --bundle --conditions=browser,production --define:process.env.NODE_ENV=\\\"production\\\" --log-level=warning --minify --outfile=public/editor.js --target=es2020",
|
|
"docs-css": "postcss docs/_asset/index.css -o public/index.css",
|
|
"docs-prep": "node website/prep.js && npm run docs-js && npm run docs-css",
|
|
"docs-generate": "cross-env NODE_LOADER_CONFIG=website/loader.js node --no-warnings --experimental-loader @node-loader/core website/generate.js",
|
|
"docs-post": "node website/post.js",
|
|
"docs": "npm run docs-prep && npm run docs-generate && npm run docs-post",
|
|
"docs-deploy": "vercel && vercel alias $(pbpaste) mdxjs.com && vercel alias $(pbpaste) www.mdxjs.com",
|
|
"#": " && xo --fix",
|
|
"format": "remark . -qfo && remark . -e mdx -u mdx -qfo && prettier . -w --log-level warn",
|
|
"lint": "remark . -qf && remark . -e mdx -u mdx -qf && prettier . -c --log-level warn",
|
|
"build": "npm run build --workspaces --if-present",
|
|
"test-api": "npm run test-api --workspaces --if-present",
|
|
"test-coverage": "npm run test-coverage --workspaces --if-present",
|
|
"test": "npm run build && npm run format && npm run test-coverage"
|
|
},
|
|
"browserslist": [
|
|
"last 2 versions",
|
|
"not dead"
|
|
],
|
|
"prettier": {
|
|
"singleQuote": true,
|
|
"bracketSpacing": false,
|
|
"semi": false,
|
|
"trailingComma": "none"
|
|
},
|
|
"xo": {
|
|
"envs": [
|
|
"shared-node-browser"
|
|
],
|
|
"prettier": true,
|
|
"rules": {
|
|
"n/file-extension-in-import": "off",
|
|
"react/jsx-no-bind": "off",
|
|
"react/prop-types": "off",
|
|
"unicorn/no-await-expression-member": "off",
|
|
"unicorn/prefer-at": "off",
|
|
"unicorn/prefer-logical-operator-over-ternary": "off",
|
|
"unicorn/prefer-node-protocol": "off",
|
|
"unicorn/prefer-top-level-await": "off",
|
|
"complexity": "off"
|
|
},
|
|
"overrides": [
|
|
{
|
|
"files": [
|
|
"docs/_asset/editor.jsx",
|
|
"docs/_asset/index.js"
|
|
],
|
|
"envs": [
|
|
"browser"
|
|
]
|
|
},
|
|
{
|
|
"files": [
|
|
"docs/**/*.jsx",
|
|
"docs/**/*.js"
|
|
],
|
|
"extends": "xo-react",
|
|
"rules": {
|
|
"react/react-in-jsx-scope": "off"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"postcss": {
|
|
"plugins": {
|
|
"autoprefixer": true,
|
|
"cssnano": {
|
|
"preset": "default"
|
|
}
|
|
}
|
|
},
|
|
"remarkConfig": {
|
|
"plugins": [
|
|
"preset-wooorm",
|
|
[
|
|
"lint-no-html",
|
|
false
|
|
],
|
|
[
|
|
"lint-file-extension",
|
|
false
|
|
]
|
|
]
|
|
}
|
|
}
|