-
-
Notifications
You must be signed in to change notification settings - Fork 255
How to add ng-grid 3.x.x? #46
Comments
Just a first guess, but it seems that the github version won't work unless you do one of the following:
You're in luck. You can use the npm endpoint because the NPM version of ng-grid ships with everything all built for you in the For the npm endpoint option, use an override something along the lines of: {
"main": "build/ng-grid",
"dependencies": ["angular"],
"shim": {
"build/ng-grid": {
"deps": ["angular"]
}
}
} Then after you've installed it from the npm endpoint using that override, you can import "ng-grid"; or require("ng-grid"); depending on which module loading style you're using. |
Thanks for the help, but I believe the version in npm is 2.0.1 and was last updated 2 years ago. It looks like I'll have to take one of the other routes. I believe that I assume it currently is not possible to run It may be easier to just download and build this dependency and manually put it into my project instead of installing it via jspm. |
This is because of https://github.com/angular-ui/ng-grid#how-can-i-test-30. I managed to dig a little deeper and if you follow the repository in the bower.json it takes you to this repo - https://github.com/angular-ui/ui-grid.info/tree/v3.0.0-rc.12. So you should be able to do |
Closing for now, updates on this welcome. |
@guybedford Just wanted to point out here (and that @tauren mentioned) jspm post install scripts to the rescue. |
I was able to install newest RC of ui-grid using @guybedford s suggestion above, however I imagine I need to provide a override to point to the main file similar to what @trusktr suggested? Any update on how to integrate this library using jspm? |
@MikeJoyce19 yes exactly, I'd suggest following an example override like https://github.com/jspm/registry/blob/master/package-overrides/github/angular-translate/bower-angular-translate%402.5.2.json for installing this. You can create that file locally and then install via |
Thanks @guybedford I actually just had that moment of clarity where overrides and all that make complete sense! |
Has anyone gotten this to work recently?
And the github versions are not built, so there's nothing to shim unless you manually build. Is that still the best approach? |
@nlwillia thanks that's a bug I've fixed in jspm/npm@681a964 pending release. |
Thanks! After merging the warning fix in my local jspm, I was able to get this working with:
|
@nlwillia thanks for the update. If you'd like to check that into the registry a PR here is always welcome. |
On reviewing this, I realized that I missed the fact that what's in the registry is not |
When I run
jspm install github:angular-ui/ng-grid
, version 2.0.13 is installed. I am trying to figure out how to create an override that will install version 3.0.0-rc.12. It looks like there is not a github release, so should I be doing ajspm install github:angular-ui/ng-grid@master
? Even when I do that, there is no built file to reference. Assistance is appreciated, thanks!https://github.com/angular-ui/ng-grid
The text was updated successfully, but these errors were encountered: