F
F
fliginskih2015-04-19 03:53:14
Node.js
fliginskih, 2015-04-19 03:53:14

Gulp task, how to get parent folder name?

...
config = require('../config').html;

gulp.task('html', function(cb) {

    // берём все jade-файлы из директории config.src = /static/source/html/
    gulp.src(config.src + '**/*.jade')

...

/static/source/html/
- design/
- - folder1/
- - - ...
- - - index.jade
- - folder2/
- - - ...
- - - index.jade
...
How to get parent folder name the first *.jade in the tree ?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question