Skip to content
This repository was archived by the owner on Nov 27, 2025. It is now read-only.

Increase karma-requirejs version#129

Closed
shaohua wants to merge 16 commits intoangular:masterfrom
shaohua:patch-1
Closed

Increase karma-requirejs version#129
shaohua wants to merge 16 commits intoangular:masterfrom
shaohua:patch-1

Conversation

@shaohua
Copy link
Contributor

@shaohua shaohua commented Mar 14, 2014

Running into this error

npm ERR! peerinvalid The package karma-requirejs does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer karma@0.10.10 wants karma-requirejs@~0.2.0

IgorMinar and others added 14 commits March 7, 2014 16:30
- add ngApp directive to bootstrap the app
- add simple template with an expression
- Added static html list with two phones into index.html
- Converted the static html list into dynamic one by:
  - creating PhoneListCtrl controller for the application
  - extracting the data from HTML into a the controller as an in-memory
    dataset
  - converting the static document into a template with the use of
    `[ngRepeat]` [directive] which iterates over the dataset with phones,
    clones the ngRepeat template for each instance and renders it into the
    view
- Added a simple unit test to show off how to write tests and run them
  with JsTD (see README.md for instructions)
- Added a search box to demonstrate how:
  - the data-binding works on input fields
  - to use [filter] filter
  - [ngRepeat] automatically shrinks and grows the number of phones in the view
- Added an end-to-end test to:
  - show how end-to-end tests are written and used
  - to prove that the search box and the repeater are correctly wired together
- Add "age" property to the phone model
- Add select box to control phone list order
- Override the default order value in controller
- Add unit and e2e test for this feature
- Replaced the in-memory dataset with data loaded from the server (in
  the form of static phone.json file to make this tutorial backend
  agnostic)
  - The json file is loaded using the [$http] service
- Demonstrate the use of [services][service] and [dependency injection][DI]
  - The [$http] is injected into the controller through [dependency injection][DI]
- adding phone image and links to phone pages
- add end2end test that verifies our phone links
- css to style the page just a notch
- Introduce the [$route] service which allows binding URLs for deep-linking with
  views
  - Create PhoneCatCtrl which governs the entire app and contains $route
    configuration
  - Load the ngRoute module
  - Map `/phones' to PhoneListCtrl and partails/phones-list.html
  - Map `/phones/<phone-id>' to PhoneDetailCtrl and partails/phones-detail.html
  - Copy deep linking parameters to root controller `params` property for access
    in sub controllers
  - Replace content of index.html with [ngView] directive

- Create phone list route
  - Preserve existing PhoneListCtrl controller
  - Move existing html from index.html to partials/phone-list.html
- Create phone details route
  - Empty placeholder PhoneDetailsCtrl controller
  - Empty placeholder partials/phane-details.html template
- Fetch data for and render phone detail view
  - PhoneDetailCtrl controller to fetch details json with [$xhr] for a specific
    phone
  - template for the phone detailed view
- CSS to make the phone details page look "pretty"
- Added custom checkmark filter
- Update phone detail template to use checkmark filter
- Added spec for the filter
In the phone detail view, clicking on a thumbnail image, changes the
main phone image to be the large version of the thumbnail image.

- Define mainImageUrl model variable in the PhoneDetailCtrl and set its
  default value
- Create setImage controller method to change mainImageUrl
- Register ng:click handler for thumb images to use setImage controller
  method
- Add e2e tests for this feature
- Add css to change the mouse cursor when user points at thumnail images
- Replaced [$xhr] with [$resource]
- Created a custom Phone service that represents the $resource client
Running into this error
```
npm ERR! peerinvalid The package karma-requirejs does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer karma@0.10.10 wants karma-requirejs@~0.2.0

```
@timabell
Copy link

I've tripped over the same thing. Error log and fix: https://gist.github.com/timabell/9607546
Any chance this could be merged in to save others tripping over it? Errors in step 0 of the tutorial is kinda mean :-)

@gionn
Copy link

gionn commented Mar 18, 2014

Yay! The tutorial is currently broken.

@JJJollyjim
Copy link

This is a serious issue, it needs to be merged 5 days ago. This is giving the appearance of a broken and unmaintained project to the people who have just decided to try and learn about it.

@binarydev
Copy link

EDIT: Nevermind, didn't realize that the other commits were actually not from this user's pull request but previous repo activity

@gionn
Copy link

gionn commented Mar 19, 2014

@IgorMinar @tbosch @petebacondarwin anyone that has a minute to review this one-line fix?

@caitp caitp closed this in 3c0051c Mar 19, 2014
caitp pushed a commit that referenced this pull request Mar 19, 2014
Fixes peerDependency issue:

```
npm ERR! peerinvalid The package karma-requirejs does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer karma@0.10.10 wants karma-requirejs@~0.2.0

```

Closes #129
@petebacondarwin
Copy link
Contributor

Nice one Caitlin
On 19 Mar 2014 22:01, "Caitlin Potter" notifications@github.com wrote:

Closed #129 #129 via
3c0051chttps://github.com/angular/angular-phonecat/commit/3c0051ca9d9995b7271a056b3c19df751f3bfc16
.

Reply to this email directly or view it on GitHubhttps://github.com//pull/129
.

petebacondarwin pushed a commit that referenced this pull request Mar 24, 2014
Fixes peerDependency issue:

```
npm ERR! peerinvalid The package karma-requirejs does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer karma@0.10.10 wants karma-requirejs@~0.2.0

```

Closes #129
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants