Skip to content
标签
欢迎扫码关注公众号

Build vue.js project by Coding CI

因为代码仓库托管在 Coding 中,所以准备使用 Coding 自带的 CI 工具来构建项目。

之前使用 Jenkins 时只需要在服务器上设置一次就可以了,但是在 Coding CI 中每次都是新镜像,所以之前只需要设置或安装一次的操作都需要集成在每一次构建中。

修改后的构建脚本如下:

bash
npm config set registry https://registry.npm.taobao.org/
npm config set sass_binary_site https://npm.taobao.org/mirrors/node-sass/
npm install chromedriver --chromedriver_cdnurl=http://cdn.npm.taobao.org/dist/chromedriver --unsafe-perm=true --allow-root
npm install --unsafe-perm=true --allow-root
npm run build:test

Page Layout Max Width

Adjust the exact value of the page width of VitePress layout to adapt to different reading needs and screens.

Adjust the maximum width of the page layout
A ranged slider for user to choose and customize their desired width of the maximum width of the page layout can go.

Content Layout Max Width

Adjust the exact value of the document content width of VitePress layout to adapt to different reading needs and screens.

Adjust the maximum width of the content layout
A ranged slider for user to choose and customize their desired width of the maximum width of the content layout can go.