What is the principle of wiredep?

Due to the fact that only here, to my surprise, I received answers to the questions, you can truthfully say that this resource is the most highly advanced users. Oh and not to mention design, though yesterday I even question wanted to ask about it, but decided to postpone until "later".

In General, I have a question - there is a wonderful library ( I think she's great, but I could be wrong with her destiny ) wiredep, which should connect itself to the library. On githab like in the readme, everything is clear written
but I can't do anything. That's how I did
the way I have not yet remade ( remake when it out completely ) and the project looks like
proj/
-compiled/
--bower_components/
--src/
---index.html // To him I try to connect library
-gulp-tasks/
--default-gulp-task.js

index.html



 <meta charset="UTF-8">
<title>Document</title>
 <!-- bower:js -->
 <!-- endbower -->





And here is an excerpt of code from default-gulp-task.js
gulp.task('wiredep', function(){
console.log('wiredep');
gulp.src('../compiled/index.html')
.pipe(wiredep({
directory:'../compiled/bower_components',
js:['../compiled/bower_components/angular/angular.js']
}))
.pipe(gulp.dest('../compiled/src/'))
});


But it is not working.. Why?
September 26th 19 at 11:40
2 answers
September 26th 19 at 11:42
Solution
That's what illiterate thought-out project tree... Again half the day was spent on finding bugs:) Say again will not, maybe someone wants to practice mindfulness)
September 26th 19 at 11:44
I believe it was necessary to put bower_components inside src

Find more questions by tags JavaScript