Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

warmthsea/scripts-deploy

Repository files navigation

scripts-deploy

npm version npm downloads JSDocs License

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

screenshots

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
}

See file

Run

deploy

screenshots

License

MIT License Β© 2024-PRESENT warmthsea

Sponsor this project

Contributors

Generated from antfu/starter-ts

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /