-
Notifications
You must be signed in to change notification settings - Fork 25
Description
I'm trying to figure out the workflow of editing and deploying the contents of a static resource. The zipped-resources doc says:
- Open a *.resource file
- Choose a file inside the resource's unpacked directory
- 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.