Skip to content

Recommended process to deploy unpacked Static Resource contents #48

@chexxor

Description

@chexxor

I'm trying to figure out the workflow of editing and deploying the contents of a static resource. The zipped-resources doc says:

  1. Open a *.resource file
  2. Choose a file inside the resource's unpacked directory
  3. Deploy *.resource file using the ApexDeploy command

I am having problems with step 3. I open the "$PROJECT_DIR/resources-unpacked/MyResource.resource/app.js" file in a buffer in vim, then run the :ApexDeployOne deploy command, which tries to deploy that exact file. This gives me an error: no valid files in C:\Users\Alex\AppData\Local\Temp\VIFE452.tmp-fileList.txt (it contains "resources-unpacked/MyResource/app.js").

I'm guessing I'm doing this wrong. I'm guessing I need to deploy the "src/staticresources/MyResource.resource" file. Yeah?

It looks like the only way to do that is to manually type that path into the :ApexStage command, then do :ApexDeployStaged deploy, right? This seems more complicated than it should be. :3

What do you think about this proposed change? - Change the :ApexDeployOne command to check if the current file is in the "resources-unpacked" directory, and map deploy requests to those files to their corresponding "src/staticresources/*" file? For example: I tell it to deploy "resources-unpacked/MyResource.resource/app.js", but it actually generates a command to deploy the "src/staticresources/MyResource.resource" file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions