mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
Merge pull request #1 from rashidkpc/master
Ad jshint grunt task, point couier-test at _all
This commit is contained in:
commit
8da32abf6a
4 changed files with 28 additions and 3 deletions
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
19
tasks/config/jshint.js
Normal file
19
tasks/config/jshint.js
Normal file
|
@ -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
tasks/default.js
Normal file
4
tasks/default.js
Normal file
|
@ -0,0 +1,4 @@
|
|||
// Lint and build CSS
|
||||
module.exports = function(grunt) {
|
||||
grunt.registerTask('default', ['jshint:source']);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue