Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/warmthsea/scripts-deploy
Use scripts to quick deploy your build files.
https://github.com/warmthsea/scripts-deploy
build deploy dist fs react script ssh ssh-client ssh-server vue
Last synced: about 1 month ago
JSON representation
Use scripts to quick deploy your build files.
- Host: GitHub
- URL: https://github.com/warmthsea/scripts-deploy
- Owner: warmthsea
- License: mit
- Created: 2024-07-19T02:41:43.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-08-22T04:40:56.000Z (3 months ago)
- Last Synced: 2024-09-28T17:43:15.930Z (about 2 months ago)
- Topics: build, deploy, dist, fs, react, script, ssh, ssh-client, ssh-server, vue
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/scripts-deploy
- Size: 392 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# scripts-deploy
[![npm version][npm-version-src]][npm-version-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]
[![JSDocs][jsdocs-src]][jsdocs-href]
[![License][license-src]][license-href]Use scripts to quick deploy your build files.
## 📦 Install
```shell
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
```shell
deploy init
```![screenshots](https://github.com/user-attachments/assets/2c67bce4-89a2-4ac4-9e0f-919e3b9599cd)
Show examples
```js
export default {
host: '192.xxx',
port: 10022,
username: 'xxx',
password: 'xxx',
wwwPath: '/usr/xxx/xxx',
rootDir: '/dist',
confirm: true
}
```Show types
```ts
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](https://github.com/warmthsea/scripts-deploy/blob/main/src/type.ts)
#### Run
```shell
deploy
```![screenshots](https://github.com/user-attachments/assets/226db360-02d0-4dc7-a323-bda3683bedf8)
## License
[MIT](./LICENSE) License © 2024-PRESENT [warmthsea](https://github.com/warmthsea)
[npm-version-src]: https://img.shields.io/npm/v/scripts-deploy?style=flat&colorA=080f12&colorB=1fa669
[npm-version-href]: https://npmjs.com/package/scripts-deploy
[npm-downloads-src]: https://img.shields.io/npm/dm/scripts-deploy?style=flat&colorA=080f12&colorB=1fa669
[npm-downloads-href]: https://npmjs.com/package/scripts-deploy
[license-src]: https://img.shields.io/github/license/warmthsea/scripts-deploy.svg?style=flat&colorA=080f12&colorB=1fa669
[license-href]: https://github.com/warmthsea/scripts-deploy/blob/main/LICENSE
[jsdocs-src]: https://img.shields.io/badge/jsdocs-reference-080f12?style=flat&colorA=080f12&colorB=1fa669
[jsdocs-href]: https://www.jsdocs.io/package/scripts-deploy