|
1 | 1 | {
|
2 |
| - "name": "www-remark", |
3 |
| - "private": true, |
4 |
| - "license": "MIT", |
5 |
| - "repository": "remarkjs/remark", |
6 |
| - "bugs": "https://github.com/remarkjs/remark/issues", |
7 | 2 | "author": "Titus Wormer <[email protected]> (https://wooorm.com)",
|
| 3 | + "browserslist": [ |
| 4 | + "> 1%", |
| 5 | + "last 2 versions", |
| 6 | + "not ie <= 8" |
| 7 | + ], |
| 8 | + "bugs": "https://github.com/remarkjs/remark/issues", |
8 | 9 | "contributors": [
|
9 | 10 | "Titus Wormer <[email protected]> (https://wooorm.com)"
|
10 | 11 | ],
|
|
24 | 25 | "stylelint": "^13.0.0",
|
25 | 26 | "stylelint-config-standard": "^22.0.0"
|
26 | 27 | },
|
27 |
| - "scripts": { |
28 |
| - "format": "remark . -qfo && stylelint src/index.css --fix", |
29 |
| - "build:css": "postcss src/index.css -o dest/index.css", |
30 |
| - "build:html": "rehype src -o dest", |
31 |
| - "build:theme": "cp node_modules/highlight.js/styles/github.css dest/day.css && cp node_modules/highlight.js/styles/nord.css dest/night.css", |
32 |
| - "build:asset": "cp -r src/CNAME dest", |
33 |
| - "build:img": "imagemin src/*.jpg -p jpegtran --out-dir dest", |
34 |
| - "build": "npm run build:css && npm run build:html && npm run build:theme && npm run build:asset && npm run build:img", |
35 |
| - "test": "npm run format && npm run build" |
36 |
| - }, |
37 |
| - "stylelint": { |
38 |
| - "extends": "stylelint-config-standard" |
39 |
| - }, |
40 |
| - "browserslist": [ |
41 |
| - "> 1%", |
42 |
| - "last 2 versions", |
43 |
| - "not ie <= 8" |
44 |
| - ], |
| 28 | + "license": "MIT", |
| 29 | + "name": "www-remark", |
45 | 30 | "postcss": {
|
46 | 31 | "plugins": {
|
47 | 32 | "postcss-preset-env": {},
|
|
50 | 35 | }
|
51 | 36 | }
|
52 | 37 | },
|
53 |
| - "remarkConfig": { |
| 38 | + "private": true, |
| 39 | + "rehype": { |
54 | 40 | "plugins": [
|
55 |
| - "preset-wooorm" |
| 41 | + "rehype-highlight", |
| 42 | + "rehype-preset-minify", |
| 43 | + "rehype-prevent-favicon-request" |
56 | 44 | ]
|
57 | 45 | },
|
58 |
| - "rehype": { |
| 46 | + "remarkConfig": { |
59 | 47 | "plugins": [
|
60 |
| - "highlight", |
61 |
| - "preset-minify", |
62 |
| - "prevent-favicon-request" |
| 48 | + "remark-preset-wooorm" |
63 | 49 | ]
|
| 50 | + }, |
| 51 | + "repository": "remarkjs/remark", |
| 52 | + "scripts": { |
| 53 | + "build:asset": "cp -r src/CNAME dest", |
| 54 | + "build:css": "postcss src/index.css -o dest/index.css", |
| 55 | + "build:html": "rehype src -o dest", |
| 56 | + "build:img": "imagemin src/*.jpg -p jpegtran --out-dir dest", |
| 57 | + "build:theme": "cp node_modules/highlight.js/styles/github.css dest/day.css && cp node_modules/highlight.js/styles/nord.css dest/night.css", |
| 58 | + "build": "npm run build:css && npm run build:html && npm run build:theme && npm run build:asset && npm run build:img", |
| 59 | + "format": "remark . -qfo && stylelint src/index.css --fix", |
| 60 | + "test": "npm run format && npm run build" |
| 61 | + }, |
| 62 | + "stylelint": { |
| 63 | + "extends": "stylelint-config-standard" |
64 | 64 | }
|
65 | 65 | }
|
0 commit comments