Skip to content

Commit

Permalink
Merge pull request #1 from rashidkpc/master
Browse files Browse the repository at this point in the history
Ad jshint grunt task, point couier-test at _all
  • Loading branch information
Rashid Khan committed Feb 13, 2014
2 parents 082426a + c608bfa commit 150ceae
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/courier/mapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,16 @@ define(function (require) {
*/
function Mapper(index, type) {
this.indices = function () {
return new Promise(function (resolve, reject) {

});
};

this.getFields = function () {

};

this.getFieldType = function (field, type) {
return field, type;
};
}

return Mapper;
Expand Down
2 changes: 1 addition & 1 deletion src/kibana/controllers/kibana.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ define(function (require) {
angular.module('kibana/controllers')
.controller('Kibana', function (courier, $scope, $rootScope) {
$rootScope.dataSource = courier.createSource()
.index('logstash-2014.02.13')
.index('_all')
.size(5);

setTimeout(courier.start, 15);
Expand Down
19 changes: 19 additions & 0 deletions tasks/config/jshint.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
module.exports = function(config) {
return {
// just lint the source dir
source: {
files: {
src: ['Gruntfile.js', '<%= root %>/src/**/*.js']
}
},
options: {
jshintrc: '<%= root %>/.jshintrc',
ignores: [
'node_modules/*',
'dist/*',
'sample/*',
'<%= root %>/src/bower_components/**/*'
]
}
};
};
4 changes: 4 additions & 0 deletions tasks/default.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// Lint and build CSS
module.exports = function(grunt) {
grunt.registerTask('default', ['jshint:source']);
};

0 comments on commit 150ceae

Please sign in to comment.