Skip to content

NPM Gulp Tasks

Casper Thule edited this page Jun 12, 2018 · 4 revisions
  • Node Package Manager (NPM) is a package management system used to maintain packages used by the application.
  • Gulp is a build system used to build the application.

How to build

The app is built with Electron and Node.js (v6 recommended). You need npm (comes with Node.js). Npm 3 or higher is required. Npm can be upgraded with npm install npm@latest -g. We use Gulp to manage tasks. It's easiest to have it installed globally (npm install -g gulp).

After checking out the repo:

  1. To install node dependencies: npm install
  2. To install other resources: gulp init
  3. To build the UI: gulp
  4. To run it: npm start

Gulp and NPM Commands

  • New NPM dependencies: Execute npm install
  • New Bower dependencies: Execute gulp init
  • Build INTO-CPS Application: Execute gulp build or gulp
  • gulp watch: It will automatically detect when you save a file and run the corresponding build task so you only have to refresh the app when developing
Clone this wiki locally