Giter Club home page Giter Club logo

gulp-all-tasks's Introduction

gulp-all-tasks

![Gitter](https://badges.gitter.im/Join Chat.svg)

Gulpjs

Installation

npm install gulp-all-tasks --save-dev

Features

You can install any plugin and this module you can convert the name to a function within gulp, For example, if you install grunt-uglify you can use it inside grunt as grunt_uglify()

Example

- npm install gulp-uglify --save-dev
- npm install gulp-concat --save-dev
var gulp = require('gulp');
require('gulp-all-tasks')();

gulp.task('default', function(){
	gulp.src('src/*.js')
		.pipe(gulp_uglify())
		.pipe(gulp.dest('dest'));
});

gulp.task('concat', function() {
  return gulp.src('./lib/*.js')
    .pipe(gulp_concat('all.js'))
    .pipe(gulp.dest('./dist/'));
});

Load all task by other package.json file?

var gulp = require('gulp');
require('gulp-all-tasks')({package:'other/package/file'});

Load all task by other prefix?

var gulp = require('gulp');
require('gulp-all-tasks')({prefix:['other-*','@*/other-*']});

Load all task by other scope?

var gulp = require('gulp');
require('gulp-all-tasks')({dependencies:['dependencies', 'otherScope']});

Want to contribute?

All help are more than welcome!

Pre-requesites

Development Workflow

  1. Fork this respository.
  2. Clone your fork and create a feature branch from develop. git clone [email protected]:/grunt-all-tasks.git git fetch origin git checkout dev git checkout -b feature-<new_feature>
  3. Install development dependencies. npm install
  4. Code and be happy!
  5. Test your code using Mocha.
  6. Submit a pull request and thanks.

Questions? Hit me.

Tests

To run all tests:

npm test

Credits

gulp-all-tasks was created by Joel A. Jaime for the world.

gulp-all-tasks's People

Contributors

alblandino avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

gitter-badger

gulp-all-tasks's Issues

I've been giving a look to your new Gulp plugin, here's some questions.

Hi Joel, I've been giving a look to your new Gulp plugin, here's some questions:

Could you help me with something I can't get it into your code.

Why you use double semicolons ";;", at the end of that statement on line 18 in "index.js":

' ' '
return text.replace(regex, replace);;
' ' '

I had another when I was reading your readme.md file:

"You can install any plugin and this module you can convert the name to a function within gulp, For example, if you install grunt-uglify you can use it inside grunt as grunt_uglify()",

This made me to wonder whether can I use Grunt plugins within my Gulp workflow only using "gulp-all-tasks" or you just wrote a tiny issue on your readme file.

Thanks, I hope I've helped a bit.

PS: Have you been using JSHint? I could continue describing some question about "Function name" regarding Camel Case, in both using a Gulp plugin after have added into the gulpfile, and when you replace - for _ .

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.