Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e84c3c2
commit f1733b1
Showing
30 changed files
with
305 additions
and
156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { LoaderConfOptions, WebpackConfiguration } from 'kkt'; | ||
import lessModules from '@kkt/less-modules'; | ||
|
||
export default (conf: WebpackConfiguration, env: 'production' | 'development', options: LoaderConfOptions) => { | ||
conf = lessModules(conf, env, options); | ||
if (options.bundle) { | ||
conf.output!.library = '@uiw/react-markdown-preview'; | ||
conf.externals = { | ||
react: { | ||
root: 'React', | ||
commonjs2: 'react', | ||
commonjs: 'react', | ||
amd: 'react', | ||
}, | ||
}; | ||
} | ||
return conf; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
{ | ||
"name": "@uiw/react-markdown-preview", | ||
"version": "4.1.9", | ||
"description": "React component preview markdown text in web browser. The minimal amount of CSS to replicate the GitHub Markdown style.", | ||
"homepage": "https://uiwjs.github.io/react-markdown-preview", | ||
"main": "lib/index.js", | ||
"module": "esm/index.js", | ||
"scripts": { | ||
"css:build": "compile-less -d src -o esm", | ||
"css:watch": "compile-less -d src -o esm --watch", | ||
"css:build:dist": "compile-less -d src --combine markdown.css --rm-global", | ||
"bundle": "ncc build src/index.tsx --target web --filename markdown", | ||
"bundle:min": "ncc build src/index.tsx --target web --filename markdown --minify", | ||
"watch": "tsbb watch & npm run css:watch", | ||
"build": "tsbb build && npm run css:build && npm run css:build:dist" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/uiwjs/react-markdown-preview.git" | ||
}, | ||
"author": "kenny wang <wowohoo@qq.com>", | ||
"license": "MIT", | ||
"files": [ | ||
"dist", | ||
"lib", | ||
"esm", | ||
"markdown.css", | ||
"src/**/*.{ts,tsx,less}" | ||
], | ||
"keywords": [ | ||
"react", | ||
"markdown", | ||
"prismjs", | ||
"react-markdown" | ||
], | ||
"peerDependencies": { | ||
"react": ">=16.8.0", | ||
"react-dom": ">=16.8.0" | ||
}, | ||
"dependencies": { | ||
"@babel/runtime": "^7.17.2", | ||
"@uiw/copy-to-clipboard": "~1.0.12", | ||
"react-markdown": "~8.0.0", | ||
"rehype-attr": "~2.1.0", | ||
"rehype-autolink-headings": "~6.1.1", | ||
"rehype-ignore": "^1.0.1", | ||
"rehype-prism-plus": "~1.5.0", | ||
"rehype-raw": "^6.1.1", | ||
"rehype-rewrite": "~3.0.6", | ||
"rehype-slug": "~5.1.0", | ||
"remark-gfm": "~3.0.1", | ||
"unist-util-visit": "^4.1.0" | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,6 @@ | |
"compilerOptions": { | ||
"baseUrl": "./", | ||
"noEmit": false | ||
} | ||
}, | ||
"include": ["src", "./.kktrc.ts"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"version": "4.1.9", | ||
"packages": ["core", "website"], | ||
"useWorkspaces": true | ||
} |
Oops, something went wrong.