SlickGrid icon indicating copy to clipboard operation
SlickGrid copied to clipboard

Can we create bower package

Open cajoy opened this issue 11 years ago • 11 comments

Would be good to have bower.json in repo for easier import

cajoy avatar Oct 28 '15 16:10 cajoy

It's a good idea but I'm not familiar with bower packaging. I had a look and there are quite a few of the variant slickgrid repos on bower already. Some of them just have a homepage defined, no install files.

I'm not sure how detailed the 'main' section should be. For example, do we list the main grid files and css, plus all the controls and plugins, AND all the slick-specific image files ? That's going to be a lot of files.

6pac avatar Nov 09 '15 22:11 6pac

@cajoy You should be able to pull in the necessary files to your project even before a bower package gets made officially.

In your bower.json you can specify non-bower urls you want to pull in, and then in overrides you could specify the specific files needed for your project. For example, when using the dependencies in the basic example, your bower.json might look like this:

// bower.json
"dependencies": {
  "slickgrid": "https://github.com/6pac/SlickGrid.git"
},
"overrides": {
  "slickgrid": {
    "main": [
      "./slick.grid.css",
      "./css/smoothness/jquery-ui-1.11.3.custom.css",
      "./lib/jquery-1.11.2.min.js",
      "./lib/jquery.event.drag-2.2.js",
      "./slick.core.js",
      "./slick.grid.js"
    ]
  }
}

Though instead of including ./lib/jquery-1.11.2.min.js as an override for slickgrid you would probably just include that as a dependency in your own project.

zachgibb avatar Dec 14 '15 21:12 zachgibb

Please spend some time to get this fork on Bower as this should be the new defacto Bower package for SlickGrid. :)

ajdalshov avatar Apr 27 '16 13:04 ajdalshov

anyone an expert on Bower who can make up a file I can pull? I've had a look and not sure how to deal with the dependencies. Just don't have a lot of time to learn Yet Another New Thing i'm not going to use myself.

6pac avatar Apr 28 '16 02:04 6pac

~~To register as a bower component you need to use semver git tags.~~ Nevermind I'm a fool, was looking at branches and not tags.

Not an "expert" on bower but I might take a crack at making a bower file.

Custodia avatar Apr 28 '16 06:04 Custodia

We're on semver anyway. Any bower file attempts would be appreciated, we can workshop it perhaps. I can make educated guesses, but being primarily an MS Visual Studio developer the tools do it all for me, I think NuGet is the builtin package manager, and I have no personal need for bower, so I'm not familiar with it.

6pac avatar Apr 28 '16 13:04 6pac

Disclaimer: I don't know if this correct.

Here's one version, can somebody test it? https://github.com/gbelmm/SlickGrid/blob/master/bower.json

henkli avatar Apr 29 '16 09:04 henkli

@henkli that's just the default template and it's pointing to a wrong repository

Custodia avatar Apr 29 '16 13:04 Custodia

Thanks everyone for your input. I have read both the suggestions, and also checked out some tutes, and installed bower on my OSX drive. I'll try the suggestions in action and fine tune them.

6pac avatar May 03 '16 04:05 6pac

Bower is now deprecated as per an open issue on their Github, please read the last comment at the end of the discussion.

So the current issue and open Bower PR #34 should be closed.

Here's the quote from the Bower issue

@capaj Good idea, I've included the notice in both readme and npm deprecate

I think I'll close this issue now. Please keep in mind that even I don't have much free time, I'll maintain and keep Bower alive, so all current projects that use Bower, will continue to work.

Not to say I'd block anyone if she/he wanted to to take some extra responsibility for Bower's future (i.e. maintaining/developing it). If you feel like so, please e-mail me at: [email protected]

If you'd like to discuss something else publicly, please open another issue, this one is a mess.

Also an article on the Bower Blog - How to migrate away from Bower

ghiscoding avatar Oct 05 '17 02:10 ghiscoding

Closing since as it was mentioned in previous post, Bower is deprecated (but still maintained, for now)

ghiscoding avatar Feb 27 '18 04:02 ghiscoding