Skip to content

Commit 88b3964

Browse files
committed
chore: cleaning up build script and package.json
1 parent 219f06b commit 88b3964

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

build.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
rm -rf tmp
22
rm -rf src/.vuepress/dist
3-
yarn build-local
4-
mv src/.vuepress/dist tmp
3+
4+
yarn build:dev
5+
6+
# Nesting dist into a subdirectory inside itself dist/v2
57
mv src/.vuepress/dist tmp
68
mkdir -p src/.vuepress/dist/v2
79
mv tmp/* src/.vuepress/dist/v2
10+
11+
# Pulling up the top-level pages
812
cp src/.vuepress/dist/v2/*.html src/.vuepress/dist/

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
},
77
"scripts": {
88
"serve": "vuepress dev src",
9-
"build-local": "vuepress build src",
9+
"build:dev": "vuepress build src",
1010
"build": "./build.sh"
1111
}
1212
}

0 commit comments

Comments
 (0)