mirror of
https://github.com/hanzoai/workbox.git
synced 2026-09-24 17:04:35 +00:00
* The contents of v3, reconciled with master. * Remove a few stray files. * Another extra file. * Two more deletions. * Setting up for stable release * v3.0.0 * Updating CDN and versions * Doc repair for wf (#1358) * Changing doc structure to work with WF * Changing doc structure to work with WF
14 lines
451 B
JavaScript
14 lines
451 B
JavaScript
const gulp = require('gulp');
|
|
const spawn = require('./utils/spawn-promise-wrapper');
|
|
const getNpmCmd = require('./utils/get-npm-cmd');
|
|
const logHelper = require('../infra/utils/log-helper');
|
|
|
|
// Use npm run lint to ensure we are using local eslint
|
|
gulp.task('lint', () => {
|
|
return spawn(getNpmCmd(), ['run', 'lint'])
|
|
.catch((err) => {
|
|
logHelper.error(err);
|
|
throw new Error(`[Workbox Error Msg] 'gulp lint' discovered errors.`);
|
|
});
|
|
});
|