i4SCADA Knowledge Base

Using i4SCADA App template with Visual Studio Code


Check out what needs to be done on the first use of the i4SCADA App Template with the Visual Studio Code.

To first time using the  in Visual Studio Code, the following steps must be executed:

  1. Launch Visual Studio Code with administrative privileges. This is required in order to have write access to the IIS protected folders, if the working folder is inside the IIS directory, as recommended.

  2. Open the working folder (where the zip package was extracted) using the File > Open Folder command.

  3. Open the Visual Studio Code's Integrated Terminal (View > Integrated Terminal) to install the required Node.js modules. Run the npm install command. Installing all the required modules might take few minutes.


    Run the "npm install" command

  4. Once all the npm packages are installed, Gulp.js can be used to manage all the project operations required for building, publishing or cleaning the project.

  5. In Visual Studio Code, you can access all Gulp.js tasks using the integrated Command Pallete (View > Command Pallete... or Ctrl + Shift + P). Open the Command Pallete and execute the Tasks: Run Task command. All the Gulp.js tasks will be listed in the Command Pallete.


    An easier way to access the Gulp.js tasks using the Command Pallete is to deleted the default angular bracket > and directly type task followed by space. The build in tasks will be listed and you can select the desired one. If you already know what task you need to run, simply open the Command Pallete, delete the default bracket and type task taskname and press enter to run it (for example task build).


    Gulp task

  6. When running a Gulp.js task, the Output panel will list the progress of the task.