npm version npm downloads JSDocs License
Use scripts to quick deploy your build files.
pnpm i scripts-deploy -D
If install warning, you can use pnpm i scripts-deploy -D --ignore-scripts
deploy init
Show examples
export default { host: '192.xxx', port: 10022, username: 'xxx', password: 'xxx', wwwPath: '/usr/xxx/xxx', rootDir: '/dist', confirm: true }
Show types
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 }
deploy