@silvermine/serverless-plugin-cloudfront-lambda-edge
Version:
Plugin for the SLS 1.x branch to provide support for Lambda@Edge (not currently supported by CloudFormation
42 lines (29 loc) • 829 B
JavaScript
var markdownlint = require('markdownlint');
module.exports = function(grunt) {
var config;
config = {
js: {
all: [ 'Gruntfile.js', 'src/**/*.js', '!**/node_modules/**/*' ],
},
};
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
eslint: {
target: config.js.all,
},
markdownlint: {
all: {
src: [ 'README.md' ],
options: {
// eslint-disable-next-line no-sync
config: markdownlint.readConfigSync('.markdownlint.json'),
},
},
},
});
grunt.loadNpmTasks('grunt-eslint');
grunt.loadNpmTasks('grunt-markdownlint');
grunt.registerTask('standards', [ 'eslint', 'markdownlint' ]);
grunt.registerTask('default', [ 'standards' ]);
};
;