Browse Source

Updating this dumb gruntfile to stop throwing jshint errors. now I am getting other errors.

master
Charles Reid 10 years ago
parent
commit
862448281f
  1. 43
      angular-metro-app/Gruntfile.js
  2. 19
      angular-metro-app/app/scripts/controllers/about.js
  3. 2
      angular-metro-app/bower.json
  4. 2
      angular-metro-app/test/spec/controllers/about.js
  5. 2
      angular-metro-app/test/spec/controllers/main.js

43
angular-metro-app/Gruntfile.js vendored

@ -115,25 +115,40 @@ module.exports = function (grunt) { @@ -115,25 +115,40 @@ module.exports = function (grunt) {
},
// Make sure code styles are up to par and there are no obvious mistakes
//
// old verison (from yeoman) was cauing error
// fixed via
// https://leanpub.com/grunt/read
jshint: {
options: {
jshintrc: '.jshintrc',
reporter: require('jshint-stylish')
node: true
},
all: {
src: [
'Gruntfile.js',
'<%= yeoman.app %>/scripts/{,*/}*.js'
]
},
test: {
options: {
jshintrc: 'test/.jshintrc'
},
src: ['test/spec/{,*/}*.js']
}
all: [
'Gruntfile.js'
]
},
//jshint: {
// options: {
// node:true,
// jshintrc: '.jshintrc',
// reporter: require('jshint-stylish')
// },
// all: {
// src: [
// 'Gruntfile.js',
// '<%= yeoman.app %>/scripts/{,*/}*.js'
// ]
// },
// test: {
// options: {
// jshintrc: 'test/.jshintrc'
// },
// src: ['test/spec/{,*/}*.js']
// }
//},
// Empties folders to start fresh
clean: {
dist: {

19
angular-metro-app/app/scripts/controllers/about.js vendored

@ -7,11 +7,16 @@ @@ -7,11 +7,16 @@
* # AboutCtrl
* Controller of the myYoProjectApp
*/
angular.module('myYoProjectApp')
.controller('AboutCtrl', function ($scope) {
$scope.awesomeThings = [
'HTML5 Boilerplate',
'AngularJS',
'Karma'
];
//angular.module('myYoProjectApp')
// .controller('AboutCtrl', function ($scope) {
// $scope.awesomeThings = [
// 'HTML5 Boilerplate',
// 'AngularJS',
// 'Karma'
// ];
// });
angular.module('mytodoApp')
.controller('MainCtrl', function ($scope) {
$scope.todos = ['Item 1', 'Item 2', 'Item 3'];
});

2
angular-metro-app/bower.json

@ -17,5 +17,5 @@ @@ -17,5 +17,5 @@
"angular-mocks": "^1.3.0"
},
"appPath": "app",
"moduleName": "myYoProjectApp"
"moduleName": "mytodoApp"
}

2
angular-metro-app/test/spec/controllers/about.js vendored

@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
describe('Controller: AboutCtrl', function () {
// load the controller's module
beforeEach(module('myYoProjectApp'));
beforeEach(module('mytodoApp'));
var AboutCtrl,
scope;

2
angular-metro-app/test/spec/controllers/main.js vendored

@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
describe('Controller: MainCtrl', function () {
// load the controller's module
beforeEach(module('myYoProjectApp'));
beforeEach(module('mytodoApp'));
var MainCtrl,
scope;

Loading…
Cancel
Save