Authored by ccbikai(👎🏻🍜)

完善日志

@@ -11,11 +11,11 @@ const jsfiles = ['.', 'public/vue']; @@ -11,11 +11,11 @@ const jsfiles = ['.', 'public/vue'];
11 const cssfiles = ['public/scss/**/*.css', 'public/vue/**/*.vue']; 11 const cssfiles = ['public/scss/**/*.css', 'public/vue/**/*.vue'];
12 12
13 jsfiles.forEach(function(filepath) { 13 jsfiles.forEach(function(filepath) {
14 - console.log('JS 检查结果:'); 14 + console.log(`JS ${filepath} 检查结果:`);
15 shelljs.exec(`${lintPath.js}${ext} -f table -c .eslintrc --cache ${filepath}`); 15 shelljs.exec(`${lintPath.js}${ext} -f table -c .eslintrc --cache ${filepath}`);
16 }); 16 });
17 17
18 cssfiles.forEach(function(filepath) { 18 cssfiles.forEach(function(filepath) {
19 - console.log('CSS 检查结果:'); 19 + console.log(`CSS ${filepath} 检查结果:`);
20 shelljs.exec(`${lintPath.css}${ext} --syntax scss --config .stylelintrc --custom-formatter ./node_modules/stylelint-formatter-table/index.js '${filepath}'`); // eslint-disable-line 20 shelljs.exec(`${lintPath.css}${ext} --syntax scss --config .stylelintrc --custom-formatter ./node_modules/stylelint-formatter-table/index.js '${filepath}'`); // eslint-disable-line
21 }); 21 });