This package has been deprecated

Author message:

0.6.31 is no longer supported

geyst-gulp

0.6.31 • Public • Published

geyst-gulp

Installation

Install via npm npm install geyst-gulp --save

Setup

Initialize all gulp tasks

var gulp = require('gulp');
var geystGulp = require('geyst-gulp');

geystGulp.gulp(gulp);

// append your custom gulptasks
...

In the template folder is a gulpfile.js template which you can use and modify for your needs

API

gulp

Initialize gulp tasks

var geystGulp = require('geyst-gulp');

geystGulp.gulp(gulp);

collect

Gets all given properties for a config collection

config

...
"less" : [
    {
        "watch" : "./less/style.less",
        "source" : "./less/*.less",
        "dist" : "./dist/style",
        "name" : "less.css"
    },

    {
        "watch" : "./less/import.less",
        "source" : "./less/*.less",
        "dist" : "./dist/style",
        "name" : "less.css"
    }
],
...

gulpfile.js

var geystGulp = require('geyst-gulp');

geystGulp.collect('less', 'watch'); // returns ['./less/style.less', '/less/import.less']

Commands

gulp setup:gulp

Creates a config file for your project

gulp setup:ftp

Creates config files for the ftp deployment environments

gulp style:less

process the less files. path are set in the config file

gulp style:sass

process the sass files. path are set in the config file

gulp javascript

process the javascript files configured in your config

gulp images

Optimizes/compress (lossless) images from a given folder

gulp bower

Bundle all bower modules into single file

gulp clean

Removes every configured entry in clean

gulp copy

Copies all the files configured in the project config

gulp deploy:ftp --to=[ENVIRONMENT]

Uploads files from a given folder to a remote server

ENVIRONMENT is a env in your config file

If no --to is given the dev environment is deployed

You can configure a default target in your ftp config file with default:<ENV>

gulp watch:{command}

Starts a watcher for the specified command. The command parameter is a specific task like javascript, less, css, sass or copy You can also pass all as command parameter. Then all watchers will be started

Subversion

Since the ftp.auth.json stores your ftp credentials you shouldn't add it to your subversion!

WIP

  • Configure default ftp deploy target

ChangeLog

0.6.5

  • Add optional JS validation. Added parameter validation to javascript config.
  • Add filesize output to js/css/sass/less/bower/images
  • Remove filter for sass

0.6.6

  • add require statement in sass task

0.6.7

  • implement build command & created config
  • ignore unexisting config
  • Add notify for ftp deployment
  • add default deployment target in config

0.6.8

  • optimize FTP deployment
  • output for clean command
  • Add prompt to deploy to production env
  • change structure of ftp.config.json

Readme

Keywords

none

Package Sidebar

Install

npm i geyst-gulp

Weekly Downloads

1

Version

0.6.31

License

ISC

Last publish

Collaborators

  • digitalgeyst