Skip to content
This repository has been archived by the owner on Apr 5, 2023. It is now read-only.
/ wonkavision Public archive

A CLI tool to quickly zip, ship, and extract apps

License

Notifications You must be signed in to change notification settings

agrc/wonkavision

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wonkavision

A CLI tool to make deploying things over SFTP simple.

tophat

Getting Started

  1. npm install @agrc/wonkavision

  2. Create .env file in the root of your project and populate with these values:

    SSH_HOST=...
    SSH_USERNAME=...
    SSH_PASSWORD=...
    
  3. Add a new npm script to your package.json file:

    "scripts": {
      "deploy": "wonkavision clean && npm run build && wonkavision zip && wonkavision ship ./deploy/deploy.zip destination && wonkavision unzip destination"
    }

Commands

  • clean: Folder locations to clean
    • artifacts: Array of string paths relative to the package.json
      • The no argument default will remove the ./deploy directory
  • zip: Compress files into one location
    • src: The source folder to compress
      • The no argument default is ./build
    • dest: The file path to place the compressed files
      • The no argument default is ./deploy
    • name: The name of the zip file
      • The no argument default is deploy.zip
  • ship: Sends the zip file to the destination
    • src: The parent folder or file to ship
      • The no argument default is ./deploy/deploy.zip
    • dest: The folder to place the zip file
      • The no argument default is app
  • unzip: Decompress files on the SSH host, deleting the zip file after decompression
    • dest: The destination folder containing the zip file
      • The no argument default is app
    • name: The name of the compressed zip file
      • The no argument default is deploy.zip
    • --extra-command: a command to run after the zip file is decompressed

All commands can be run with a --dry-run flag to not perform any action`

About

A CLI tool to quickly zip, ship, and extract apps

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published