mirror of
https://github.com/iv-org/videojs-quality-selector.git
synced 2025-05-02 22:44:52 -04:00
chore: upgrade standardization and configure markdownlint
This commit is contained in:
parent
263b1f489a
commit
99006b87d3
5 changed files with 425 additions and 261 deletions
17
Gruntfile.js
17
Gruntfile.js
|
@ -6,7 +6,8 @@
|
|||
'use strict';
|
||||
|
||||
var path = require('path'),
|
||||
getCodeVersion = require('silvermine-serverless-utils/src/get-code-version');
|
||||
getCodeVersion = require('silvermine-serverless-utils/src/get-code-version'),
|
||||
markdownlint = require('markdownlint');
|
||||
|
||||
const sass = require('node-sass');
|
||||
|
||||
|
@ -137,6 +138,17 @@ module.exports = function(grunt) {
|
|||
},
|
||||
},
|
||||
|
||||
markdownlint: {
|
||||
all: {
|
||||
// Adjust `src` depending on how many files need to be linted:
|
||||
src: [ 'README.md' ],
|
||||
options: {
|
||||
// eslint-disable-next-line no-sync
|
||||
config: markdownlint.readConfigSync('.markdownlint.json'),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
});
|
||||
|
||||
grunt.loadNpmTasks('grunt-contrib-uglify');
|
||||
|
@ -147,8 +159,9 @@ module.exports = function(grunt) {
|
|||
grunt.loadNpmTasks('grunt-contrib-clean');
|
||||
grunt.loadNpmTasks('grunt-sass');
|
||||
grunt.loadNpmTasks('grunt-stylelint');
|
||||
grunt.loadNpmTasks('grunt-markdownlint');
|
||||
|
||||
grunt.registerTask('standards', [ 'eslint', 'stylelint' ]);
|
||||
grunt.registerTask('standards', [ 'eslint', 'stylelint', 'markdownlint' ]);
|
||||
grunt.registerTask('build-js', [ 'browserify', 'uglify' ]);
|
||||
grunt.registerTask('build-css', [ 'sass', 'postcss' ]);
|
||||
grunt.registerTask('build', [ 'build-js', 'build-css' ]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue