A deploy tool for vue.js
, when git send you webhook
or setting auto fetch by long time loop, it will build and copy to dist src.
Make sure your NodeJs is 4.x
npm install gulp -g
clone this project and cd this folder
git clone https://github.com/moonou/vue-deploy-tool.git [your folder]
when that complete, use cd
to that folder
configure project related information in config.js
module.exports = {
repository: '', // git repository url
gitworkdir: '.temp', // git folder
remote: 'origin',
branch: 'master',
packageManager: 'cnpm', // umm...., change your npm package manager
serverdir: '', //produce folder
serverport: 3000 // server listen port
}
node app.js