Small extension to help the SFCC (SalesForce Commerce Cloud) developers, to edit the dw.json file, run commands of Prophet and control the environment Code Versions.
Why this Extension?
Simplify the life to SFCC developers, with an extension that provides direct edition of dw.json and the possibility of run Prophet commands on the same sidebar.
The extension validates the mandatory fields that the dw.json require to connect with an SFCC environment, that are necessary for Prophet uploads the code and to start a debug.
The main commands Clean Project/Upload All, Enable Upload and Disable Upload, are present on the sidebar, for quick execution of them.
For simplify the work of the developers, it's possible to enable until two custom buttons, configured on settings on section SFCC DW Helper. These buttons will only run terminal commands.
Interact with environment present on dw.json, to get, create, and delete Code Versions.
Edit the dw.json file
Edition of dw.json directly on the sidebar
Hiding the user's password
Possibility of hide and show the password field
Basic Prophet commands
The three Prophet commands present on sidebar, without requiring the execution of these commands by the Command Palette of VS Code.
JSON schema validation at start of the extension activation, when the sidebar SFCC DW Helper icon is clicked for the first time on a VS Code window. It check if all fields are of string type and if the field name is the correct.
Controls to compilers
Possibility to render until two buttons, for building code, per example, with custom label text and custom terminal commands, all configured on Settings, on SFCC DW Helper section.
The button only will be rendering if the toggle is enabled and both text fields fulfilled.
History of inputted data on settings
The history of Hostname and Code Version inputted data, will be saved on settings.json on an arrays (Hostname History and Codeversion History respectively)
Interact with environment Code Versions
Possibility to connect to SalesForce Commerce Cloud, via OCAPI, to get all Code Versions of the environment configured on dw.json to do:
All necessary fields, Client ID and Client Password should be fulfilled to an successful connection to the environment. For more information, the SalesForce Commerce Cloud documentation can be accessed here.
In your environment, should be configured the GET method to
On Business Manager, search by OCAPI settings, later select the Data API and include the following object on your Client ID configuration:
With this feature you can see the current active Code Version on the environment. When an Code Version is choose, this one will be saved on your Codeversion History, like the original feature. In case of any error to get the Code Versions via OCAPI, the original feature of access to Codeversion History will be automatically set.
For more information, please see the SalesForce Commerce Cloud documentation can be accessed here
List of Code Versions to select
Create a new Code Version
Select a Code Version to delete