add sitemap upload script
Signed-off-by: lish <lish@csdn.net>
Showing
... | @@ -3,9 +3,10 @@ | ... | @@ -3,9 +3,10 @@ |
"docs:dev": "yarn fix-memory-limit && yarn readme:copy && vuepress dev docs --no-cache", | "docs:dev": "yarn fix-memory-limit && yarn readme:copy && vuepress dev docs --no-cache", | ||
"docs:build": "yarn fix-memory-limit && yarn readme:copy && vuepress build docs && yarn seo:copy && yarn mv", | "docs:build": "yarn fix-memory-limit && yarn readme:copy && vuepress build docs && yarn seo:copy && yarn mv", | ||
"readme:copy": "cp -r README.md readme docs/ && cp -r README.md readme docs/en/", | "readme:copy": "cp -r README.md readme docs/ && cp -r README.md readme docs/en/", | ||
"seo:gether": "node sitemap_upload.js", | |||
"seo:copy": "cp -r seo/*.* docs/.vuepress/dist/", | "seo:copy": "cp -r seo/*.* docs/.vuepress/dist/", | ||
"fix-memory-limit": "cross-env LIMIT=8192 increase-memory-limit", | "fix-memory-limit": "cross-env LIMIT=8192 increase-memory-limit", | ||
"mv":"rm -rf public && mkdir -p public && mv docs/.vuepress/dist public" | "mv": "rm -rf public && mkdir -p public && mv docs/.vuepress/dist public" | ||
}, | }, | ||
"devDependencies": { | "devDependencies": { | ||
"cross-env": "^7.0.3", | "cross-env": "^7.0.3", | ||
... | @@ -14,5 +15,8 @@ | ... | @@ -14,5 +15,8 @@ |
"vuepress": "^1.9.7", | "vuepress": "^1.9.7", | ||
"vuepress-plugin-autometa": "^0.1.13", | "vuepress-plugin-autometa": "^0.1.13", | ||
"vuepress-plugin-sitemap": "^2.3.1" | "vuepress-plugin-sitemap": "^2.3.1" | ||
}, | |||
"dependencies": { | |||
"xml2js": "^0.4.23" | |||
} | } | ||
} | } |
sitemap_upload.js
0 → 100644
此差异已折叠。
想要评论请 注册 或 登录