mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
Add default jshint grunt task. Remove promise from mapper
This commit is contained in:
parent
082426acc9
commit
63ebfd9852
3 changed files with 27 additions and 2 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;
|
||||
|
|
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