scripts-deploy
v0.4.0
Published
Use scripts to quick deploy your build files.
Downloads
72
Readme
scripts-deploy
Use scripts to quick deploy your build files.
📦 Install
pnpm i scripts-deploy -D
If install warning, you can use pnpm i scripts-deploy -D --ignore-scripts
🦄 Usage
Open cmd, Init deploy.config
file and write it
deploy init
export default {
host: '192.xxx',
port: 10022,
username: 'xxx',
password: 'xxx',
wwwPath: '/usr/xxx/xxx',
rootDir: '/dist',
confirm: true
}
export interface ScriptsDeployOption {
/** Server host */
host: string
/** Server post */
port: number
/** Server login username */
username: string
/** Server login password */
password: string
/** Server folder path */
wwwPath: string
/** Build output folder */
rootDir: string
/** Confirm execution */
confirm?: boolean
/** Number of concurrent uploads, Default is 15 */
limit?: number
}
Run
deploy