gdt

gulp-dev-tasks

Collection of Gulp tasks for development and linting with Airbnb's ESLint config

Showing:

Popularity

Downloads/wk

3

Maintenance

No Maintenance Data Available

Package

Dependencies

9

License

ISC

Type Definitions

Tree-Shakeable

No?

Categories

Readme

gulp-dev-tasks

Collection of Gulp tasks for development and linting with Airbnb's ESLint config.

npm version

Installation

npm install gulp-dev-tasks --dev-save

Usage

Include the package in your gulpfile.js, for example like this:

const gulp = require('gulp');
const gdt = require('gulp-dev-tasks');

gdt.setCommand('query-api.js');
gdt.setRules({
  'new-cap': [2, {'capIsNewExceptions': ['express.Router']}]
});

gulp.task('default', ['dev']);

Tasks

The following gulp tasks are provided:

lint

Lints all js and jsx files in your project, using the linting config as provided by eslint-config-airbnb.

lint:fix

Tries to autofix linting errors and warnings where possible.

lint:watch

Watches your project and will lint when code changes.

dev

Runs an executable command, and reruns it when code changes.

Setup

The following functions are provided for configuration.

setCommand(command)

Set the command to be executed by the dev task.

setRules(rules)

Set linting rules to overwrite the ones provided by eslint-config-airbnb.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial