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

Bower install #50

Closed
PunkHaz4rd opened this issue Jun 28, 2016 · 3 comments
Closed

Bower install #50

PunkHaz4rd opened this issue Jun 28, 2016 · 3 comments

Comments

@PunkHaz4rd
Copy link

People should be able to install it with bower.

@NicolasRannou
Copy link
Member

Yes it is not published to bower, however you can just get it from Github with bower:

bower install FNNDSC/AMI#master

#master is the latest release, you can also target specific tags like.

bower install FNNDSC/AMI#v0.0.8"

Please re-open if something doesn't work.

Thanks for filling the report!

@PunkHaz4rd
Copy link
Author

PunkHaz4rd commented Jun 28, 2016

So I have installed it with bower, though I stumble when I try to integrate it with gulp.

I understand the need to use browserify and stuff, but I don't really know how to integrate them in my tasks.

The way it is now, I use bowerFiles(), and in production, there's a bug with ngAnnotate.
How should I include the build of the library in this kind of task :

pipes.builtVendorScriptsDev = function() {
    return gulp.src(bowerFiles())
    .pipe(gulp.dest('dist.dev/bower_components'));
};

Thanks

@NicolasRannou
Copy link
Member

The easy way is just to use the already browserified version (that still needs to be optimized though...)

Just include dist/ami.js in your app then use AMI as we do in the lessons.

For instance: http://jsfiddle.net/gh/get/library/pure/fnndsc/ami/tree/master/lessons/01#run

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