mirror of
https://github.com/iv-org/videojs-quality-selector.git
synced 2025-05-12 19:22:37 -04:00
chore: add @silvermine/standardization and configuration
This commit is contained in:
parent
cc87e2ca27
commit
e2b3735a9c
5 changed files with 1119 additions and 414 deletions
30
Gruntfile.js
30
Gruntfile.js
|
@ -6,8 +6,7 @@
|
|||
'use strict';
|
||||
|
||||
var path = require('path'),
|
||||
getCodeVersion = require('silvermine-serverless-utils/src/get-code-version'),
|
||||
markdownlint = require('markdownlint');
|
||||
getCodeVersion = require('silvermine-serverless-utils/src/get-code-version');
|
||||
|
||||
const sass = require('sass');
|
||||
|
||||
|
@ -110,17 +109,6 @@ module.exports = function(grunt) {
|
|||
dist: config.dist.base,
|
||||
},
|
||||
|
||||
eslint: {
|
||||
target: config.js.all,
|
||||
},
|
||||
|
||||
stylelint: {
|
||||
options: {
|
||||
configFile: path.join(__dirname, 'node_modules', '@silvermine', 'standardization', '.stylelintrc.yml'),
|
||||
},
|
||||
src: config.sass.all,
|
||||
},
|
||||
|
||||
watch: {
|
||||
grunt: {
|
||||
files: [ 'Gruntfile.js' ],
|
||||
|
@ -137,31 +125,15 @@ module.exports = function(grunt) {
|
|||
tasks: [ 'build-css' ],
|
||||
},
|
||||
},
|
||||
|
||||
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');
|
||||
grunt.loadNpmTasks('grunt-contrib-watch');
|
||||
grunt.loadNpmTasks('grunt-browserify');
|
||||
grunt.loadNpmTasks('grunt-eslint');
|
||||
grunt.loadNpmTasks('grunt-postcss');
|
||||
grunt.loadNpmTasks('grunt-contrib-clean');
|
||||
grunt.loadNpmTasks('grunt-sass');
|
||||
grunt.loadNpmTasks('grunt-stylelint');
|
||||
grunt.loadNpmTasks('grunt-markdownlint');
|
||||
|
||||
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