Vue-select: No bower support?

Created on 24 Apr 2016  路  5Comments  路  Source: sagalbot/vue-select

Hello,

any luck for bower support?

question

All 5 comments

I'm not sure it makes sense to publish to Bower, since Vue Select is designed to be used within a browserify/webpack environment where you are requiring/importing CommonJS modules and transforming with vue-loader/vueify. It looks like there are plugins to get browserify/webpack to work with bower, but you need to use npm packages to get either of those to work.

I guess my question is how are you compiling your Vue project now? Vue Select isn't available as a standalone plugin at the moment so it needs to be required into your build. That may change in the future but at the moment I think that's the most common use case.

If there's a common need for bower support I'm definitely open to publishing there, but I personally haven't used Bower since switching over to an npm/browserify workflow.

Hello,

after deeper look, I must agree. This uses vueify, so no need to support bower, since bower was not supposed to build this, probably...

So I think I would need to use npm, and the require the stuff.

Waht I use now is laravel-elixir, to build the stuff.
But as stated, here we need npm, so I am closing this.

One moment I am still strugling to switching fully no npm, how would I handle both backend dependencies and frontend. Somehow not willing to mix them...

If you're using Laravel elixir you can leverage npm pretty nicely to pull in your sass/css resources. Here's an example:

elixir(function (mix) {

  //  Compile Vue
  mix.browserify('vue.js' )

  //  Copy bootstrap fonts and sass assets
  mix.copy('node_modules/bootstrap/fonts/*.*', 'public/fonts/')
  mix.copy('node_modules/bootstrap-sass/assets/stylesheets', 'resources/assets/sass/vendor/bootstrap/')

  //  Compile sass
  mix.sass('app.scss', 'public/css/app.css')

});

On the other hand, I've used bower + npm together in the past with no issues. It's nice having everything in one place, but if you should use whatever method works best for you. If that means using both - go for it.

@huglester just an FYI, v1.2.0 introduces a UMD bundle that I'll likely be publishing to Bower very soon.

Please support bower install

Was this page helpful?
0 / 5 - 0 ratings

Related issues

xuwenhao picture xuwenhao  路  3Comments

rafalolszewski94 picture rafalolszewski94  路  3Comments

mattWalters0 picture mattWalters0  路  3Comments

davidalvarezr picture davidalvarezr  路  3Comments

rudykaze picture rudykaze  路  3Comments