How to use bower

Comprehensive bower code examples:

How to use bower.commands:

167
168
169
170
171
172
173
174
175
176
177


gulp.task('refresh-bower', () => {
  return del('bower_components').then(() => {
    let resolve, reject;
    let p = new Promise((res, rej) => {resolve = res; reject = rej});
    bower.commands.install().on('end', () => resolve()).on('error', (e) => reject(e));
    return p;
  });
});