0.2.2 • Published 4 years ago
sbtpublish v0.2.2
sbtpublish
Publish the project file to the specified folder, and then it can be easily deployed to the server through tools such as FTP
install
npm install sbtpublish
package.json
{
"name": "publish",
"scripts": {
"sbtpublishconfig": "sbtpublish -c a.config.js",
"sbtpublish": "sbtpublish"
},
"dependencies": {
"sbtpublish": "sbtpublish"
}
}
a.config.js
module.exports = {
output: 'cccc',
ignore: [
'build'
],
lastModify: '1d'
}
publish
npm run sbtpublishconfig
default
const path = require('path');
module.exports = function (appRoot) {
return {
output: path.resolve(appRoot, 'sbtpublish'),
ignore: [
]
}
}
appRoot is the folder where sbtpublish runs