Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Paths #57

Open
360disrupt opened this issue Sep 14, 2016 · 0 comments
Open

Question: Paths #57

360disrupt opened this issue Sep 14, 2016 · 0 comments

Comments

@360disrupt
Copy link

360disrupt commented Sep 14, 2016

What is considered as a destination?
Do for example both cases work:

  1. All files no matter where the come from go into one directory:
    e.g.
 var dest1 = paths.tmp + '/serve/assets/json/'
  gulp.src(paths.src + '/frontend/**/*.json')
    .pipe($.changed(dest1))
    .pipe($.rename({dirname: ''}))
    .pipe(gulp.dest(dest1));
  1. All files go into their relative directories
    e.g.
 var dest1 = paths.tmp + '/serve/'
  gulp.src(paths.src + '/frontend/**/*.json')
    .pipe($.changed(dest1))
    .pipe(gulp.dest(dest1));

I just found this on renaming the file itself:
#56

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant