geyst-gulp
geyst dev workflow helper
Last updated 4 years ago by digitalgeyst .
ISC · Repository · Original npm · Tarball · package.json
$ cnpm install geyst-gulp 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.6.31                                ...           latest (4 years ago)

40 Versions

  • 0.6.31                                ...           4 years ago
  • 0.6.30 [deprecated]           ...           4 years ago
  • 0.6.21 [deprecated]           ...           4 years ago
  • 0.6.20                                ...           4 years ago
  • 0.6.14                                ...           4 years ago
  • 0.6.13                                ...           4 years ago
  • 0.6.12                                ...           4 years ago
  • 0.6.11                                ...           4 years ago
  • 0.6.9                                ...           4 years ago
  • 0.6.8                                ...           4 years ago
  • 0.6.7                                ...           4 years ago
  • 0.6.6                                ...           4 years ago
  • 0.6.5                                ...           4 years ago
  • 0.6.4                                ...           4 years ago
  • 0.6.3                                ...           4 years ago
  • 0.6.2                                ...           4 years ago
  • 0.6.1                                ...           4 years ago
  • 0.5.4                                ...           4 years ago
  • 0.5.3                                ...           4 years ago
  • 0.5.2                                ...           4 years ago
  • 0.5.1                                ...           4 years ago
  • 0.5.0                                ...           4 years ago
  • 0.4.0                                ...           4 years ago
  • 0.3.15                                ...           4 years ago
  • 0.3.14                                ...           4 years ago
  • 0.3.13                                ...           4 years ago
  • 0.3.12                                ...           4 years ago
  • 0.3.11                                ...           4 years ago
  • 0.3.10                                ...           4 years ago
  • 0.3.9                                ...           4 years ago
  • 0.3.7                                ...           4 years ago
  • 0.3.6                                ...           4 years ago
  • 0.3.5                                ...           4 years ago
  • 0.3.4                                ...           4 years ago
  • 0.3.3                                ...           4 years ago
  • 0.3.1                                ...           4 years ago
  • 0.2.1                                ...           4 years ago
  • 0.2.0                                ...           4 years ago
  • 0.1.1                                ...           4 years ago
  • 0.1.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 2
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |