Conform project and config files to coding convention

This commit is contained in:
Frédéric Vachon 2015-01-15 16:56:37 -05:00
parent 16f55b012f
commit 6ec305ea9f
18 changed files with 65 additions and 75 deletions

1
.gitignore vendored
View File

@ -8,3 +8,4 @@ tmp
*.swp
app/assets/css
.sass-cache/
out/

View File

@ -2,6 +2,10 @@
module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-contrib-sass');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-jslint');
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
@ -12,7 +16,6 @@ module.exports = function(grunt) {
css: ['<%= project.assets %>/sass/app.scss']
},
sass: {
dev: {
options: {
@ -36,6 +39,8 @@ module.exports = function(grunt) {
client: {
src: [
'karma.conf.js',
'Gruntfile.js',
'app/app.js',
'app/**/*.js'
],
@ -43,9 +48,13 @@ module.exports = function(grunt) {
'app/bower_components/**/*.js',
'app/assets/**/*'
],
directives: { // example directives
directives: {
node: true,
todo: true
unparam: true, // TEMPORARY: Ignore unused params
predef: [ // Global variables
'angular', 'inject', 'JustGage',
'describe', 'beforeEach', 'it', 'expect'
]
},
options: {
edition: 'latest', // specify an edition of jslint or use 'dir/mycustom-jslint.js' for own path
@ -60,13 +69,5 @@ module.exports = function(grunt) {
}
});
grunt.loadNpmTasks('grunt-contrib-sass');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-jslint');
grunt.registerTask('default', 'jslint');
grunt.registerTask('default', [
'watch'
]);
grunt.registerTask('default', [ 'watch', 'jslint' ]);
};

View File

@ -1,4 +1,3 @@
/*global angular*/
'use strict';
angular.module('adagios', [

View File

@ -1,4 +1,3 @@
/*global angular*/
'use strict';
angular.module('adagios.live', [])

View File

@ -1,4 +1,3 @@
/*global angular, JustGage*/
'use strict';
angular.module("ngJustGage", [])

View File

@ -1,4 +1,3 @@
/*global angular*/
'use strict';
angular.module('adagios.navbar', ['adagios.live'])

View File

@ -1,4 +1,3 @@
/*global describe, beforeEach, it, inject, expect*/
'use strict';
describe('Navbar module', function () {

View File

@ -1,10 +1,9 @@
/*global angular*/
'use strict';
angular.module('adagios.sidebar', [])
.controller('SideBarCtrl', ['$scope', '$http', function ($scope, $http) {
return;
}])
.directive('sidebar', function () {

View File

@ -1,4 +1,3 @@
/*global describe, beforeEach, it, inject, expect*/
'use strict';
describe('Sidebar module', function () {

View File

@ -1,4 +1,3 @@
/*global angular*/
'use strict';
angular.module('adagios.tactical.current_health', ['ngRoute', 'ngJustGage' ])

View File

@ -1,4 +1,3 @@
/*global describe, beforeEach, it, inject, expect*/
'use strict';
describe('Current Health tactical submodule', function () {

View File

@ -1,4 +1,3 @@
/*global angular*/
'use strict';
angular.module('adagios.tactical.status_overview', ['ngRoute' ])

View File

@ -1,4 +1,3 @@
/*global describe, beforeEach, it, inject, expect*/
'use strict';
describe('Status Overview tactical submodule', function () {

View File

@ -1,4 +1,3 @@
/*global angular*/
'use strict';
angular.module('adagios.tactical', ['ngRoute',
@ -15,4 +14,5 @@ angular.module('adagios.tactical', ['ngRoute',
}])
.controller('TacticalCtrl', ['$scope', '$http', function ($scope, $http) {
return;
}]);

View File

@ -1,4 +1,3 @@
/*global describe, beforeEach, it, inject, expect*/
'use strict';
describe('Tactical module', function () {

View File

@ -1,4 +1,3 @@
/*global angular*/
'use strict';
angular.module('adagios.tactical.top_alert_producers', ['ngRoute' ])

View File

@ -1,4 +1,3 @@
/*global describe, beforeEach, it, inject, expect*/
'use strict';
describe('Top Alert Producer tactical submodule', function () {

View File

@ -1,3 +1,5 @@
'use strict';
module.exports = function (config) {
config.set({
@ -10,7 +12,7 @@ module.exports = function(config){
'app/components/**/*.js',
'app/navbar/**/*.js',
'app/sidebar/**/*.js',
'app/tactical/**/*.js',
'app/tactical/**/*.js'
],
autoWatch : true,