Necesito Programar Más

    gulp-dev-tasks

    1.4.2 • Public • Published

    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.

    Keywords

    none

    Install

    npm i gulp-dev-tasks

    DownloadsWeekly Downloads

    146

    Version

    1.4.2

    License

    ISC

    Last publish

    Collaborators

    • gerben