Conform project and config files to coding convention
This commit is contained in:
parent
16f55b012f
commit
6ec305ea9f
1
.gitignore
vendored
1
.gitignore
vendored
@ -8,3 +8,4 @@ tmp
|
|||||||
*.swp
|
*.swp
|
||||||
app/assets/css
|
app/assets/css
|
||||||
.sass-cache/
|
.sass-cache/
|
||||||
|
out/
|
||||||
|
25
Gruntfile.js
25
Gruntfile.js
@ -2,6 +2,10 @@
|
|||||||
|
|
||||||
module.exports = function (grunt) {
|
module.exports = function (grunt) {
|
||||||
|
|
||||||
|
grunt.loadNpmTasks('grunt-contrib-sass');
|
||||||
|
grunt.loadNpmTasks('grunt-contrib-watch');
|
||||||
|
grunt.loadNpmTasks('grunt-jslint');
|
||||||
|
|
||||||
grunt.initConfig({
|
grunt.initConfig({
|
||||||
|
|
||||||
pkg: grunt.file.readJSON('package.json'),
|
pkg: grunt.file.readJSON('package.json'),
|
||||||
@ -12,7 +16,6 @@ module.exports = function(grunt) {
|
|||||||
css: ['<%= project.assets %>/sass/app.scss']
|
css: ['<%= project.assets %>/sass/app.scss']
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
sass: {
|
sass: {
|
||||||
dev: {
|
dev: {
|
||||||
options: {
|
options: {
|
||||||
@ -36,6 +39,8 @@ module.exports = function(grunt) {
|
|||||||
|
|
||||||
client: {
|
client: {
|
||||||
src: [
|
src: [
|
||||||
|
'karma.conf.js',
|
||||||
|
'Gruntfile.js',
|
||||||
'app/app.js',
|
'app/app.js',
|
||||||
'app/**/*.js'
|
'app/**/*.js'
|
||||||
],
|
],
|
||||||
@ -43,9 +48,13 @@ module.exports = function(grunt) {
|
|||||||
'app/bower_components/**/*.js',
|
'app/bower_components/**/*.js',
|
||||||
'app/assets/**/*'
|
'app/assets/**/*'
|
||||||
],
|
],
|
||||||
directives: { // example directives
|
directives: {
|
||||||
node: true,
|
node: true,
|
||||||
todo: true
|
unparam: true, // TEMPORARY: Ignore unused params
|
||||||
|
predef: [ // Global variables
|
||||||
|
'angular', 'inject', 'JustGage',
|
||||||
|
'describe', 'beforeEach', 'it', 'expect'
|
||||||
|
]
|
||||||
},
|
},
|
||||||
options: {
|
options: {
|
||||||
edition: 'latest', // specify an edition of jslint or use 'dir/mycustom-jslint.js' for own path
|
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.registerTask('default', [ 'watch', 'jslint' ]);
|
||||||
grunt.loadNpmTasks('grunt-contrib-watch');
|
|
||||||
grunt.loadNpmTasks('grunt-jslint');
|
|
||||||
|
|
||||||
grunt.registerTask('default', 'jslint');
|
|
||||||
grunt.registerTask('default', [
|
|
||||||
'watch'
|
|
||||||
]);
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
/*global angular*/
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('adagios', [
|
angular.module('adagios', [
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
/*global angular*/
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('adagios.live', [])
|
angular.module('adagios.live', [])
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
/*global angular, JustGage*/
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module("ngJustGage", [])
|
angular.module("ngJustGage", [])
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
/*global angular*/
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('adagios.navbar', ['adagios.live'])
|
angular.module('adagios.navbar', ['adagios.live'])
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
/*global describe, beforeEach, it, inject, expect*/
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
describe('Navbar module', function () {
|
describe('Navbar module', function () {
|
||||||
|
@ -1,10 +1,9 @@
|
|||||||
/*global angular*/
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('adagios.sidebar', [])
|
angular.module('adagios.sidebar', [])
|
||||||
|
|
||||||
.controller('SideBarCtrl', ['$scope', '$http', function ($scope, $http) {
|
.controller('SideBarCtrl', ['$scope', '$http', function ($scope, $http) {
|
||||||
|
return;
|
||||||
}])
|
}])
|
||||||
|
|
||||||
.directive('sidebar', function () {
|
.directive('sidebar', function () {
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
/*global describe, beforeEach, it, inject, expect*/
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
describe('Sidebar module', function () {
|
describe('Sidebar module', function () {
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
/*global angular*/
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('adagios.tactical.current_health', ['ngRoute', 'ngJustGage' ])
|
angular.module('adagios.tactical.current_health', ['ngRoute', 'ngJustGage' ])
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
/*global describe, beforeEach, it, inject, expect*/
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
describe('Current Health tactical submodule', function () {
|
describe('Current Health tactical submodule', function () {
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
/*global angular*/
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('adagios.tactical.status_overview', ['ngRoute' ])
|
angular.module('adagios.tactical.status_overview', ['ngRoute' ])
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
/*global describe, beforeEach, it, inject, expect*/
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
describe('Status Overview tactical submodule', function () {
|
describe('Status Overview tactical submodule', function () {
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
/*global angular*/
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('adagios.tactical', ['ngRoute',
|
angular.module('adagios.tactical', ['ngRoute',
|
||||||
@ -15,4 +14,5 @@ angular.module('adagios.tactical', ['ngRoute',
|
|||||||
}])
|
}])
|
||||||
|
|
||||||
.controller('TacticalCtrl', ['$scope', '$http', function ($scope, $http) {
|
.controller('TacticalCtrl', ['$scope', '$http', function ($scope, $http) {
|
||||||
|
return;
|
||||||
}]);
|
}]);
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
/*global describe, beforeEach, it, inject, expect*/
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
describe('Tactical module', function () {
|
describe('Tactical module', function () {
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
/*global angular*/
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('adagios.tactical.top_alert_producers', ['ngRoute' ])
|
angular.module('adagios.tactical.top_alert_producers', ['ngRoute' ])
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
/*global describe, beforeEach, it, inject, expect*/
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
describe('Top Alert Producer tactical submodule', function () {
|
describe('Top Alert Producer tactical submodule', function () {
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
module.exports = function (config) {
|
module.exports = function (config) {
|
||||||
config.set({
|
config.set({
|
||||||
|
|
||||||
@ -10,7 +12,7 @@ module.exports = function(config){
|
|||||||
'app/components/**/*.js',
|
'app/components/**/*.js',
|
||||||
'app/navbar/**/*.js',
|
'app/navbar/**/*.js',
|
||||||
'app/sidebar/**/*.js',
|
'app/sidebar/**/*.js',
|
||||||
'app/tactical/**/*.js',
|
'app/tactical/**/*.js'
|
||||||
],
|
],
|
||||||
|
|
||||||
autoWatch : true,
|
autoWatch : true,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user