test(vuepress-theme-reco): add test script
This commit is contained in:
parent
c8ee569671
commit
0a7acd8bf7
@ -6,6 +6,7 @@ module.exports = {
|
|||||||
['link', { rel: 'icon', href: '/favicon.ico' }],
|
['link', { rel: 'icon', href: '/favicon.ico' }],
|
||||||
['meta', { name: 'viewport', content: 'width=device-width,initial-scale=1,user-scalable=no' }]
|
['meta', { name: 'viewport', content: 'width=device-width,initial-scale=1,user-scalable=no' }]
|
||||||
],
|
],
|
||||||
|
base: '/reco-example-test/',
|
||||||
// theme: 'reco',
|
// theme: 'reco',
|
||||||
theme: require.resolve('../../packages/vuepress-theme-reco'),
|
theme: require.resolve('../../packages/vuepress-theme-reco'),
|
||||||
themeConfig: {
|
themeConfig: {
|
||||||
|
@ -18,6 +18,7 @@
|
|||||||
"prepublish": "lerna publish --dist-tag next",
|
"prepublish": "lerna publish --dist-tag next",
|
||||||
"publish": "lerna publish",
|
"publish": "lerna publish",
|
||||||
"push": "yarn commit && git push",
|
"push": "yarn commit && git push",
|
||||||
|
"test": "bash scripts/test.sh",
|
||||||
"update": "yarn upgrade-interactive --latest"
|
"update": "yarn upgrade-interactive --latest"
|
||||||
},
|
},
|
||||||
"husky": {
|
"husky": {
|
||||||
|
14
scripts/test.sh
Normal file
14
scripts/test.sh
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
npm run build
|
||||||
|
|
||||||
|
cd example/public
|
||||||
|
|
||||||
|
git init
|
||||||
|
git add -A
|
||||||
|
date=`date +%Y-%m-%d_%H:%M:%S`
|
||||||
|
git commit -m "deploy ${date}"
|
||||||
|
|
||||||
|
git push -f git@gitee.com:recoluan/reco-example-test.git master
|
||||||
|
|
||||||
|
cd ../../
|
||||||
|
rm -rf example/public
|
||||||
|
|
Loading…
Reference in New Issue
Block a user