User Guide - How to compile Shared Resources (SR) Package

 

 

 

 

  1. Download and install node.js https://nodejs.org/en/download/  

     

  2. Open your command prompt. You should be able to double check if it is installed by typing 
    node -v into your command prompt (Terminal) 

  3. You can then take a shared resource.  
    In this step, we have created a shared resource named Activator Standard Template_ICH_test(v0.1) using Veeva as testing purpose below.


    Open the resource in ´Open shared in Demo’-


    Then the resource as follow by clicking ‘Download ZIP’ -

  4. Unzip it, and open the file you want to apply changes to.
    In our case it was saved by default location. And, you need to Extract to see all the files in the desired location and making changes in any of the files. 


  5. Apply changes to the file and then save it.  

  6. The next steps it that you need to compile the SharedResource.  

  7. To this you need to navigate in your command prompt into the folder.  

  8. Helpful commands:  
    cd nameofthedirectory - will take will navigate you into the directory
    cd .. -  will bring you one directory up in the tree
    ls or dir-  will list the directories in the directory you are in

  9. Once you navigated yourself into the unzipped SR folder you need to run the following commands in your command prompt. 

  10. npm i
    Examples are showing the results in our case:

  11. And then npm run prod

  12. When the process has finished you will in the unzipped folder locate, that a new folder was created, called exports 

     

  13. Open that export folder and it will contain a zipped Shared Resource 


  14. Now, you can upload the zipped Shared Resource file to wherever you want to according to your need. Here, you have two options: either you can upload the Shared Resources in Vault as new version or drag and drop in the Activator.

    Examples showing in our case: 
    - If you are using Vault to upload new version of the SR


    - If you use drag and drop option to update the current SR


    - a new version is created