forked from remarkjs/react-markdown
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
89 lines (89 loc) · 3.03 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
{
"name": "www-react-markdown",
"private": true,
"license": "MIT",
"repository": "remarkjs/react-markdown",
"bugs": "https://github.com/remarkjs/react-markdown/issues",
"author": "Espen Hovlandsdal <[email protected]>",
"contributors": [],
"type": "module",
"devDependencies": {
"@wooorm/starry-night": "^3.0.0",
"cssnano": "^6.0.0",
"esbuild": "^0.19.0",
"eslint-config-xo-react": "^0.27.0",
"eslint-plugin-react": "^7.0.0",
"eslint-plugin-react-hooks": "^4.0.0",
"hast-util-to-jsx-runtime": "^2.0.0",
"nodemon": "^3.0.1",
"npm-run-all": "^4.1.5",
"open": "^9.1.0",
"postcss-cli": "^10.0.0",
"prettier": "^3.0.0",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"react-markdown": "^9.0.0",
"rehype-cli": "^12.0.0",
"rehype-highlight": "^7.0.0",
"rehype-preset-minify": "^7.0.0",
"rehype-prevent-favicon-request": "^4.0.0",
"rehype-raw": "^7.0.0",
"rehype-slug": "^6.0.0",
"remark-gfm": "^4.0.0",
"remark-toc": "^9.0.0",
"shx": "^0.3.4",
"stylelint": "^15.0.0",
"stylelint-config-standard": "^34.0.0",
"xo": "^0.56.0"
},
"scripts": {
"format": "prettier . -w --log-level warn && xo --fix && stylelint src/index.css --fix",
"serve": "python3 -m http.server -d dest",
"open": "open http://localhost:8000",
"watch:html": "nodemon --watch src/ -e html --exec 'npm run build:html'",
"watch:css": "nodemon --watch src/ -e css --exec 'npm run build:css'",
"watch:js": "nodemon --watch src/ -e js --exec 'npm run build:js'",
"watch": "shx mkdir -p dest && run-p watch:js watch:css watch:html",
"dev": "run-p watch serve open",
"build:css": "postcss src/index.css > dest/index.css",
"build:html": "rehype -q -u preset-minify -u prevent-favicon-request src/index.html -o dest/",
"build:js:nomodule": "esbuild src/index.js --bundle --conditions=browser,production --define:process.env.NODE_ENV=\\\"production\\\" --loader:.js=jsx --log-level=warning --minify --outfile=dest/index.nomodule.js --target=es6",
"build:js:module": "esbuild src/index.js --bundle --conditions=browser,production --define:process.env.NODE_ENV=\\\"production\\\" --format=esm --loader:.js=jsx --log-level=warning --minify --outfile=dest/index.module.js --target=es2020",
"build:js": "npm run build:js:module && npm run build:js:nomodule",
"build": "shx mkdir -p dest && run-p build:js build:css build:html",
"test": "npm run format && npm run build"
},
"browserslist": "> 0.25%, not dead",
"prettier": {
"tabWidth": 2,
"useTabs": false,
"singleQuote": true,
"bracketSpacing": false,
"semi": false,
"trailingComma": "none"
},
"stylelint": {
"extends": "stylelint-config-standard"
},
"postcss": {
"plugins": {
"cssnano": {
"preset": "default"
}
}
},
"xo": {
"prettier": true,
"extends": "xo-react",
"envs": [
"browser"
],
"rules": {
"n/file-extension-in-import": 0,
"react/jsx-no-bind": "off"
},
"ignores": [
"dest/"
]
}
}