Skip to content
This repository has been archived by the owner on Jul 2, 2019. It is now read-only.

Gulp Tasks

Vitor Silva edited this page Nov 7, 2016 · 1 revision

The following Gulp Tasks are provided:

gulp serve or npm run start:dev

If you are a linux user read this:

Use CAP_NET_BIND_SERVICE to grant low-numbered port access to a process.

With this you can grant permanent access to a specific binary to bind to low-numbered ports via the setcap command:

After doing this, /path/to/binary will be able to bind to low-numbered ports.

You should execute this command once, this will prevent you need start the server with sudo:

 sudo setcap CAP_NET_BIND_SERVICE=+eip /path/to/binary/node

NOTE: you can see more information on superuser.com

This task will:

  1. create a local server;
  2. compile your hyperties to "local catalogue";
  3. make a distribution file on dist folder;
  4. reload your browser, with last changes;
# working with develop environment
# this will use the local catalogue
npm run start:dev

# working with production environment
# this will use the catalogue specified for production on system.config.json
npm start

The system.config.json file contains some configuration, just could be changed for each environment;

In both cases, you need to execute like sudo or, if you are using windows, open the terminal with administrator permission;

gulp encode

This task will:

  1. took a ES5 script, on resources folder;
  2. encode it to base64 format;
  3. provision the resource in the "local catalogue";
gulp encode
Clone this wiki locally