This repository has been archived by the owner on Jul 2, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Gulp Tasks
Vitor Silva edited this page Nov 7, 2016
·
1 revision
The following Gulp Tasks are provided:
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:
- create a local server;
- compile your hyperties to "local catalogue";
- make a distribution file on dist folder;
- 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;
This task will:
- took a ES5 script, on resources folder;
- encode it to base64 format;
- provision the resource in the "local catalogue";
gulp encode