Skip to content

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
}

See file

Run

deploy

screenshots

License

MIT License © 2024-PRESENT warmthsea