Skip to content

zip command should take an array of files #193

@TwitchBronBron

Description

@TwitchBronBron

The zip command currently only zips a directory. However, for many devs, the whole concept of "stagingDir" is confusing, and typically unnecessary. I propose the following expected behaviors for zip:

  • it should accept a dir arg, which is a folder where you want to zip the files from. (i believe this is the existing behavior)
  • it should accept a standard rokudeploy files array, and these would be resolved with the roku-deploy algorithm. The files are read from disk and immediately written into the zip without ever being copied into a staging directory.

Some examples:

npx roku-deploy zip --dir ./dist --out myApp.zip
npx roku-deploy zip --files "source/**/*" "components/**/*" fonts/**/* --out myApp.zip

This should apply to the cli, the commands, and the rokuDeploy.zip() function call.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions