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

migration blocked by gulp and 'main-bower-files` #13

Open
ragesoss opened this issue Oct 13, 2017 · 2 comments
Open

migration blocked by gulp and 'main-bower-files` #13

ragesoss opened this issue Oct 13, 2017 · 2 comments

Comments

@ragesoss
Copy link

I tried using bower-away on my project (https://github.com/WikiEducationFoundation/WikiEduDashboard) but I ran into trouble with dependencies on bower.json. One of the gulp tasks for the build looks like this:

import gulp from 'gulp';
import mainBowerFiles from 'main-bower-files';
import loadPlugins from 'gulp-load-plugins';
const plugins = loadPlugins();
import config from '../config.js';


//--------------------------------------------------------
// Concatenate Bower libraries
//--------------------------------------------------------

gulp.task('bower', () => {
  return gulp.src(mainBowerFiles())
    .pipe(plugins.concat('vendor.js'))
    .pipe(gulp.dest(`${config.outputPath}/${config.jsDirectory}`));
});

This task breaks with bower.json missing, and it doesn't play nicely with the symlinked vendor if I follow the rest of the steps but keep bower.json.

Any pointers on how to work through this?

@sheerun
Copy link
Owner

sheerun commented Oct 14, 2017

bower.json is not missing, but .bower.json could be. might it be the issue?

@sheerun
Copy link
Owner

sheerun commented Oct 19, 2017

The solution would be to create post-install command that creates these files, but really ideally you shoud change your gulp script so it doesn't depend on .bower.json but bower.json

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

2 participants