ces
module.exports = {
build: {
src: 'src',
dist: 'dist',
temp: '.tmp',
public: 'public',
paths: {
styles: 'assets/styles/*.scss',
scripts: 'assets/scripts/*.js',
pages: '*.html',
images: 'assets/images/**',
fonts: 'assets/fonts/**'
}
},
data: {
menus: [
{
name: 'Home',
icon: 'aperture',
link: 'index.html'
},
{
name: 'Features',
link: 'features.html'
},
{
name: 'About',
link: 'about.html'
},
{
name: 'Contact',
link: '#',
children: [
{
name: 'Twitter',
link: 'https://twitter.com/w_zce'
},
{
name: 'About',
link: 'https://weibo.com/zceme'
},
{
name: 'divider'
},
{
name: 'About',
link: 'https://github.com/zce'
}
]
}
],
pkg: require('./package.json'),
date: new Date()
}
}
const remotePath = ''
module.exports = {
ssh: {
host: '192.168.31.227',
port: 8822,
username: 'root',
password: 'a1234567'
},
remotePath,
commands: [
`rm -rf ${remotePath}`
]
}
脚手架提供以下命令 :
lp-workflow-cli build 打包任务
lp-workflow-cli start 开发任务
lp-workflow-cli clean 清空打包开发文件夹
lp-workflow-cli serve 单纯启动前端服务,如果之前没有运行过 start或者build的话,会从src目录下查找文件
lp-workflow-cli deploy 部署上线任务
lp-workflow-cli esLint esLint 语法检查需要配置文件 默认是 --fix
lp-workflow-cli standard standard语法检查默认是 --fix