Giter VIP home page Giter VIP logo

gulp-sync's People

Contributors

jaysalvat avatar kaminaly avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

gulp-sync's Issues

Clarify how nested arrays work

In your documentation, are you saying that you give to gulpSync.sync( ) or gulpSync.async( ) as series of nested task names? And that each level of depth within that data structure alternates between running tasks synchronously or asyncronously?

If so, I think stating how it works more explicitly in words would be more useful than giving a single example with some comments.

how to run a task after sync completes

//build app into ./dist directory
gulp.task('build:dist', gulpsync.sync([
  'clean:dist',
  'build:less',
  'copy:dist'
]));

I want to run a task after copy:dist completes.

Pass parameters into tasks

Is there a way to pass params into the task?
For instance

gulp.task('default', gulpsync.sync(['a --platform desktop', 'b', 'c']))

gulp task with gulp-sync emit error while finishing first task

task1 works,while before run task2 it emit an error says 'cb is not a function',run task2 alone doesn't show any warn or error.

[11:11:58] Finished 'task1' after 208 μs
[11:11:58] 'sync group0:0' errored after 1.93 ms
[11:11:58] TypeError: cb is not a function

gulpfile scripts as below:

gulp.task('default',gulpsync.sync(['task1','task2']))

there's no any 'cb' keyword in my gulpfile.

node -v: v4.2.1
gulp -v: version 3.9.0

Synced tasks not waiting for complete finish before continuing

If I do a delete, then a write, sometimes the write errors because the file being written is also being deleted at the same time.

Example:

gulp.task('html.rebuild', $.synchronize.sync([
    'html.clean',
    'html.build'
]));

In this example, clean removes the file and build will create the file. Clean is finishing up at the time build runs. It doesn't always happen, but it happens enough to be bothersome; especially when I run a bunch of async synced tasks at once.

Name should be optional parameter

If I run t1 and t2

gulp.task('t1', gulpsync.sync(['a', 'b', 'c']));
gulp.task('t2', gulpsync.sync(['d', 'e', 'f']));

d, e, f only will be run.

I need name tasks

gulp.task('t1', gulpsync.sync(['a', 'b', 'c'], 'sync t1'));
gulp.task('t2', gulpsync.sync(['d', 'e', 'f'], 'sync t2'));

It uncomfortable. Name should be optional parameter

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.