lp-workflow-cli
v1.0.4
Published
A Web workflow cli
Downloads
10
Readme
lp-workflow-cli
一个web工作流的脚手架
##项目根目录需要添加pages.config.js 为打包的一些相关信息,模板如,data是html中传递的 数据上下文,不需要的话可以不传递
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()
}
}
项目根目录需要添加deployConfig.js是部署配置rm -rf慎用, 模板如
const remotePath = ''
module.exports = {
ssh: {
host: '192.168.31.227',
port: 8822,
username: 'root',
password: 'a1234567'
},
remotePath,
commands: [
`rm -rf ${remotePath}`
]
}
脚手架提供以下命令 :