refactor(blog): move content gen code to its own package

This commit is contained in:
Kim, Jimin 2023-06-18 11:58:13 +09:00
parent c9c8cd35c1
commit 5ab6b93fa3
66 changed files with 460 additions and 380 deletions

View file

@ -3,12 +3,13 @@
"version": "0.0.0",
"private": true,
"scripts": {
"generate": "ts-node -O '{\"module\":\"commonjs\"}' --files ./generate",
"dev": "pnpm run generate && react-scripts start",
"build": "pnpm run generate && react-scripts build",
"cp": "cp -a ../../packages/blog-content/dist/public/. ./public",
"dev": "pnpm cp && react-scripts start",
"build": "pnpm cp && react-scripts build",
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf build"
},
"dependencies": {
"@developomp-site/blog-content": "workspace:*",
"@developomp-site/theme": "workspace:*",
"@fortawesome/fontawesome-svg-core": "^6.2.1",
"@fortawesome/free-brands-svg-icons": "^6.2.1",
@ -37,12 +38,10 @@
"@developomp-site/eslint-config": "workspace:*",
"@developomp-site/tsconfig": "workspace:*",
"@styled/typescript-styled-plugin": "^1.0.0",
"@types/ejs": "^3.1.1",
"@types/elasticlunr": "^0.9.5",
"@types/highlight.js": "^10.1.0",
"@types/jsdom": "^20.0.1",
"@types/katex": "^0.14.0",
"@types/markdown-it": "^12.2.3",
"@types/node": "^18.11.11",
"@types/react": "^18.0.26",
"@types/react-collapse": "^5.0.1",
@ -50,29 +49,10 @@
"@types/react-dom": "^18.0.9",
"@types/react-select": "^5.0.1",
"@types/styled-components": "^5.1.26",
"@types/svgo": "^3.0.0",
"@types/tinycolor2": "^1.4.3",
"ejs": "^3.1.8",
"gray-matter": "^4.0.3",
"jsdom": "^20.0.3",
"jspdf": "^2.5.1",
"markdown-it": "^13.0.1",
"markdown-it-anchor": "^8.6.5",
"markdown-it-attrs": "^4.1.4",
"markdown-it-footnote": "^3.0.3",
"markdown-it-highlight-lines": "^1.0.2",
"markdown-it-mark": "^3.0.1",
"markdown-it-sub": "^1.0.0",
"markdown-it-sup": "^1.0.0",
"markdown-it-task-checkbox": "^1.0.6",
"markdown-it-texmath": "^1.0.0",
"markdown-toc": "^1.2.0",
"prettier": "^2.8.1",
"read-time-estimate": "^0.0.3",
"simple-icons": "^7.21.0",
"svgo": "^3.0.2",
"tinycolor2": "^1.4.2",
"ts-node": "^10.9.1",
"tslint-config-prettier": "^1.18.0",
"typescript": "^4.9.4"
},