/gcompress

Gulp task given a route that compresses all files * js they found within the same.

Primary LanguageJavaScriptMIT LicenseMIT

Project gcompress !!!

Description

This project consist in a Gulp task for compress JS files.


Pre requisites

Have installed and correctly configured:

  1. Linux :-)
  2. npm
  3. git
  4. nodejs
  5. gulp

Installing dependencies:

Installing dependencies in Ubuntu/Debian. sudo npm install nodejs nodejs-legacy npm git Installing gulp via npm. sudo npm install -g gulp


Dependencies: gulp gulp-logger gulp-uglify i npm pump recursive-readdir yargs


Install

  1. Clone the repository with the comand:
    git clone https://github.com/frankdavidcorona/gcompress.git

  2. Locate into the recent download folder:
    cd gcompress

  3. Install dependencies:
    npm install


Parameters

The task can accept two parameters called source and destino. The parameters must be passed with this format:

--source='/route/to/source'
--destino='/route/to/destino'

Usage example

gulp gcompress --source='route/to/source' --destino='route/to/destino'
The output create in the destino a new folder named dist that's contains the result of the task.


Documentation

By default the task will not obfuscate the code output, however this option can be changed by accessing the file:

gulpfile.js

Find this option:
var options = {mangle: false};
And change the mangle value to true.