|
6 | 6 | "scripts": {
|
7 | 7 | "analyze": "ANALYZE=true next build",
|
8 | 8 | "dev": "next",
|
9 |
| - "build": "next build && node ./scripts/generateRSS.js", |
| 9 | + "build": "next build && node ./scripts/generateRSS.js && node ./scripts/generateRedirects.js", |
10 | 10 | "lint": "next lint",
|
11 | 11 | "lint:fix": "next lint --fix",
|
12 |
| - "format:source": "prettier --config .prettierrc --write \"{plugins,src}/**/*.{js,ts,jsx,tsx}\"", |
13 |
| - "nit:source": "prettier --config .prettierrc --list-different \"{plugins,src}/**/*.{js,ts,jsx,tsx}\"", |
| 12 | + "format:source": "prettier --config .prettierrc --write \"{plugins,src}/**/*.{js,ts,jsx,tsx,css}\"", |
| 13 | + "nit:source": "prettier --config .prettierrc --list-different \"{plugins,src}/**/*.{js,ts,jsx,tsx,css}\"", |
14 | 14 | "prettier": "yarn format:source",
|
15 | 15 | "prettier:diff": "yarn nit:source",
|
16 |
| - "generate-ids": "node scripts/generateHeadingIDs.js src/pages/", |
17 |
| - "ci-check": "npm-run-all prettier:diff --parallel lint tsc", |
| 16 | + "lint-heading-ids": "node scripts/headingIdLinter.js", |
| 17 | + "fix-headings": "node scripts/headingIdLinter.js --fix", |
| 18 | + "ci-check": "npm-run-all prettier:diff --parallel lint tsc lint-heading-ids", |
18 | 19 | "tsc": "tsc --noEmit",
|
19 | 20 | "start": "next start",
|
20 |
| - "postinstall": "is-ci || (cd .. && husky install beta/.husky)", |
| 21 | + "postinstall": "patch-package && (is-ci || (cd .. && husky install beta/.husky))", |
21 | 22 | "check-all": "npm-run-all prettier lint:fix tsc"
|
22 | 23 | },
|
23 | 24 | "dependencies": {
|
24 |
| - "@codesandbox/sandpack-react": "^0.1.20", |
| 25 | + "@codesandbox/sandpack-react": "v0.14.3-experimental.1", |
25 | 26 | "@docsearch/css": "3.0.0-alpha.41",
|
26 | 27 | "@docsearch/react": "3.0.0-alpha.41",
|
27 | 28 | "@headlessui/react": "^1.3.0",
|
28 | 29 | "@mdx-js/react": "^1.6.16",
|
29 |
| - "@next/plugin-google-analytics": "^10.0.6", |
30 | 30 | "body-scroll-lock": "^3.1.3",
|
31 | 31 | "classnames": "^2.2.6",
|
32 | 32 | "date-fns": "^2.16.1",
|
33 | 33 | "debounce": "^1.2.1",
|
| 34 | + "ga-lite": "^2.1.4", |
34 | 35 | "github-slugger": "^1.3.0",
|
35 |
| - "next": "^12.0.3-canary.2", |
| 36 | + "next": "^12.0.10", |
36 | 37 | "parse-numeric-range": "^1.2.0",
|
37 |
| - "react": "18.0.0-alpha-930c9e7ee-20211015", |
| 38 | + "react": "experimental", |
38 | 39 | "react-collapsed": "3.1.0",
|
39 |
| - "react-dom": "18.0.0-alpha-930c9e7ee-20211015", |
| 40 | + "react-dom": "experimental", |
40 | 41 | "scroll-into-view-if-needed": "^2.2.25"
|
41 | 42 | },
|
42 | 43 | "devDependencies": {
|
|
52 | 53 | "@typescript-eslint/eslint-plugin": "2.x",
|
53 | 54 | "@typescript-eslint/parser": "2.x",
|
54 | 55 | "asyncro": "^3.0.0",
|
55 |
| - "autoprefixer": "^10.3.1", |
| 56 | + "autoprefixer": "^10.4.2", |
56 | 57 | "babel-eslint": "10.x",
|
57 | 58 | "eslint": "7.x",
|
58 | 59 | "eslint-config-next": "12.0.3",
|
|
67 | 68 | "gray-matter": "^4.0.2",
|
68 | 69 | "husky": "^7.0.4",
|
69 | 70 | "is-ci": "^3.0.1",
|
| 71 | + "lint-staged": ">=10", |
70 | 72 | "mdast-util-to-string": "^1.1.0",
|
71 | 73 | "npm-run-all": "^4.1.5",
|
72 | 74 | "patch-package": "^6.2.2",
|
73 |
| - "postcss": "^8.3.6", |
| 75 | + "postcss": "^8.4.5", |
74 | 76 | "postcss-flexbugs-fixes": "4.2.1",
|
75 | 77 | "postcss-preset-env": "^6.7.0",
|
76 |
| - "prettier": "^2.1.1", |
| 78 | + "prettier": "^2.5.1", |
77 | 79 | "reading-time": "^1.2.0",
|
78 | 80 | "remark": "^12.0.1",
|
79 | 81 | "remark-external-links": "^7.0.0",
|
|
84 | 86 | "retext": "^7.0.1",
|
85 | 87 | "retext-smartypants": "^4.0.0",
|
86 | 88 | "rss": "^1.2.2",
|
87 |
| - "tailwindcss": "^2.2.7", |
| 89 | + "tailwindcss": "^3.0.22", |
88 | 90 | "typescript": "^4.0.2",
|
89 | 91 | "unist-util-visit": "^2.0.3",
|
90 | 92 | "webpack-bundle-analyzer": "^4.5.0"
|
|
96 | 98 | "budget": null,
|
97 | 99 | "budgetPercentIncreaseRed": 10,
|
98 | 100 | "showDetails": true
|
| 101 | + }, |
| 102 | + "lint-staged": { |
| 103 | + "*.{js,ts,jsx,tsx,css}": "yarn prettier", |
| 104 | + "src/**/*.md": "yarn fix-headings" |
99 | 105 | }
|
100 | 106 | }
|
0 commit comments