Commit 28280527 authored by Addy Osmani's avatar Addy Osmani

Merge pull request #1311 from tastejs/angular-devdeps

Angular: update `package.json`
parents cad86785 fac4b53d
......@@ -7,6 +7,8 @@ node_modules/angular-route/*
!node_modules/angular-route/angular-route.js
node_modules/angular-mocks/*
node_modules/karma/*
node_modules/.bin/*
node_modules/todomvc-app-css/*
!node_modules/todomvc-app-css/index.css
......
......@@ -114,7 +114,12 @@
})({});
if (location.hostname === 'todomvc.com') {
window._gaq = [['_setAccount','UA-31081062-1'],['_trackPageview']];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)}(document,'script'));
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-31081062-1', 'auto');
ga('send', 'pageview');
}
/* jshint ignore:end */
......@@ -228,7 +233,7 @@
xhr.onload = function (e) {
var parsedResponse = JSON.parse(e.target.responseText);
if (parsedResponse instanceof Array) {
var count = parsedResponse.length
var count = parsedResponse.length;
if (count !== 0) {
issueLink.innerHTML = 'This app has ' + count + ' open issues';
document.getElementById('issue-count').style.display = 'inline';
......
{
"private": true,
"scripts": {
"test": "karma start test/config/karma.conf.js"
},
"dependencies": {
"angular": "^1.3.12",
"todomvc-common": "^1.0.0",
"todomvc-app-css": "^1.0.1"
"todomvc-app-css": "^1.0.1",
"angular-route": "^1.3.12"
},
"devDependencies": {
"angular-mocks": "^1.3.12",
"angular-route": "^1.3.12"
"angular-mocks": "^1.3.12",
"karma": "^0.10.0"
}
}
......@@ -34,3 +34,12 @@ Get help from other AngularJS users:
* [AngularjS on Google +](https://plus.google.com/+AngularJS/posts)
_If you have other helpful links to share, or find any of the links above no longer work, please [let us know](https://github.com/tastejs/todomvc/issues)._
## Testsuite
The app uses [Karma](http://karma-runner.github.io/0.12/index.html) to run the tests located in the `test/` folder. To run the tests:
```
$ npm install
$ npm test
```
{
"name": "todomvc-angular-tests",
"description": "Unit tests for the AngularJS example of TodoMVC",
"author": "Pascal Hartig <phartig@rdrei.net>",
"version": "1.0.0",
"devDependencies": {
"karma": "^0.10.0"
},
"scripts": {
"test": "karma start config/karma.conf.js"
},
"dependencies": {}
}
Angular Unit Tests
==================
To run the test suite, run these commands:
npm install
npm test
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment