Files
elasticsearch-js/Gruntfile.js
Spencer 7c1573fb07 Use standard and prettier (#10)
* switch from custom eslint config to standard + prettier

* fix new standard eslint violations

* add editorconfig file

* auto-fix all other violations

* update lint yarn script

* remove jshint comment
2019-07-09 13:24:13 -07:00

25 lines
780 B
JavaScript

const { resolve } = require('path');
module.exports = function(grunt) {
// load plugins
require('load-grunt-config')(grunt, {
configPath: resolve(__dirname, 'grunt/config'),
init: true,
config: {
distDir: resolve(__dirname, 'dist'),
bowerSubmodule: resolve(__dirname, 'src/bower_es_js'),
meta: {
banner:
'/*! <%= package.name %> - v<%= package.version %> - ' +
'<%= grunt.template.today("yyyy-mm-dd") %>\n' +
'<%= package.homepage ? " * " + package.homepage + "\\n" : "" %>' +
' * Copyright (c) <%= grunt.template.today("yyyy") %> <%= package.author.company %>;' +
' Licensed <%= package.license %> */\n',
},
},
});
// load task definitions
grunt.loadTasks('grunt');
};