Add default jshint grunt task. Remove promise from mapper

This commit is contained in:
Rashid Khan 2014-02-12 15:05:34 -07:00
parent 082426acc9
commit 63ebfd9852
3 changed files with 27 additions and 2 deletions

View file

@ -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
View 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
View file

@ -0,0 +1,4 @@
// Lint and build CSS
module.exports = function(grunt) {
grunt.registerTask('default', ['jshint:source']);
};